Closed kgartland-rstudio closed 1 month ago
I'm thinking a combination of two changes could be very helpful here:
When using the UI, change the add behavior to prevent adding a secret with the same name as an environment variable, or visa versa.
When the selected Configuration has Secret / Env Var collision show a warning and potentially disable the deploy button (look to other behavior to keep it consistent).
If I have a config that includes both a Secret an Environment Variable with the same name, Secret wins. If I then go to redeploy the Environment variable will win because we clear out the Secret after the initial deployment.
This could lead to some confusion. Can we add some validation to ensure Secrets and Environment cannot contain the same name?
Example config: