Interview Prep/DevSecOps/Supply Chain Security

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 →

  1. Keyless (Sigstore): short-lived certificates bound to OIDC identity, logged in Rekor. Best for public CI such as GitHub Actions. No key rotation.
  2. KMS-backed keys (cosign sign --key awskms:///alias/release): key never leaves HSM, works air-gapped, good for regulated environments.
  3. Self-managed key files: avoid; rotation and storage are painful.
  4. For private deployments, run private Fulcio/Rekor or use KMS keys with strict IAM.
  5. 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.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Supply Chain Security