Skip to content

Commit

Permalink
Reorganize secrets in Keybase
Browse files Browse the repository at this point in the history
  • Loading branch information
williambelle committed Jul 25, 2023
1 parent 3e5db6b commit 9ba9047
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ help:
@echo " make exec — Enter the container"

# To add all variable to your shell, use
# export $(xargs < /keybase/team/epfl_search/api/env);
# export $(xargs < /keybase/team/epfl_search/api/local/env);
check-env:
ifeq ($(wildcard /keybase/team/epfl_search/api/env),)
@echo "Be sure to have access to /keybase/team/epfl_search/api/env"
ifeq ($(wildcard /keybase/team/epfl_search/api/local/env),)
@echo "Be sure to have access to /keybase/team/epfl_search/api/local/env"
@exit 1
else
include /keybase/team/epfl_search/api/env
include /keybase/team/epfl_search/api/local/env
export
endif

Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/search-api-k8s/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ openshift_namespace: 'wwp-test'
app_name: 'searchapi'
team: 'isas-fsd'

searchapi_secrets: "{{ lookup('file', '/keybase/team/epfl_search/api/secrets.yml') | from_yaml }}"
searchapi_secrets: "{{ lookup('file', '/keybase/team/epfl_search/api/staging/secrets.yml') | from_yaml }}"
searchapi_key: '{{ searchapi_secrets.SEARCH_API_CSE_API_KEY }}'
searchapi_cx: '{{ searchapi_secrets.SEARCH_API_CSE_CX }}'

0 comments on commit 9ba9047

Please sign in to comment.