1
0
Fork 0

startLocalCluster to handle jwt-secret-file (#8278)

This commit is contained in:
Kaveh Vahedipour 2019-02-28 09:38:22 +01:00 committed by Max Neunhöffer
parent 3e02a726ee
commit b2d31ccb79
1 changed files with 2 additions and 1 deletions

View File

@ -105,7 +105,8 @@ if [ -z "$JWT_SECRET" ];then
AUTHENTICATION="--server.authentication false"
AUTHORIZATION_HEADER=""
else
AUTHENTICATION="--server.jwt-secret $JWT_SECRET"
echo $JWT_SECRET > cluster/secret.txt
AUTHENTICATION="--server.jwt-secret-keyfile cluster/secret.txt"
AUTHORIZATION_HEADER="Authorization: bearer $(jwtgen -a HS256 -s $JWT_SECRET -c 'iss=arangodb' -c 'server_id=setup')"
fi