QuestionQ42

VerifiedDevSecOps Pipeline-Code Stage

Steven Smith works as a DevSecOps engineer at an IT company that develops software products for the financial sector. His team leader instructed him to integrate Conjur with Jenkins in order to secure secret credentials. To accomplish this, Steven downloaded the Conjur.hpi file and uploaded it via the Upload Plugin section in Jenkins. He then declared the host and layers, and declared the variables.

Which command should Steven use to set the value of the variables?

Explanation

In the Conjur CLI, the command to populate a declared variable with a secret value is conjur variable set -i <variable-id> -v <value>. The -i flag specifies the variable's identity, i.e., its fully-qualified policy path/name, and the -v flag specifies the secret value being assigned to it. Since policy declarations only define the variable structure and do not set its value, the CLI (or UI/API) must be used afterward with this exact flag syntax to load the secret.

Learn more

Community Discussion

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