refactor(vpn): split JWT identity and OpenVPN certificate lifecycle
OpenVPN Ansible / Ansible Syntax Check (push) Successful in 43s
OpenVPN Ansible / Ansible Lint (push) Successful in 1m8s
OpenVPN Ansible / Deploy VPN Networking and OpenVPN (push) Successful in 3m32s
OpenVPN Ansible / Generate SBOM (push) Successful in 55s
OpenVPN Ansible / Scan SBOM with Trivy (push) Successful in 18s
OpenVPN Ansible / Ansible Syntax Check (push) Successful in 43s
OpenVPN Ansible / Ansible Lint (push) Successful in 1m8s
OpenVPN Ansible / Deploy VPN Networking and OpenVPN (push) Successful in 3m32s
OpenVPN Ansible / Generate SBOM (push) Successful in 55s
OpenVPN Ansible / Scan SBOM with Trivy (push) Successful in 18s
- Add a dedicated role and workflow to generate VPN JWT identities and export public keys - Run identity preparation automatically for VPN nodes awaiting OpenBao registration - Gate OpenVPN and PKI setup until each node is registered - Split PKI setup into runtime, configuration, service, and initial certificate tasks - Restore TAP and bridge attachment after OpenVPN restarts - Remove bundled server certificate and private key
This commit is contained in:
@@ -4,4 +4,4 @@
|
||||
become: true
|
||||
|
||||
roles:
|
||||
- role: openvpn_pki
|
||||
- openvpn_jwt
|
||||
+20
-1
@@ -7,4 +7,23 @@
|
||||
- common
|
||||
- networking
|
||||
- radius_nat
|
||||
- openvpn
|
||||
- role: openvpn
|
||||
when: openvpn_jwt_registered | default(false) | bool
|
||||
- role: openvpn_jwt
|
||||
when: openvpn_jwt_registered | default(false) | bool
|
||||
vars:
|
||||
openvpn_jwt_export_public_key: false
|
||||
- role: openvpn_pki
|
||||
when: openvpn_jwt_registered | default(false) | bool
|
||||
|
||||
tasks:
|
||||
- name: Run pending OpenVPN restart handlers after certificate issuance
|
||||
ansible.builtin.meta: flush_handlers
|
||||
|
||||
- name: Start OpenVPN and attach TAP interface after certificate setup
|
||||
ansible.builtin.import_role:
|
||||
name: openvpn
|
||||
tasks_from: bridge-tap.yml
|
||||
when:
|
||||
- openvpn_jwt_registered | default(false) | bool
|
||||
- openvpn_restart_result is not defined
|
||||
|
||||
Reference in New Issue
Block a user