Univention Bugzilla – Bug 51127
Add flag to app.ini file to prevent App Center from implicit adding environment variables
Last modified: 2020-04-22 09:01:52 CEST
There are Docker based apps in the App Center that cannot handle all the environment variables that it adds to the container start. Some variables even provoke errors in the container and prevent its start. In general, apps can define their environment variables with the `env` file. This can be used for single and multi container apps. App developers are used to those files. On UCS they are UCR templates. We should add a flag to the app.ini file that prevents the App Center from adding the default variables for example LDAP_* or others to the Docker based app. The app should only rely on the env file and the Docker compose file. This allows the app developer to explicitly define only the variables needed for the app. If the flag is not given in the app.ini file, the App Center behaves as it already does. This allows backward compatibility. The new flag could be named "ExplicitEnvVariablesOnly=True". Default is False and is applied, when the flag is missing.