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

feat: S3 secret environment variable #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

EthanFreestone
Copy link
Collaborator

@EthanFreestone EthanFreestone commented Jan 30, 2025

Tweak to how S3 secret is read. First the AppSetting for S3SecretKey is read, if that is null then it searches for S3SecretEnvironmentVariable for a tenant level env var.

This will initially not be present in agreements/licenses, and so null/empty-safeing has been introduced to AppSetting.getSettingValue.

Finally if all above have returned null, fall back to GLOBAL_S3_SECRET_KEY

refs ERM-3470

Tweak to how S3 secret is read. First the AppSetting for S3SecretKey is read, if that is null then it searches for S3SecretEnvironmentVariable for a tenant level env var.

This will initially not be present in agreements/licenses, and so null/empty-safeing has been introduced to AppSetting.getSettingValue.

Finally if all above have returned null, fall back to GLOBAL_S3_SECRET_KEY
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

Successfully merging this pull request may close these issues.

1 participant