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:
@@ -1,3 +1,19 @@
|
||||
---
|
||||
- name: Import JWT identity preparation tasks
|
||||
ansible.builtin.import_tasks: identity.yml
|
||||
- name: Install OpenVPN PKI runtime
|
||||
ansible.builtin.import_tasks: runtime.yml
|
||||
|
||||
- name: Prepare certificate files and OpenBao configuration
|
||||
ansible.builtin.import_tasks: setup.yml
|
||||
|
||||
- name: Install certificate lifecycle service and timer units
|
||||
ansible.builtin.import_tasks: service.yml
|
||||
|
||||
- name: Issue certificate only when it is absent
|
||||
ansible.builtin.import_tasks: initial_certificate.yml
|
||||
|
||||
- name: Enable and start daily certificate lifecycle timer
|
||||
ansible.builtin.systemd:
|
||||
name: openbao-vpn-cert.timer
|
||||
enabled: true
|
||||
state: started
|
||||
daemon_reload: true
|
||||
|
||||
Reference in New Issue
Block a user