Pipelines need database passwords at deploy time from AWS Secrets Manager. Compare two ways to integrate.
AdvancedScenarioCredentials & security
Answer
Situation read → Credentials provider vs runtime fetch.
What I'd do →
- Credentials provider plugin: secrets tagged in Secrets Manager appear as Jenkins credentials; pipelines use
withCredentialsnormally; Jenkins needs IAM read on those secrets. - Runtime fetch: the deploy pod uses IRSA and runs
aws secretsmanager get-secret-value; Jenkins never sees the secret store. - Even better, let the application read secrets at runtime (External Secrets Operator), so the pipeline never handles them.
Why → Each step away from Jenkins reduces how many places hold the secret.
Interview tip → Mention least privilege on the IAM policy per environment.
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