Your org requires that only signed and scanned images reach production. Where does Jenkins fit?
AdvancedScenarioCredentials & security
Answer
Situation read → Jenkins produces evidence; the cluster enforces it.
What I'd do →
- Pipeline: build to tarball, Trivy scan with gate, push, sign with cosign (keyless via OIDC or a KMS key), attach SBOM and scan attestations.
- Cluster: admission policy (Kyverno
verifyImagesor Sigstore policy-controller) that rejects unsigned or unattested images in prod namespaces. - Jenkins never holds a long-lived signing key in plain credentials; use KMS.
Why → Enforcement at admission means bypassing Jenkins does not bypass the policy.
Interview tip → "Jenkins signs, the cluster verifies".
More on Credentials & security
What credential types does Jenkins support out of the box?BeginnerWhat is the difference between Global and System credential scope?IntermediateHow do folder-scoped credentials help multi-team controllers?IntermediateHow does Jenkins mask secrets in logs and what are its limits?AdvancedWhat authorization strategies are available?IntermediateWhat are the key permissions to understand in matrix auth?Intermediate