Skip to content

Hardening: close the audit's optional tail (healthcheck, cosign, span privacy) - #48

Merged
blakebauman merged 1 commit into
mainfrom
hardening/optional-tail
Aug 12, 2026
Merged

blakebauman merged 1 commit into
mainfrom
hardening/optional-tail

Conversation

@blakebauman

Copy link
Copy Markdown
Member

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.
  • Keyless cosign signature on checksums.txt (L14): goreleaser signs: + SHA-pinned cosign-installer in the release workflow; cosign verify-blob + sha256sum --check documented next to the gh attestation verify commands for operators outside the gh toolchain.
  • tracing.recordPrincipal (L7): spans no longer carry the principal's subject by default — enduser.id is 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.md records the change; dashboards keyed on span enduser.id opt back in with one line. Schema/README/operations docs in lockstep; covered by a spans-in-memory test.

Verification: make check green (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

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
blakebauman force-pushed the hardening/optional-tail branch from 6c8b17b to 620afdf Compare August 12, 2026 13:28
@blakebauman
blakebauman merged commit 9f881c3 into main Aug 12, 2026
7 checks passed
@blakebauman
blakebauman deleted the hardening/optional-tail branch August 13, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant