Bug 51127 - Add flag to app.ini file to prevent App Center from implicit adding environment variables
Add flag to app.ini file to prevent App Center from implicit adding environme...
Status: NEW
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: App Center maintainers
App Center maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-04-21 10:45 CEST by Nico Gulden
Modified: 2020-04-22 09:01 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Feature Request
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?: Yes
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nico Gulden univentionstaff 2020-04-21 10:45:15 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.