~ knotless Search/
↑↓ move↵ open⇧↵ all results

zat.dev/zds

atproto pds · mirror of https://tangled.org/zat.dev/zds

0
0
36 lines · 1.9 KB Raw History

TLS trust updates

The build image, and the Debian stage that supplies the runtime image's CA bundle, require ca-certificates >= 20250419~deb12u2 for 2026-10-21 eMudhra distrust. Raising the minimum changes the Docker cache key and fails the build if a mirror cannot supply the fixed package. The shared HTTP and WebSocket dependencies also enforce distrust with caller-supplied CA bundles. The policy removes trust in the four affected root keys, also rejecting otherwise unaffected chains that depend on those roots.

Main pushes run tests and endpoint smoke checks, then automatically deploy to Fly. Review the complete commit before pushing. Record the current Fly image digest and machine state first; after the replacement starts, run tools/verify-runtime-tls.sh against its bundle. The distroless runtime has no openssl, so copy /etc/ssl/certs/ca-certificates.crt out (fly ssh sftp get) and run the probe with CA_FILE set to it. It requires successful valid TLS and certificate-validation rejection of both direct and AAA cross-signed compromised chains. Network errors are failures, not proof of distrust. The probe tests OpenSSL trust; shared transport tests exercise application TLS.

Confirm the actual PDS resolver rejects the incident handle and still resolves an ordinary handle:

curl -i 'https://pds.zat.dev/xrpc/com.atproto.identity.resolveHandle?handle=emudhra.divy.zone'
curl -f 'https://pds.zat.dev/xrpc/com.atproto.identity.resolveHandle?handle=atproto.com'

The first must not return the compromised DID; the second must resolve normally. These endpoint checks supplement the transport tests: a generic resolver failure alone cannot establish certificate rejection. Check health, identity resolution, and normal serving after rollout. Restart is required to replace cached CA bundles. Reverting to an old image restores its vulnerable trust store; rebuild the previous source with the patched CA floor when a rollback is necessary.