-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from cyberark/log-for-config_20180707
add some logging when configuring the API, read ~/.netrc
- Loading branch information
Showing
92 changed files
with
224 additions
and
15,998 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.git | ||
output/ | ||
vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
output/ | ||
/output/ | ||
/vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.3.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,34 @@ | ||
#!/bin/bash -ex | ||
|
||
# This bug in the current version of compose causes problems in | ||
# Jenkins: | ||
# https://github.com/docker/compose/issues/5929. docker-compose will | ||
# malfunction if it's run in a directory that has a name starting with | ||
# '_' or '-'. Until we get the fix, set COMPOSE_PROJECT_NAME | ||
export COMPOSE_PROJECT_NAME="$(basename $PWD | sed 's/^[_-]*\(.*\)/\1/')" | ||
|
||
exec_on() { | ||
local container="$1"; shift | ||
|
||
docker exec "$(docker-compose ps -q $container)" "$@" | ||
} | ||
|
||
# Build test container & start the cluster | ||
docker-compose pull conjur cuke-master | ||
docker-compose build | ||
docker-compose up -d | ||
docker-compose exec -T test ./wait_for_server.sh | ||
|
||
api_key=$(docker-compose exec -T conjur conjurctl role retrieve-key cucumber:user:admin | tr -d '\r') | ||
CONJUR_DATA_KEY="$(docker-compose run -T --no-deps conjur data-key generate)" \ | ||
docker-compose up --no-deps -d postgres conjur cuke-master | ||
exec_on conjur conjurctl wait | ||
exec_on cuke-master /opt/conjur/evoke/bin/wait_for_conjur | ||
|
||
api_key=$(exec_on conjur conjurctl role retrieve-key cucumber:user:admin | tr -d '\r') | ||
|
||
docker-compose exec -T cuke-master bash -c "conjur authn login -u admin -p secret" | ||
docker-compose exec -T cuke-master bash -c "conjur user create --as-group security_admin alice" | ||
docker-compose exec -T cuke-master bash -c "conjur variable create existent-variable-with-undefined-value" | ||
docker-compose exec -T cuke-master bash -c "conjur variable create existent-variable-with-defined-value" | ||
docker-compose exec -T cuke-master bash -c "conjur variable values add existent-variable-with-defined-value existent-variable-defined-value" | ||
exec_on cuke-master bash -c 'conjur authn login -u admin -p secret' | ||
exec_on cuke-master conjur user create --as-group security_admin alice | ||
exec_on cuke-master conjur variable create existent-variable-with-undefined-value | ||
exec_on cuke-master conjur variable create existent-variable-with-defined-value | ||
exec_on cuke-master conjur variable values add existent-variable-with-defined-value existent-variable-defined-value | ||
|
||
api_key_v4=$(docker-compose exec -T cuke-master bash -c "conjur user rotate_api_key") | ||
ssl_cert_v4=$(docker-compose exec -T cuke-master bash -c "cat /opt/conjur/etc/ssl/ca.pem") | ||
api_key_v4=$(exec_on cuke-master conjur user rotate_api_key) | ||
ssl_cert_v4=$(exec_on cuke-master cat /opt/conjur/etc/ssl/ca.pem) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.