Interview › Security & DevSecOps
What is artifact signing, and what is Sigstore/cosign? [Intermediate]
Answer
Artifact signing cryptographically signs a build artifact or image digest so consumers can verify integrity and publisher identity. Sigstore and cosign make this practical for containers by supporting keyless signing, transparency logs, and signature verification in CI/CD and Kubernetes admission.
Technical explanation
Signing mutable tags is weaker; sign immutable digests so the signature binds to exact content.
Keyless signing can bind an artifact to an OIDC identity from CI, reducing long-lived signing-key risk.
Verification should happen before promotion and again before deployment.
Hands-on example
Hands-on:
cosign sign --keyless registry.example.com/checkout@sha256:abc
cosign verify --certificate-identity-regexp 'https://github.com/org/repo/.github/workflows/.*' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
registry.example.com/checkout@sha256:abc
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Security & DevSecOps interview questions
- What is workload identity, and how does it remove static credentials? [Intermediate]
- What is vulnerability management as a lifecycle (discover, prioritise, remediate, verify)? [Intermediate]
- What is OPA, and what is the Rego language used for? [Intermediate]
- How do you reduce the noise of thousands of vulnerability findings? [Intermediate]
- What is the difference between a CVE, a CVSS score, and exploitability (EPSS/KEV)? [Basic]
- How do you apply least privilege to service-to-service communication (e.g., with Istio mTLS)? [Intermediate]
- What is secrets management, and how does HashiCorp Vault work at a high level? [Intermediate]
- How would you use Wiz findings to drive remediation across teams? [Basic]