diff options
author | Ernst Widerberg <ernst@sunet.se> | 2022-01-13 18:10:22 +0100 |
---|---|---|
committer | Ernst Widerberg <ernst@sunet.se> | 2022-01-13 18:10:22 +0100 |
commit | bfe891000c2d6bb2c73bdc635d22640a3e89e729 (patch) | |
tree | 7d56b8af24102823f4976319641d8a977ffdc8ff /quickstart.sh | |
parent | 386f3bd73383368facd9807f737e26478b0302f3 (diff) |
Add read/write permissions to JWTs based on YAML
- Uses Linus's YAML code, except with password stuff removed since
auth-server-poc uses htpasswd.
- The collector checks JWT on API endpoints get, get/{key}, and
delete/{key}, but not on add.
Diffstat (limited to 'quickstart.sh')
-rwxr-xr-x | quickstart.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/quickstart.sh b/quickstart.sh index d46a791..6e566de 100755 --- a/quickstart.sh +++ b/quickstart.sh @@ -27,7 +27,10 @@ fi # Generate a default htpasswd file with a user "usr:pwd". if [ ! -f ${DOCKER_JWT_HTPASSWD_PATH}/.htpasswd ]; then - htpasswd -b -c ${DOCKER_JWT_HTPASSWD_PATH}/.htpasswd usr pwd + htpasswd -b -c ${DOCKER_JWT_HTPASSWD_PATH}/.htpasswd user1 pwd + htpasswd -b ${DOCKER_JWT_HTPASSWD_PATH}/.htpasswd user2 pwd + htpasswd -b ${DOCKER_JWT_HTPASSWD_PATH}/.htpasswd user3 pwd + htpasswd -b ${DOCKER_JWT_HTPASSWD_PATH}/.htpasswd user4 pwd fi # Launch the containers. |