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

feat(api): add feature flag for external API #2077

Merged
merged 1 commit into from
Nov 16, 2022

Conversation

halfwhole
Copy link
Collaborator

Problem

We want to have a feature flag to toggle between enabling/disabling the external API

Solution

Introduce a new optional env variable FF_EXTERNAL_API, a boolean that defaults to false unless explicitly set to true. This variable controls whether the external API v1 routes are enabled.

Deploy Notes

New environment variables:

  • FF_EXTERNAL_API (optional): feature flag for external API that defaults to false

Pre-deploy or post-deploy: set FF_EXTERNAL_API to true to enable it when we're ready

@gitguardian

This comment was marked as resolved.

@halfwhole
Copy link
Collaborator Author

^ ignore the above gitguardian comment, it relates to API_KEY_SALT in docker-compose.yml that's safe and wasn't even touched by this PR

@halfwhole halfwhole requested a review from thanhdatle November 14, 2022 04:21
@halfwhole halfwhole force-pushed the feat/api/feature-flag branch from e0bc191 to a0868d3 Compare November 16, 2022 03:33
@halfwhole halfwhole merged commit 5c5dc5a into develop Nov 16, 2022
@halfwhole halfwhole deleted the feat/api/feature-flag branch November 16, 2022 03:50
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