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

Common microservice: get runtime environment #706

Open
filippomc opened this issue Sep 6, 2023 · 1 comment
Open

Common microservice: get runtime environment #706

filippomc opened this issue Sep 6, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@filippomc
Copy link
Collaborator

filippomc commented Sep 6, 2023

Currently there is no generic way to setup configurations that are different on the different environments in the frontend, at runtime. One example is the google analytics tag between dev and prod environment.

The common microservice provides that for Sentry and Accounts but there is no generic way to add more.

A new endpoint can be added to the common microservice to get global configurations, say GET api/environment?var=A.

This will return the configuration variable named "A" (note that is better not to expose any environmental variable from the runtime, but only the values that are intended to)

@filippomc filippomc changed the title Common microservice: get runtime configuration Common microservice: get runtime environment Sep 6, 2023
@filippomc filippomc added the enhancement New feature or request label Sep 6, 2023
@filippomc
Copy link
Collaborator Author

A more powerful approach could be to add am endpoint to return anything in the values.yaml configuration, have to see how much this could expose potentially exploitable information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant