Allow editing locked environment variable defined in Docker Compose file (UI prevents deletion) #9747
Replies: 3 comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
-
|
Hey @Jonas-Marty , this is actually not a bug but the intended behavior. Removing the env variable from the Compose first would be indeed the needed step for you to be able to delete it in the UI. Coolify automatically adds / create all the env variables mentioned in your compose file in the Environment Variables UI in Coolify. That caused confusion for some users, because it would also make the env variable automatically re-appear in the UI when you try to delete it, if still present in the compose. Hence why it's now forced to delete from the compose first. Of course this becomes quite frustrating, when dealing with locked environment variables, as you can't edit them, but have to delete and re-create it. I will move this into the Discussions to turn it into a feature request. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Error Message and Logs
I have an environment variable that is defined in the project's docker-compose file. I'm new to Coolify and tried the Lock feature (the env also contains sensitive information so i assumed the lock function is a way to prevent looking at it). As expected I was not able to see its content afterwards but i was also not able to update the content. The UI tells me i need to deleted an recreate the Environment variable. So far so good and reasonable behavior but when I try to remove it via the Coolify UI it cannot be deleted because it is sourced from the compose file. So I'm basically stuck now and maybe need to update the underlying docker-compose file through committing to remove it (or at least allow me to remove it then).
Expected Behavior
The UI should either:
Steps to Reproduce
KEY=...or interpolationKEY=${KEY}).Example Repository URL
No response
Coolify Version
v4.0.0-beta.473
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
Ubuntu Server 24.04
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions