Interview Prep/Jenkins/Credentials & security

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 →

  1. Pipeline: build to tarball, Trivy scan with gate, push, sign with cosign (keyless via OIDC or a KMS key), attach SBOM and scan attestations.
  2. Cluster: admission policy (Kyverno verifyImages or Sigstore policy-controller) that rejects unsigned or unattested images in prod namespaces.
  3. 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".

All Jenkins questions Roadmap: Jenkins

More on Credentials & security