Skip to content

chore(oscap): re-pin fixture base-image digests - #168

Merged
stevebeattie merged 1 commit into
mainfrom
update-ca-cert-b8d837841b88bfaa1a0fa827cbca8e2576418dd47c9fc4bb7f1f9d89c83111b9
Sep 2, 2026
Merged

stevebeattie merged 1 commit into
mainfrom
update-ca-cert-b8d837841b88bfaa1a0fa827cbca8e2576418dd47c9fc4bb7f1f9d89c83111b9

Conversation

@octo-sts-9

@octo-sts-9 octo-sts-9 Bot commented Aug 28, 2026 •

Copy link
Copy Markdown

Fixture Base-Image Update

Re-pins two values that must stay in lockstep:

  1. The FROM cgr.dev/chainguard/wolfi-base:latest@sha256:... line in
    every tests/e2e/fixtures/*/Dockerfile.
  2. The pinned wolfi-base digest constant asserted by
    TestParseWolfiBaseRef in tests/oscap-offline/internal/scan/fixtures_test.go.

If these drift (e.g. Dependabot bumps the fixture digest without the
test pin following), the offline harness unit tests break. This
workflow is the authoritative update point for both together;
TestParseWolfiBaseRef was run against the updated tree before this
PR was opened.

CertificateAudit itself no longer pins any hash — the OVAL reads each
expected digest from the stamp file shipped beside the file it
describes inside the scanned image
(/etc/ssl/certs/.ca-certificates.crt.sha256, and on Java images
/etc/ssl/certs/java/.cacerts.sha256). The Verify trust-store stamp files step above asserts both are present and agree, using
cgr.dev/chainguard/jre:latest because it carries both, so an image
that dropped one would fail this run rather than silently red the
E2E CertificateAudit assertions.

  • Image: cgr.dev/chainguard/wolfi-base:latest
  • Digest: sha256:7e62cecd3c5712dba6e52c5260afb8f9d7a23b9bbcdd26ad7508a811e74b766d
  • Stamp image: cgr.dev/chainguard/jre:latest
  • Stamp image digest: sha256:747f91b136aea7eb03162ab23a2d1300678cdd32f5858903fe51954db782b214
  • CA SHA256: b8d837841b88bfaa1a0fa827cbca8e2576418dd47c9fc4bb7f1f9d89c83111b9
  • Fixtures changed: true
  • Test pin changed: true

@octo-sts-9 octo-sts-9 Bot added the automated pr This PR was opened by a bot label Aug 28, 2026
@octo-sts-3
octo-sts-3 Bot force-pushed the update-ca-cert-b8d837841b88bfaa1a0fa827cbca8e2576418dd47c9fc4bb7f1f9d89c83111b9 branch from ca71f04 to 842e833 Compare August 31, 2026 01:23
@octo-sts
octo-sts Bot force-pushed the update-ca-cert-b8d837841b88bfaa1a0fa827cbca8e2576418dd47c9fc4bb7f1f9d89c83111b9 branch from 842e833 to dc62704 Compare August 31, 2026 16:24
@octo-sts-4
octo-sts-4 Bot force-pushed the update-ca-cert-b8d837841b88bfaa1a0fa827cbca8e2576418dd47c9fc4bb7f1f9d89c83111b9 branch from dc62704 to 4b562df Compare September 1, 2026 01:26
Re-pins the digest-pinned FROM lines in tests/e2e/fixtures/*/Dockerfile
and the pinned wolfi-base digest in the offline harness test
(TestParseWolfiBaseRef) together, so the two can never drift out of
sync and break the offline unit tests.

Both stamp files CertificateAudit reads were checked first, on
cgr.dev/chainguard/jre:latest: the CA bundle matches
/etc/ssl/certs/.ca-certificates.crt.sha256 and the Java truststore
matches /etc/ssl/certs/java/.cacerts.sha256.

Image: cgr.dev/chainguard/wolfi-base:latest
Digest: sha256:7e62cecd3c5712dba6e52c5260afb8f9d7a23b9bbcdd26ad7508a811e74b766d
Stamp image: cgr.dev/chainguard/jre:latest
CA SHA: b8d837841b88bfaa1a0fa827cbca8e2576418dd47c9fc4bb7f1f9d89c83111b9

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@octo-sts
octo-sts Bot force-pushed the update-ca-cert-b8d837841b88bfaa1a0fa827cbca8e2576418dd47c9fc4bb7f1f9d89c83111b9 branch from 4b562df to 950a1e2 Compare September 2, 2026 01:17
@stevebeattie
stevebeattie merged commit ede5ac7 into main Sep 2, 2026
6 checks passed
@stevebeattie
stevebeattie deleted the update-ca-cert-b8d837841b88bfaa1a0fa827cbca8e2576418dd47c9fc4bb7f1f9d89c83111b9 branch September 2, 2026 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated pr This PR was opened by a bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants