Skip to content

Commit

Permalink
Merge pull request #48 from Conjur-Enterprise/update-cli-policy-file-dir
Browse files Browse the repository at this point in the history
CNJR-0000: Update CLI policy paths
  • Loading branch information
gl-johnson authored and GitHub Enterprise committed Dec 30, 2024
2 parents 0acb81c + aea57e5 commit 0618d61
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/test_utils
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ setup_conjur_cli() {

configure_conjur() {
generate_policy_files
$cli -n "${CONJUR_NAMESPACE}" cp ./policy conjur-cli-pod:/policy -c conjur-cli-pod
$cli -n "${CONJUR_NAMESPACE}" cp ./policy conjur-cli-pod:/tmp/policy -c conjur-cli-pod

# Fetch authn-jwt values
ISSUER=$(oc get --raw /.well-known/openid-configuration | jq -r .issuer)
Expand All @@ -111,9 +111,9 @@ configure_conjur() {
echo yes | conjur init -u https://$CONJUR_URL -a \"default\" --self-signed
conjur login -i admin -p $ADMIN_API_KEY

conjur policy replace -b root -f /policy/host.yaml
conjur policy load -b root -f /policy/authn-jwt.yaml
conjur policy load -b root -f /policy/variables.yaml
conjur policy replace -b root -f /tmp/policy/host.yaml
conjur policy load -b root -f /tmp/policy/authn-jwt.yaml
conjur policy load -b root -f /tmp/policy/variables.yaml

conjur variable set -i db-credentials/url -v 'https://db.com'
conjur variable set -i db-credentials/username -v 'db_user'
Expand Down

0 comments on commit 0618d61

Please sign in to comment.