Skip to content
This repository was archived by the owner on Dec 7, 2023. It is now read-only.

Commit a2470ca

Browse files
jonahxjvanderhoof
authored andcommitted
Bump conjur api 4957 (#214)
* Fix bug in start script and echo API key * Update README * Bump conjur-api to 5.1 * Bump VERSION number
1 parent 9b714e5 commit a2470ca

4 files changed

Lines changed: 41 additions & 7 deletions

File tree

README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,31 @@ $ cd dev
6868
dev $ ./start.sh
6969
```
7070

71-
This will drop you into a bash shell in a container called `cli`. The sandbox also includes a Postgres container and Conjur server container. The environment is already setup to connect the CLI to the server:
71+
This will drop you into a bash shell in a container called `cli`.
72+
73+
The sandbox also includes a Postgres container and Conjur server container. The
74+
environment is already setup to connect the CLI to the server:
7275

7376
* **CONJUR_APPLIANCE_URL** `http://conjur`
7477
* **CONJUR_ACCOUNT** `cucumber`
7578

76-
You can obtain the API key for the role `cucumber:user:admin` from the Docker logs of the Conjur container. Use it to login:
79+
To login to conjur, type the following and you'll be prompted for a password:
7780

7881
```sh-session
7982
root@2b5f618dfdcb:/# conjur authn login admin
8083
Please enter admin's password (it will not be echoed):
81-
Logged in
84+
```
85+
86+
The required password is the API key at the end of the output from the
87+
`start.sh` script. It looks like this:
88+
89+
```
90+
=============== LOGIN WITH THESE CREDENTIALS ===============
91+
92+
username: admin
93+
api key : 9j113d35wag023rq7tnv201rsym1jg4pev1t1nb4419767ms1cnq00n
94+
95+
============================================================
8296
```
8397

8498
At this point, you can use any CLI command you like.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.0.1
1+
6.1.0

conjur-cli.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Gem::Specification.new do |gem|
1919
gem.version = Conjur::VERSION
2020

2121
gem.add_dependency 'activesupport', '>= 4.2', '< 6'
22-
gem.add_dependency 'conjur-api', '~> 5.0'
22+
gem.add_dependency 'conjur-api', '~> 5.1'
2323
gem.add_dependency 'gli', '>=2.8.0'
2424
gem.add_dependency 'highline', '~> 1.7'
2525
gem.add_dependency 'netrc', '~> 0.10'

dev/start.sh

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#!/bin/bash -ex
1+
#!/bin/bash
2+
set -ex
23

34
export COMPOSE_PROJECT_NAME=clirubydev
45

@@ -7,9 +8,28 @@ docker-compose build
78
if [ ! -f data_key ]; then
89
echo "Generating data key"
910
docker-compose run --no-deps --rm conjur data-key generate > data_key
11+
docker-compose run --no-deps --rm conjurctl role retrieve-key cucumber:user:admin
1012
fi
1113

12-
export POSSUM_DATA_KEY="$(cat data_key)"
14+
export CONJUR_DATA_KEY="$(cat data_key)"
1315

1416
docker-compose up -d
17+
docker-compose exec conjur conjurctl wait
18+
19+
apikey=$(docker-compose exec conjur \
20+
conjurctl role retrieve-key cucumber:user:admin)
21+
22+
set +x
23+
echo ''
24+
echo ''
25+
echo '=============== LOGIN WITH THESE CREDENTIALS ==============='
26+
echo ''
27+
echo 'username: admin'
28+
echo "api key : ${apikey}"
29+
echo ''
30+
echo '============================================================'
31+
echo ''
32+
echo ''
33+
set -x
34+
1535
docker-compose exec cli bash

0 commit comments

Comments
 (0)