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

- 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:
2026-11-27 17:58:46 +01:00
parent 36d2845a3a
commit 4b8e7f3592
35 changed files with 1322 additions and 303 deletions
+15
View File
@@ -0,0 +1,15 @@
openvpn_jwt_directory: /etc/vault-jwt
openvpn_jwt_private_key_path: "{{ openvpn_jwt_directory }}/private.pem"
openvpn_jwt_public_key_path: "{{ openvpn_jwt_directory }}/public.pem"
openvpn_jwt_rsa_bits: 3072
openvpn_jwt_public_key_artifact_directory: "{{ playbook_dir }}/../artifacts/openvpn-jwt-public-keys"
openvpn_jwt_generator_script: /usr/local/bin/generate-vault-jwt.py
openvpn_jwt_virtualenv: /opt/vault-jwt/venv
openvpn_jwt_python: "{{ openvpn_jwt_virtualenv }}/bin/python"
openvpn_jwt_pyjwt_version: "2.15.1"
openvpn_jwt_role: vpn-servers
openvpn_jwt_auth_mount: jwt-vpn
# The generator must write only the JWT to stdout.
openvpn_jwt_generator_args: []
openvpn_jwt_export_public_key: true