Update api-keys in redis
This commit is contained in:
parent
5c7f5fbaa5
commit
a3188fa3b5
@ -174,12 +174,12 @@ EOF
|
|||||||
|
|
||||||
# API Key Default public
|
# API Key Default public
|
||||||
cat <<EOF | redis-cli -h ${REDIS_HOST} -p ${REDIS_PORT} -n 5
|
cat <<EOF | redis-cli -h ${REDIS_HOST} -p ${REDIS_PORT} -n 5
|
||||||
HMSET api_keys:vizzuality:default \
|
HMSET api_keys:vizzuality:default_public \
|
||||||
user "vizzuality" \
|
user "vizzuality" \
|
||||||
type "default" \
|
type "default" \
|
||||||
grants_sql "true" \
|
grants_sql "true" \
|
||||||
db_role "test_windshaft_publicuser" \
|
database_role "test_windshaft_publicuser" \
|
||||||
db_password "public"
|
database_password "public"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# API Key Master
|
# API Key Master
|
||||||
@ -188,20 +188,20 @@ HMSET api_keys:vizzuality:1234 \
|
|||||||
user "vizzuality" \
|
user "vizzuality" \
|
||||||
type "master" \
|
type "master" \
|
||||||
grants_sql "true" \
|
grants_sql "true" \
|
||||||
db_role "${TESTUSER}" \
|
database_role "${TESTUSER}" \
|
||||||
db_password "${TESTPASS}"
|
database_password "${TESTPASS}"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# User: cartodb250user
|
# User: cartodb250user
|
||||||
|
|
||||||
# API Key Default public
|
# API Key Default public
|
||||||
cat <<EOF | redis-cli -h ${REDIS_HOST} -p ${REDIS_PORT} -n 5
|
cat <<EOF | redis-cli -h ${REDIS_HOST} -p ${REDIS_PORT} -n 5
|
||||||
HMSET api_keys:cartodb250user:default \
|
HMSET api_keys:cartodb250user:default_public \
|
||||||
user "cartodb250user" \
|
user "cartodb250user" \
|
||||||
type "default" \
|
type "default" \
|
||||||
grants_sql "true" \
|
grants_sql "true" \
|
||||||
db_role "test_windshaft_publicuser" \
|
database_role "test_windshaft_publicuser" \
|
||||||
db_password "public"
|
database_password "public"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# API Key Master
|
# API Key Master
|
||||||
@ -210,8 +210,8 @@ HMSET api_keys:cartodb250user:1234 \
|
|||||||
user "cartodb250user" \
|
user "cartodb250user" \
|
||||||
type "master" \
|
type "master" \
|
||||||
grants_sql "true" \
|
grants_sql "true" \
|
||||||
db_role "${TESTUSER}" \
|
database_role "${TESTUSER}" \
|
||||||
db_password "${TESTPASS}"
|
database_password "${TESTPASS}"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user