QuestionQ22

VerifiedDevSecOps Pipeline-Code Stage

Andrew installed the AWS Secrets Manager Credentials Provider plugin in Jenkins and configured an IAM policy in AWS that allows Jenkins to retrieve secrets from AWS Secrets Manager. Which of the following files should Andrew edit to add the access ID and secret key parameters, along with the region copied from AWS?

Explanation

On Linux hosts, Jenkins is typically run as a system service, and its startup environment variables are defined in /etc/sysconfig/jenkins (on RHEL/CentOS-based systems). To let the AWS Secrets Manager Credentials Provider plugin authenticate to AWS, the AWS access key ID, secret access key, and region must be exported as environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION) in this file so they are available to the Jenkins process at startup, since the plugin relies on the standard AWS SDK credentials/region resolution chain.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!