From 7f1fcce6f93e5cdaf05f7297468c9ed7cc5b0fd5 Mon Sep 17 00:00:00 2001 From: Brice Schaffner Date: Thu, 18 Jul 2024 07:36:51 +0200 Subject: [PATCH] PB-175: Changed Google API key path and updated docu See https://github.com/geoadmin/infra-terraform-bgdi-builder/pull/253 --- README.md | 15 ++++----------- secrets.yml | 2 +- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 86ee35b80..852971cf8 100644 --- a/README.md +++ b/README.md @@ -185,24 +185,17 @@ For more information about loading environment variables see [Vue - Modes and En ### Tooling for translation update Our translation master is hosted in a Google Spreadsheet, thus if you want to update translations you will need a valid Google API Key. -One can be found in our `gopass` store `infra-gopass-bgdi`. +One can be found in our AWS SSM store in `swisstopo-bgdi-builder` account. -For this purpose you will need to install [gopass](https://github.com/gopasspw/gopass), and to be more efficient use it with [summon](https://github.com/cyberark/summon). - -In order for them to function together, they need to be linked with - -```bash -mkdir /usr/local/lib/summon -ln -s $(which gopass) /usr/local/lib/summon/gopass -``` +In order to easily access the google API key stored in AWS SSM we use [summon](https://github.com/cyberark/summon) as follow: Translations can then be updated with ```bash -summon -p gopass npm run update:translations +summon -p ssm npm run update:translations ``` -The file `secrets.yml` will tell `summon` which keys to get from `gopass`. +The file `secrets.yml` will tell `summon` which keys to get from AWS SSM. ### List of npm scripts diff --git a/secrets.yml b/secrets.yml index 14c89cb5f..720b6cef6 100644 --- a/secrets.yml +++ b/secrets.yml @@ -1,3 +1,3 @@ # required in order to access the translation spreadsheet (while running `npm run update:translations`) -GOOGLE_API_KEY: !var /google.com/web-mapviewer/api-key --profile swisstopo-bgdi-builder +GOOGLE_API_KEY: !var /google.com/kogis.iwi/tokens/web-mapviewer --profile swisstopo-bgdi-builder CYPRESS_RECORD_KEY: !var /cypress.io/ppbgdi/web-mapviewer/record-key --profile swisstopo-bgdi-builder