Compare key-based and keyless signing for release artifacts. Which would you use?
AdvancedScenarioSupply Chain Security
Answer
Situation read → Both are valid. The decision depends on environment, trust model and operations burden.
What I'd do →
- Keyless (Sigstore): short-lived certificates bound to OIDC identity, logged in Rekor. Best for public CI such as GitHub Actions. No key rotation.
- KMS-backed keys (
cosign sign --key awskms:///alias/release): key never leaves HSM, works air-gapped, good for regulated environments. - Self-managed key files: avoid; rotation and storage are painful.
- For private deployments, run private Fulcio/Rekor or use KMS keys with strict IAM.
- Verify policy by identity (keyless) or public key (KMS) at admission.
Why → Keyless reduces key custody risk; KMS gives control where the public Sigstore infrastructure cannot be used.
Interview tip → Mention transparency logs help detect misuse after the fact.
More on Supply Chain Security
What is an SBOM, and at which point in the pipeline do you generate it?BeginnerA customer asks for an SBOM for your product. What do you give them?BeginnerHow do you sign container images in GitHub Actions without managing private keys?IntermediateYou signed images in CI. How do you make sure the cluster only runs signed images?IntermediateLeadership wants "SLSA compliance". What do you propose?IntermediateWhat is typosquatting and how do you protect developers from it?Beginner