Signatures and Attestations: What Verification Establishes
Different evidence answers different questions
A digest compares exact bytes with a trusted expected value. A digital signature can bind bytes to a signing key; verification requires a trusted association between that key and the expected signer. A signed Git tag authenticates its signed tag payload, including its referenced object, not arbitrary release assets. A signed commit covers its commit payload. Neither proves code quality, absence of vulnerabilities or correct authorization by itself.
Verify a local detached signature
The lab generates an ephemeral RSA key with OpenSSL, signs garden.txt and exports its public key. The private key never enters the package. Within the temporary lab only, verify the detached signature using the supplied demo public key. Expected: Verified OK. A changed payload or a different public key fails verification. This demonstrates cryptography, not real publisher identity; for actual distribution obtain the public key through an authenticated trust channel.
openssl dgst -sha256 -verify demo-public.pem -signature garden.sig garden.txtAttestation and provenance
An artifact attestation is a signed statement about an artifact, such as its digest, source repository and build workflow identity. A verification policy should validate cryptographic evidence and constrain the expected signer, source and artifact. GitHub supports artifact attestations where available; check its current plan and repository requirements. The following plain JSON is fictional, unsigned and NOT an attestation; the lab tests only claim matching.
{ "source": "demo/garden", "workflow": "release.yml", "subject": "garden.txt"}Practice the trust decision
Compare a trusted digest, verified local signature and fictional provenance fields. If source or workflow differs from policy, reject the mock record even when the digest matches. If provenance is verified, still run tests and review security findings. If the signature cannot be validated, do not substitute a displayed badge or unsigned JSON. Actual Git signing, GitHub attestation verification and publisher trust are not tested here.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Signatures and Attestations: What Verification Establishes — knowledge check
Reason about distribution, integrity and provenance.
What must a detached signature verifier trust beyond the math?
Does a signed Git tag automatically sign uploaded binaries?
What does an artifact attestation describe?
A provenance record matches digest but names the wrong workflow. What should a constrained policy do?
Does verified provenance eliminate the need for tests?