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

[FLAG-895] Add API Key validation to switch between Prod and Staging environments #4698

Closed
wants to merge 1 commit into from

Conversation

willian-viana
Copy link
Collaborator

@willian-viana willian-viana commented Sep 27, 2023

Overview

After some investigation on https://gfw.atlassian.net/browse/FLAG-860 we have found same API Key for both environments, Prod and Staging.

So we need to change it to use the right key depending on which environment we are.

Demo

Screenshot 2023-09-27 at 14 03 42

Notes

We need to add a new env property on Heroku

Testing

  • Open the dashboard to use any request you want
  • Check in the logs if the api key is the right one

@willian-viana willian-viana self-assigned this Sep 27, 2023
@willian-viana willian-viana marked this pull request as ready for review September 27, 2023 17:05
@willian-viana willian-viana temporarily deployed to gfw-staging-pr-4698 September 27, 2023 17:10 Inactive
@wri7tno
Copy link
Collaborator

wri7tno commented Sep 28, 2023

LGTM

@willian-viana
Copy link
Collaborator Author

After some discussion, we decided to use the same property and just change the value of NEXT_PUBLIC_GFW_API_KEY directly on Heroku side.

@willian-viana willian-viana deleted the feat/add-api-key-validation-FLAG-895 branch September 28, 2023 16:30
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