Repository navigation
Hardening: close the audit's optional tail (healthcheck, cosign, span privacy) - #48
Merged
Merged
Conversation
The three items the 2026-08-11 audit marked optional, now closed: - fold --healthcheck (L13): a self-probe that gives the distroless image a native container HEALTHCHECK — no shell, no curl needed. Any HTTP response is healthy on purpose: it answers "is the process serving", and /health's 503-when-all-upstreams-are-down must never restart the container. Wired into compose. - Keyless cosign signature on checksums.txt (L14), for operators verifying outside the gh-attestation toolchain; verification documented alongside the existing attestation commands. - tracing.recordPrincipal (L7): spans carry no personal data by default — enduser.id is now opt-in. A deliberate default change (pre-1.11 always stamped it): trace backends commonly have broader access than the audit trail, which carries the same identity under audit-grade access. defaults.md records the change and the reason. Co-Authored-By: Claude Fable 5 <[email protected]>
blakebauman
force-pushed
the
hardening/optional-tail
branch
from
August 12, 2026 13:28
6c8b17b to
620afdf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes the three items the 2026-08-11 hardening audit explicitly marked optional — with these merged, every finding in the audit is either remediated or documented-informational.
fold --healthcheck(L13): self-probe subcommand giving the distroless image a native container HEALTHCHECK (test: ["CMD", "/fold", "--healthcheck"], now in compose). Any HTTP response counts as healthy by design — it answers "is the process serving", never "are upstreams up", so/health's 503-when-all-upstreams-are-down can't restart containers at the worst moment. Tested including the 503 case.checksums.txt(L14): goreleasersigns:+ SHA-pinned cosign-installer in the release workflow;cosign verify-blob+sha256sum --checkdocumented next to thegh attestation verifycommands for operators outside the gh toolchain.tracing.recordPrincipal(L7): spans no longer carry the principal's subject by default —enduser.idis opt-in. This deliberately changes a pre-1.11 default, for privacy: the subject is personal data, trace backends commonly have broader access than the audit trail, and the audit event carries the same identity under audit-grade access.defaults.mdrecords the change; dashboards keyed on spanenduser.idopt back in with one line. Schema/README/operations docs in lockstep; covered by a spans-in-memory test.Verification:
make checkgreen (race, lint 0 issues), all YAML validated, new tests for the healthcheck exit codes and the span opt-in both directions. The cosign signing itself gets its first live run on the next tagged release, alongside the image/chart attestations from #46.🤖 Generated with Claude Code