From bfe891000c2d6bb2c73bdc635d22640a3e89e729 Mon Sep 17 00:00:00 2001 From: Ernst Widerberg Date: Thu, 13 Jan 2022 18:10:22 +0100 Subject: 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. --- quickstart.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'quickstart.sh') 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. -- cgit v1.1