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

zat.dev/zds

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

0
0
23 lines · 1.4 KB Raw History

CI public trust bundle

The deployment runner's Nixery CA store contains affected eMudhra keys. ci-public-ca.py creates a separate filtered bundle before flyctl deploy. It uses SHA-256 of DER SubjectPublicKeyInfo, covering four affected root keys and eight compromised intermediate keys from the incident advisory. Certificates for unrelated keys, including OpenSSL trust attributes, retain their original PEM bytes. Invalid input, an empty result, or an existing output file fails the command before deployment. It performs no network requests.

Both SSL_CERT_FILE and SSL_CERT_DIR point at the dedicated temporary bundle directory, preventing Go from also loading affected roots from system certificate directories. CURL_CA_BUNDLE selects the same bundle for curl children. The workflow removes this temporary directory when the deployment step exits.

Run uv run tools/test-ci-public-ca.py to exercise genuine affected root and intermediate fixtures, preservation of an unrelated CA and trust attributes, malformed inputs, and refusal to overwrite existing output. Live verification must use the actual flyctl executable: a non-TLS HTTP error is not evidence of certificate rejection.

The same helper and fixtures are kept byte-identical in Stream's scripts/ directory for its credential-bearing Prefect admission request.