Repository navigation
Conversation
prepare-ca-certs trusted keycloak.opentdf.local.crt, which holds the leaf plus Caddy's 7-day intermediate. Once Caddy renews the intermediate, the platform no longer trusts Keycloak: entity resolution fails with x509 errors and a restarted platform crash-loops on OIDC discovery. Trust Caddy's local root CA (pki/authorities/local/root.crt) instead, matching install.sh and Caddy's local HTTPS guidance. Also drop the no-op `cp -r /etc/ssl/certs/* /etc/ssl/certs/`. Fixes opentdf#404 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Jason Yee <jason.yee@virtru.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
📄 Preview deployed to https://opentdf-docs-pr-405.surge.sh |
Fixes #404
Problem
The quickstart platform stops trusting Keycloak after Caddy renews its local intermediate CA (about 5–6 days after first start, then every few days).
GetEntitlementsand decrypt return HTTP 500 (failed to login to Keycloak … x509: certificate signed by unknown authority), and a restarted platform crash-loops on OIDC discovery. Full details and steps to reproduce are in #404.Cause
prepare-ca-certstrustedkeycloak.opentdf.local.crt, which holds the leaf plus Caddy's 7-day intermediate. Go treats that intermediate as a trust anchor, so trust breaks whenever Caddy renews it.Change
prepare-ca-certsnow trusts Caddy's local root CA (caddy/pki/authorities/local/root.crt, 10-year lifetime) instead:static/quickstart/install.shalready trusts on the host, and Caddy's local HTTPS guidance (trust the root, let leaves and intermediates rotate).cp -r /etc/ssl/certs/* /etc/ssl/certs/./etc/ssl/certsis already the sharedplatform_certsvolume, so the line only copied the folder onto itself (and printed'…' and '…' are the same filewarnings).Scope is unchanged: the root lands only in the
platform_certsvolume, which only the platform container mounts. Nothing changes on the host. Within that container, the root (which has no name constraints) can vouch for any hostname Caddy signs. That's fine for a local quickstart, and the root key never leaves thecaddy_datavolume.Testing
Tested on macOS (Apple Silicon, Rancher Desktop) with this exact file, plus a local override that only adds a corporate TLS-inspection CA for
apk:Rotation was forced by deleting
/data/caddy/pki/authorities/local/intermediate.*and the Keycloak leaf in the caddy container, then restarting caddy (see #404).Vale wasn't run: the change is YAML only, with no prose.
Follow-up (not in this PR)
The manual host-trust steps in
docs/getting-started/index.mdxstill trust the site certificates rather thanroot.crt, unlikeinstall.sh. Happy to send a separate PR.🤖 Generated with Claude Code
Summary by CodeRabbit