Skip to content

Commit

Permalink
Move the superusers config value over to a secret (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
dannymandel authored Aug 7, 2024
1 parent 12446d7 commit 056b80a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ services:
- hypothesis_jwt_client_id
- hypothesis_jwt_client_secret
- orcid_token_secret
- orcid_superusers


solr_schema_init:
Expand Down Expand Up @@ -134,3 +135,5 @@ secrets:
file: ./secrets/hypothesis_jwt_client_secret
orcid_token_secret:
file: ./secrets/orcid_token_secret
orcid_superusers:
file: ./secrets/orcid_superusers
1 change: 1 addition & 0 deletions isb/isb_container_startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export DATACITE_PASSWORD=`cat /run/secrets/datacite_password`
export HYPOTHESIS_JWT_CLIENT_ID=`cat /run/secrets/hypothesis_jwt_client_id`
export HYPOTHESIS_JWT_CLIENT_SECRET=`cat /run/secrets/hypothesis_jwt_client_secret`
export ORCID_TOKEN_SECRET=`cat /run/secrets/orcid_token_secret`
export ORCID_SUPERUSERS=`cat /run/secrets/orcid_superusers`
# Note that cron jobs don't inherit the environment when run -- docker *does* run with environment variables
# so we need this step to export the docker environment for cron
declare -p | grep -Ev 'BASHOPTS|BASH_VERSINFO|EUID|PPID|SHELLOPTS|UID' > /container.env
Expand Down

0 comments on commit 056b80a

Please sign in to comment.