Certificates from mounted directories, reread when renewed #477

Merged
jcoffey-dev merged 1 commits from feat/certificate-file-reload into main 2026-11-19 15:12:23 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev 34c5ee53aa Certificates from mounted directories, reread when renewed
ci / fork-checks (pull_request) Skipped
ci / build (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 13m26s
In Kubernetes, cert-manager keeps a certificate in a TLS Secret and renews
it in place. The server read certificates only at start and when a
Certificate changed in the store, so a renewal waited for a restart, and a
stored Certificate pointing at the files had to be created by hand on
every new store.

INBUXA_TLS_CERTIFICATE_DIRS names directories, each holding tls.crt and
tls.key as a TLS Secret mounts them. Their certificates are used for the
names in them and aren't stored. Every node checks the files of these and
of file-backed stored certificates once a minute, and reloads its
certificates when they change. A directory that can't be read, or a
certificate not valid now, is a build error and left out. K-C8.
2026-11-19 07:15:16 -07:00