Verify a Rivex attestation.
An attestation proves that Rivex produced this hardened Dockerfile from your input file, and records the findings. It never contains the Dockerfile text, only SHA-256 digests. It is a signed SLSA Provenance v1 statement, delivered as a standard Sigstore bundle. Rivex signs it keylessly with Sigstore, so there is no Rivex key to download or trust: you check the signature against the signing identity instead.
Check the attestation.
Download attestation.sigstore.json from the harden page or the run history, and save the hardened Dockerfile as Dockerfile.hardened. Install cosign 2.4.2 or later, then run cosign verify-blob-attestation with the expected identity and issuer. The identity is the Rivex runtime service account.
cosign verify-blob-attestation \
--bundle attestation.sigstore.json \
--type slsaprovenance1 \
--certificate-identity rivex-api@rivex-5616-prod.iam.gserviceaccount.com \
--certificate-oidc-issuer https://accounts.google.com \
Dockerfile.hardened A valid attestation prints Verified OK. The command checks the signature and identity, that the statement is SLSA Provenance v1, and that the SHA-256 of Dockerfile.hardened matches the attested file. Any other identity, or a file changed by one byte, fails.
The attestation covers the hardened Dockerfile returned when the run was hardened. When a run’s stored copy has secrets redacted, the run history says so: that copy will not verify.
To run this check in CI with the rivex command, see Check hardened Dockerfiles in CI.
Read the provenance.
The signed statement is the base64 payload of the bundle’s DSSE envelope. Decode it to read the SLSA predicate:
jq -r .dsseEnvelope.payload attestation.sigstore.json | base64 -d | jq .predicate buildDefinition.resolvedDependencies holds the digest of your input Dockerfile, buildDefinition.externalParameters the engine version and any rules a policy turned off, buildDefinition.internalParameters the findings (rule ID, line numbers and whether Rivex changed the line, never the finding text) and whether the build was verified, and runDetails.metadata the run ID (invocationId) with its startedOn and finishedOn times.
Save your input file as Dockerfile.original and compare its hash with the recorded digest. This proves the run hardened your file and not another one.
sha256sum Dockerfile.original
jq -r .dsseEnvelope.payload attestation.sigstore.json | base64 -d \
| jq -r '.predicate.buildDefinition.resolvedDependencies[]|select(.name=="input.Dockerfile").digest.sha256' The two digests must be identical.
Verify a legacy attestation.
Runs signed before the standard format offer Download attestation (legacy format): an attestation.json file with two fields, bundle (the Sigstore bundle) and statement (the exact signed bytes). Split them with jq. Use -j: raw output with -r appends a newline and changes the digest.
jq -j .statement attestation.json > statement.json
jq .bundle attestation.json > attestation.sigstore.json Then check the signature with cosign verify-blob:
cosign verify-blob \
--bundle attestation.sigstore.json \
--certificate-identity rivex-api@rivex-5616-prod.iam.gserviceaccount.com \
--certificate-oidc-issuer https://accounts.google.com \
statement.json A valid signature prints Verified OK. To bind it to your files, hash them and compare with the digests inside the statement:
sha256sum Dockerfile.hardened
jq -r '.subject[]|select(.name=="output.Dockerfile").digest.sha256' statement.json
sha256sum Dockerfile.original
jq -r '.subject[]|select(.name=="input.Dockerfile").digest.sha256' statement.json Each pair of digests must be identical.
What becomes public.
Keyless signing records each signed run in Rekor, the public Sigstore transparency log. To record the signature, the full signed statement is sent to Sigstore’s Rekor service. It holds the digests of both Dockerfiles; for each finding, its rule ID, line numbers and whether Rivex changed the line; the engine version, the rules a policy turned off, the run ID and the start and end times. The public entry keeps only hashes of it, the signature and the signing certificate, which names the Rivex service account and so its project. The Dockerfile text is never sent.