From d2718929302b13e16b18f1b8aa78b0fa8c3ab6d2 Mon Sep 17 00:00:00 2001 From: Alex Parsons Date: Sat, 8 Jun 2024 19:59:54 +0000 Subject: [PATCH] Prompt on codespace creation for suggested keys --- .../auto-quick-setup/devcontainer.json | 30 +++++++++++++++++++ .devcontainer/devcontainer.json | 30 +++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/.devcontainer/auto-quick-setup/devcontainer.json b/.devcontainer/auto-quick-setup/devcontainer.json index 90d74945e3..753981a070 100644 --- a/.devcontainer/auto-quick-setup/devcontainer.json +++ b/.devcontainer/auto-quick-setup/devcontainer.json @@ -1,6 +1,36 @@ { "name": "theyworkforyou", + "secrets": { + "TWFY_VOTES_URL": { + "description": "URL to the TWFY Votes page" + }, + "MAPIT_URL": { + "description": "URL to the MapIt API - defaults to mapit.mysociety.org" + }, + "MAPIT_API_KEY": { + "description": "API key for the MapIt API - optional for small numbers of queries" + }, + "DEMOCRACYCLUB_TOKEN": { + "description": "API key for the Democracy Club API - only for election postcode lookups." + }, + "RECAPACHA_SITE_KEY": { + "description": "Recapacha site key. Can use v2 test keys from link.", + "documentationUrl": "https://developers.google.com/recaptcha/docs/faq#:~:text=hidden%3B%20%7D-,I%27d%20like%20to%20run%20automated%20tests%20with%20reCAPTCHA.%20What%20should%20I%20do%3F,-For%20reCAPTCHA%20v3" + }, + "RECAPACHA_SECRET": { + "description": "Recapacha secret key. Can use v2 test keys from link.", + "documentationUrl": "https://developers.google.com/recaptcha/docs/faq#:~:text=hidden%3B%20%7D-,I%27d%20like%20to%20run%20automated%20tests%20with%20reCAPTCHA.%20What%20should%20I%20do%3F,-For%20reCAPTCHA%20v3" + + }, + "STRIPE_DONATE_PUBLIC_KEY": { + "description": "Stripe donate public key (test key). Only needed for donate page testing." + }, + "STRIPE_DONATE_SECRET_KEY": { + "description": "Stripe donate secret key (test key). Only needed for donate page testing." + } + + }, "dockerComposeFile": "../../docker-compose.yml", "service": "twfy", "workspaceFolder": "/twfy", diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 27ec13bf1c..212ba18e3f 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,6 +1,36 @@ { "name": "theyworkforyou", + "secrets": { + "TWFY_VOTES_URL": { + "description": "URL to the TWFY Votes page" + }, + "MAPIT_URL": { + "description": "URL to the MapIt API - defaults to mapit.mysociety.org" + }, + "MAPIT_API_KEY": { + "description": "API key for the MapIt API - optional for small numbers of queries" + }, + "DEMOCRACYCLUB_TOKEN": { + "description": "API key for the Democracy Club API - only for election postcode lookups." + }, + "RECAPACHA_SITE_KEY": { + "description": "Recapacha site key. Can use v2 test keys from link.", + "documentationUrl": "https://developers.google.com/recaptcha/docs/faq#:~:text=hidden%3B%20%7D-,I%27d%20like%20to%20run%20automated%20tests%20with%20reCAPTCHA.%20What%20should%20I%20do%3F,-For%20reCAPTCHA%20v3" + }, + "RECAPACHA_SECRET": { + "description": "Recapacha secret key. Can use v2 test keys from link.", + "documentationUrl": "https://developers.google.com/recaptcha/docs/faq#:~:text=hidden%3B%20%7D-,I%27d%20like%20to%20run%20automated%20tests%20with%20reCAPTCHA.%20What%20should%20I%20do%3F,-For%20reCAPTCHA%20v3" + + }, + "STRIPE_DONATE_PUBLIC_KEY": { + "description": "Stripe donate public key (test key). Only needed for donate page testing." + }, + "STRIPE_DONATE_SECRET_KEY": { + "description": "Stripe donate secret key (test key). Only needed for donate page testing." + } + + }, "dockerComposeFile": "../docker-compose.yml", "service": "twfy", "workspaceFolder": "/twfy",