Files
openstack-ansible-haproxy_s…/releasenotes/notes/pki-temp-certs-path-d63091df0234df2e.yaml
Denys Mishchenko 5413c41121 Temp directory for pki certificates
If directory is defined instead of certificate files, haproxy will
attempt to treat all files within as a pem bundled certs. And will fail
its configuration test. To avoid this we can put generated by pki
certificates into a temporary directory and them put only valid bundle
file into haproxy_ssl_cert_path.

Such approach allows us to put additional certificates to the directory
outside of the haproxy_server role and keep the directory clean. This
also eliminates the need to list all additional custom certificates and
calculated by role ones.

Additionally added a cleanup/move of the certs if haproxy_ssl_temp_path
set to be different from haproxy_ssl_cert_path which allows a transition
from old setup.

Change-Id: I3662195cb2248d8841e1525d5e6d86f84ca876d3
2025-05-28 17:34:00 +02:00

19 lines
859 B
YAML

---
features:
- |
If directory is defined instead of certificate files, haproxy will attempt
to treat all files within as a pem bundled certs. And will fail its
configuration test.
To avoid this a new variable haproxy_ssl_temp_path were introduced. When it
is defined certificates from the pki being put into that directory and then
combined into pem in the correct directory.
Such an approach allows us to put additional certificates to the directory
outside of the haproxy_server role and keep the directory clean. This also
eliminates the need to list all additional custom certificates and sum them
with the ones calculate by this role.
Additionally added a cleanup/move of the certs if haproxy_ssl_temp_path set
to be different from haproxy_ssl_cert_path which allows a transition from
old setup.