In a new tab/window, go to: https://www.conjur.org/get-started/try-conjur.html
- Create an account.
- Leave page open when account info is displayed.
- You will need the Account ID and API key.
mkdir workshop
cd workshop
curl -k -o docker-compose.yml https://www.conjur.org/get-started/eval/docker-compose.yml
docker-compose run conjur
conjur init -u https://eval.conjur.org -a <paste-your-account-id>
conjur authn login -u admin -p <paste-your-account-API-key>
conjur list
conjur authn whoami
curl -k -o one-variable.yml https://www.conjur.org/get-started/eval/one-variable.yml
cat one-variable.yml
conjur policy load root one-variable.yml
conjur list
secret_val=$(openssl rand -hex 12); echo $secret_val
conjur variable values add eval/secret ${secret_val}
conjur variable value eval/secret; echo
curl -k -o variable-and-host.yml https://www.conjur.org/get-started/eval/variable-and-host.yml
cat variable-and-host.yml
conjur policy load root variable-and-host.yml | tee roles.json
api_key=$(jq -r '.created_roles | .[].api_key' roles.json)
api_key=$(conjur host rotate_api_key)
conjur authn login -u host/eval/machine -p ${api_key}
conjur list
conjur authn whoami
conjur variable value eval/secret; echo
secret_val=$(openssl rand -hex 12); echo $secret_val
conjur variable values add eval/secret ${secret_val}
cat variable-and-host.yml
summon --yaml 'SECRET: !var eval/secret' bash -c "echo \$SECRET"
echo $SECRET
summon --yaml 'SECRET: !var:file eval/secret' bash -c "echo \$SECRET; cat \$SECRET; echo"
ls /dev/shm/.summon*