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

Don't load eyaml when SECRET_KEY_BASE_DUMMY env var is set #43

Merged
merged 3 commits into from
Aug 6, 2024

Conversation

svanhesteren
Copy link
Contributor

@svanhesteren svanhesteren commented Aug 6, 2024

Since rails can run asset precompilation in production without having a master key set by setting SECRET_KEY_BASE_DUMMY, eyaml should do so too. This env var will skip loading the eyaml/ejson files during the rails environment loading so you don't end up with an error if you don't have keys set in your CI for example.

This can be handy for things like migrations/asset precompilation where secrets are not needed anyway.

See rails/rails#46760 for the reason behind SECRET_KEY_BASE_DUMMY

Addresses #42

@svanhesteren svanhesteren marked this pull request as ready for review August 6, 2024 13:19
@svanhesteren svanhesteren requested a review from julik August 6, 2024 13:19
@svanhesteren svanhesteren merged commit 5bad19f into main Aug 6, 2024
1 check passed
@svanhesteren svanhesteren deleted the support-secret-key-base-dummy branch August 6, 2024 14:58
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.

2 participants