QuestionQ81

VerifiedIntroduction to DevSecOps

Paul McCartney has worked as a senior DevSecOps engineer at an IT company for the past 5 years. He wants to integrate the Conjur secret management tool into the CI/CD pipeline in order to secure sensitive credentials across the various stages of development.

To integrate Conjur with Jenkins, Paul downloaded the Conjur.hpi file and uploaded it via the Upload Plugin section in Jenkins. He then declared a policy branch using code and saved it as a .yml file.

Which command should Paul use to load this policy into the Conjur root?

Explanation

In Conjur's CLI, the correct syntax for loading a policy is conjur policy load -b <branch> -f <file-name>, where the -b flag specifies the target policy branch (such as root) and the -f flag specifies the path to the policy file to be loaded. This command parses the YAML policy file and applies it to the specified branch, creating or updating the roles, hosts, and permissions defined within it. The other listed commands use flags (-p, or reversed -f/-b ordering with incorrect flags) that do not match Conjur's documented CLI syntax.

Learn more

Community Discussion

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