singularityhub / sregistry

server for storage and management of singularity images
https://singularityhub.github.io/sregistry
Mozilla Public License 2.0
103 stars 42 forks source link

PLUGINS_ENABLED cannot be set in the settings.yaml file. #431

Closed karcaw closed 1 year ago

karcaw commented 1 year ago

the PLUGINS_ENABLED parameter can only be set in the environment, and not the settings.yaml file. I also suspect the secrets.py file will also be ignored.

https://github.com/singularityhub/sregistry/blob/ee23901a00a23d0d2a65fab5f484c803cfd60e44/shub/settings.py#L441

vsoch commented 1 year ago

Those would come from a comma delimited list SREGISTRY_PLUGINS_ENABLED in the environment. https://github.com/singularityhub/sregistry/blob/ee23901a00a23d0d2a65fab5f484c803cfd60e44/shub/settings.py#L451

We could add support for settings.yaml if you'd care to open a PR, just make sure the logic works to allow flexibility for both.