You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
filippomc
changed the title
Common microservice: get runtime configuration
Common microservice: get runtime environment
Sep 6, 2023
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
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)
The text was updated successfully, but these errors were encountered: