{"canonical_url":"https://engineer.company/glossary/artifact-signing/","content_markdown":"# Artifact signing\n\n## What it is\n\nArtifact signing binds a verifiable signature to the bytes or digest of\nsomething produced for distribution. The artifact might be a binary archive, a\npackage or a container image. A signer uses a private key or a signing service\nwith an identified credential. A verifier checks that the signature covers the\nexpected artifact and that the signing identity satisfies its policy. The\nartifact can be distributed separately from the signature when the consumer has\na reliable way to retrieve the matching evidence.\n\nA container image published under a familiar tag gives a useful example. A tag\ncan move over time. The image digest identifies the actual content the verifier\nshould check, including the relevant manifest or image index. The signing system\nassociates a signature with that identity. A deployer resolves the intended\nartifact, checks the signature and uses the same verified digest for publication\nor execution. Resolving the tag again at the final step could pick up different\ncontent.\n\nSignatures and attestations can support related policies. An artifact signature\ncan answer which trusted identity signed a particular object. An attestation can\ncarry facts such as how an artifact was built or which source revision it came\nfrom, with its own authenticated statement and subject. The verification policy\ndetermines which facts must be present and which signers are trusted for them. A\nsigned statement remains a claim by a signer, and its usefulness depends on the\ncontrols around who can make it.\n\n## Why it matters\n\nArtifacts often travel through several systems before installation. A build\nmight publish to a registry, then a deployment process copies the result into\nanother environment. Signing lets a consumer verify the object independently of\nthe route it took, assuming it obtains the necessary evidence and has the\nappropriate trust policy. This matters when cached mirrors, mutable tags and\nseparate organisational permissions all influence what a deployment can see.\n\nA verification rule can protect the release boundary. A registry may contain\nobjects built by several branches and services. The production gate should know\nwhich build identity is allowed to sign which artifact. Depending on the signing\nsetup, that identity could be a particular key or a short-lived certificate tied\nto a workflow identity and issuer. Treat ownership of those credentials and the\nability to change the workflow as part of the policy.\n\nA hash in a release note can help detect an accidental change if readers obtain\nit through a trusted path. A signature adds an identity check to the integrity\nevidence. It still leaves questions about the behaviour of the software, the\nreview it received and its dependencies. Use other controls for those questions\nand describe exactly what the verification step proves. Auditing the owner's\nidentity and the artifact digest can also help support staff reconstruct what\neach environment actually installed.\n\nSigned evidence needs a distribution path as well. Mirror the image and its\nverification material into an isolated environment using the mechanisms your\nregistry supports, then repeat the check there. A copy can retain the image\ndigest while losing the accompanying signature record or attestation. Test a\nfresh deploy with only the dependencies that are supposed to be available inside\nthe environment. That way the release procedure can distinguish a missing bundle\nfrom a genuine policy refusal.\n\n## What it looks like in practice\n\nStart with an artifact whose destination is a disposable staging environment.\nBuild an example container image and record its digest. Sign the intended\nartifact with the release identity. Check that your deployer enforces the\nexpected signer and artifact identifier before installing that exact digest.\nCapture the verification result so an operator can see what passed when they\ncompare a deployment with its build.\n\nExercise failure cases separately. Try the same workflow with an unsigned\nobject, a genuine signature from another build identity and a digest that does\nnot match the signed target. Each should be handled according to the gate's\nexplicit policy. Test the behavior when the service that supplies signatures or\nverification evidence is temporarily unavailable. A deployment that silently\nbypasses verification during a network outage has a different guarantee than one\nthat pauses safely.\n\nOur\n[case study about building GitHub Actions delivery pipelines](/portfolio/built-github-actions-ci-cd-pipelines/)\ndescribes separating build checks and environment deploys and using dependency\nevidence during delivery. Signing can add an artifact-specific check between\nthose stages. The example above concerns verification for a particular artifact\ndigest. The case demonstrates the automated delivery structure into which a team\ncan integrate such a check.\n\n## Where it goes wrong\n\nA deployment can verify a tag and later pull whatever the same tag now points\nto. Carry the verified digest all the way into the deploy command and confirm\nthe resulting reference at the destination. Be clear about which artifact was\nsigned in a multi-platform release. A policy may need to check an image index, a\nplatform image or another formal subject depending on what the destination\nactually reads.\n\nTrust can become too broad. A rule that accepts every identity issued by a\nprovider can include a test build or unrelated repository with valid\ncredentials. Scope the expected signer to what the production artifact policy\npermits. Retain enough evidence to evaluate a past release after certificate\nexpiry, and rehearse rotation and removal of trust. Document what operators\nshould do if a signer or workflow is compromised.\n\nA signature by itself can arrive without the evidence needed to interpret its\ntrust context. Keep keys, bundles, certificates or other evidence the verifier\nactually uses available for the intended validation period. Test restore and\nrollback when the old release signer differs from the current one. A rollback\nstill installs an artifact, so it should follow a documented verification policy\nthat reflects its origin and current acceptability.\n\n## Further reading\n\n- [Sigstore signature verification](https://docs.sigstore.dev/cosign/verifying/verify/)\n  explains verification against keys or certificate identities.\n- [Sigstore image signing](https://docs.sigstore.dev/cosign/signing/signing_with_containers/)\n  covers signing and identifying container images.\n- [SLSA provenance](https://slsa.dev/spec/v1.2/provenance) specifies information\n  that can identify the subject and describe a build.\n\n\u003chttps://engineer.company/glossary/artifact-signing/\u003e\n","date_modified":"2026-11-24T21:48:58Z","description":"How a signed build artifact is verified, and why deployment must use the same digest the gate checked.","formats":{"gemtext":"https://engineer.company/glossary/artifact-signing/index.gmi","gopher":"https://engineer.company/glossary/artifact-signing/gophermap","html":"https://engineer.company/glossary/artifact-signing/","json":"https://engineer.company/glossary/artifact-signing/index.json","markdown":"https://engineer.company/glossary/artifact-signing/index.md","pdf":"https://engineer.company/glossary/artifact-signing/index.pdf"},"kind":"page","language":"en","title":"What is artifact signing?","url":"https://engineer.company/glossary/artifact-signing/","version":1}