Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve codespace secrets approach #1798

Merged
merged 5 commits into from
Oct 7, 2024
Merged

Improve codespace secrets approach #1798

merged 5 commits into from
Oct 7, 2024

Conversation

ajparsons
Copy link
Contributor

Features like the donate page and election lookup need external API keys, which doesn't work nicely with the docker setup because the conf/general is recreated each time the docker is opened (rather than created).

This PR:

  • Adjusts docker setup so that system environmental variables populate the conf/general file.
  • Adjust 'devcontainer.json' to prompt codespaces users to setup the (optional) keys in their user codespace secrets store.

image

@ajparsons ajparsons requested a review from dracos June 18, 2024 14:42
@dracos dracos force-pushed the master branch 3 times, most recently from 2c2b1cc to ccc444c Compare July 5, 2024 08:11
Copy link
Member

@dracos dracos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some typos to fix I think is all

MAPIT_URL: ${MAPIT_URL:-https://mapit.mysociety.org/}
MAPIT_API_KEY: ${MAPIT_API_KEY:-}
DEMOCRACYCLUB_TOKEN: ${DEMOCRACYCLUB_TOKEN:-}
RECAPACHA_SITE_KEY: ${RECAPACHA_SITE_KEY:-}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some spelling mistakes in here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fixed!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And still mispelled here

"DEMOCRACYCLUB_TOKEN": {
"description": "API key for the Democracy Club API - only for election postcode lookups."
},
"RECAPACHA_SITE_KEY": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still misspelled in this file

MAPIT_URL: ${MAPIT_URL:-https://mapit.mysociety.org/}
MAPIT_API_KEY: ${MAPIT_API_KEY:-}
DEMOCRACYCLUB_TOKEN: ${DEMOCRACYCLUB_TOKEN:-}
RECAPACHA_SITE_KEY: ${RECAPACHA_SITE_KEY:-}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And still mispelled here

@ajparsons
Copy link
Contributor Author

Sorry sorry - should all be fixed.

@ajparsons ajparsons requested a review from dracos October 4, 2024 11:54
Copy link
Member

@dracos dracos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Didn't want that to cause some confusion down the line somewhere, if unlikely :)

@ajparsons ajparsons merged commit f3f8ed9 into master Oct 7, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants