Merge branch 'OCF-Doc63-add-improvement-over-certificates-management-to-release-notes' into 'develop'
Resolve "Add improvement over certificates management to Release notes"
Closes #63
See merge request !68
@@ -6,6 +6,19 @@ Current relase includes the initial implementation (Not complete functional) of
### **Technical Debt Solved**
#### **Certificate Generation Reworked for Multi-Instance Deployments (Common Vault)**
The certificate generation and storage flow has been updated to support **multiple CAPIF instances sharing the same Vault**.
Previously, the startup and certificate provisioning logic assumed a single CAPIF instance and stored certificates from fixed Vault paths, which caused collisions when deploying more than one instance using a common Vault.
With this change:
- Certificates and keys are now **generated at the service level** (e.g., NGINX generates it's own key and CSR locally).
- Vault is now used only as a **signing authority (CA)** to sign incoming CSRs and to store the resulting artifacts, avoiding Vault-specific instance coupling and enabling the same Vault to serve other CAPIF deployments.
- A **unique CCF identifier (ccf_id)** is used as the namespace key to store and retrieve CAPIF certificates.
- CAPIF-related certificates are stored under instance-scoped Vault paths (e.g. `secret/capif/<ccf_id>/...`) to prevent overwriting assets across deployments.
- Startup scripts and tooling were updated to obtain and use the correct `ccf_id` dynamically, ensuring each instance loads the correct certificate material.
#### **NGINX Configuration improved**
The NGINX configuration included in the OpenCAPIF deployment has been improved.
This document describes the changes made to the certificate generation and management architecture in CAPIF, implemented in the `OCF182-certs-generation` branch. The main objective is to allow a single Vault server to serve multiple CAPIF instances efficiently and securely.
## Main Changes
### Previous Architecture
In the previous implementation, Vault was responsible for:
- Generating the root CA and intermediate CA
-**Generating** service certificates
- Storing and distributing certificates
**Problems:**
- Vault generated service certificates (less secure)
- Difficult scalability for multiple CAPIF instances
- Strong coupling between Vault and each CAPIF instance