Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audit usage of environment variables #6096

Open
1 task
masaball opened this issue Oct 31, 2024 · 0 comments
Open
1 task

Audit usage of environment variables #6096

masaball opened this issue Oct 31, 2024 · 0 comments

Comments

@masaball
Copy link
Contributor

masaball commented Oct 31, 2024

Description

From slack:

John M.
12:14 PM
My avalon-docker 7.5.0 instance isn't automatically deleting masterfiles from dropbox. The environment variable is set to MASTER_FILE_STRATEGY=delete in docker-compose.yml, however, the avalon container's settings.yml has master_file_management: strategy: 'none'. Shouldn't the former override the latter?

Looking into it, I found that we do not seem to look at that environment variable at all when managing the master file.

If there is an environment variable that we explicitly make available to implementers, we should probably be using it. Do we need to go through the list of available environment variables and make sure that they are actually being utilized?

Secondly, should we prioritize environment variables over the settings file? (Answer: yes!) In active_fedora_env.rb we prioritize the settings file. But in ac_mediainfo.rb we set the environment variable from the settings file if the variable has not already been set, implicitly prioritizing the variable.

Done Looks Like

  • Review the core and docker repositories and make sure settings names are all the most recent versions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant