ocis icon indicating copy to clipboard operation
ocis copied to clipboard

Environment variable consolidation

Open dragonchaser opened this issue 1 year ago • 5 comments

At the moment we have tons of redundant environment variables that do not make sense IMHO. For example we configure OCIS_LOG_LEVEL, OCIS_LOG_PRETTY, OCIS_LOG_COLOR, OCIS_LOG_FILE for every service. It would be sufficient to define three of them (OCIS_LOG_PRETTY, OCIS_LOG_COLOR and OCIS_LOG_FILE) globally and just define a log level per service. This also applies to other variables and variable groups (e.g. Debug, RevaGateway etc.).

dragonchaser avatar Jan 22 '24 08:01 dragonchaser

/cc @micbar && @mmattel

dragonchaser avatar Jan 22 '24 08:01 dragonchaser

The reason for different prefixes is to allow changing the configuration of individual services when running in a single process.

We shoud phase out as many service specific variables as soon as possible. But they will need to stay in for backwards compatability.

I'm looking at the ServiceAccountsID env var which is another special case as every service should use a dedicated service account id. but then the settings service needs to know all accounts...

butonic avatar Feb 29 '24 09:02 butonic

The reason for different prefixes is to allow changing the configuration of individual services when running in a single process.

We shoud phase out as many service specific variables as soon as possible. But they will need to stay in for backwards compatability.

Already possible, using our deprecation system, it would be awesome if we could get rid of that with 6.0. It would be desirable to have only one variable per annotation and move global vars to ocis-pkg

I'm looking at the ServiceAccountsID env var which is another special case as every service should use a dedicated service account id. but then the settings service needs to know all accounts...

:+1:

dragonchaser avatar Feb 29 '24 09:02 dragonchaser

And we need to clarify how config parsing works in the docs https://owncloud.dev/ocis/config/

butonic avatar Feb 29 '24 09:02 butonic

UP

fschade avatar Jul 12 '24 08:07 fschade

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 21 '25 23:01 stale[bot]