2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-07-18 08:26:50 +00:00
Files
confluent/confluent_server
Markus Hilger 4b61351373 Create and maintain the TLS CA as the confluent service account
The CA database under /etc/confluent/tls/ca is typically created by a root context such as osdeploy initialize -t, but the confluent service runs as the owner of /etc/confluent, and openssl ca rewrites the database (index, serial) as the invoking user on every issuance. Certificate issuance through the running service (e.g. the /self/tlscert deployment API) then fails on the root-owned database until packaging happens to repair the ownership.

Run the CA creation (full CA and the currently unused simple CA variant) and the openssl ca invocation under normalize_uid, the convention already used when publishing the CA certificate. The issued certificate is staged through a temporary file since the destination may only be writable by the invoking user, e.g. the web server certificate paths.

Existing root-owned CA databases are repaired by packaging or manually via: chown -R --reference=/etc/confluent /etc/confluent/tls
2026-07-15 05:55:48 +02:00
..
2026-07-14 05:28:53 +02:00
2017-08-11 15:43:44 -04:00
2026-03-20 10:12:45 -04:00
2019-08-20 08:59:01 -04:00
2026-06-05 14:27:05 -04:00
2024-06-05 08:39:37 -04:00
2025-05-21 10:00:47 -04:00
2018-11-14 14:55:26 -05:00