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

Reset cached secrets on Rails 7.0 #23259

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

jrafanie
Copy link
Member

@jrafanie jrafanie commented Nov 6, 2024

Partial Revert of #23254

Enhanced the test to check both the app config secret_key_base and app secret_key_base as there's caches in both. These test changes make the test fail if we do not clear the cached secrets on Rails 7.0.

This seems to fix an issue with caching in both secrets and the config on rails 7.0:

Missing `secret_key_base` for 'production' environment, set this string with `bin/rails credentials:edit` (ArgumentError)

Partial Revert of ManageIQ#23254

Enhanced the test to check both the app config secret_key_base and app
secret_key_base as there's caches in both.  These test changes make the
test fail if we do not clear the cached secrets on Rails 7.0.
@jrafanie jrafanie force-pushed the properly-reset-cached-secrets branch from 70ad46d to 8f8ac7e Compare November 6, 2024 23:32
@jrafanie
Copy link
Member Author

jrafanie commented Nov 6, 2024

Fixed a minor typo < 7.1 instead of <= 7.1

@bdunne bdunne merged commit bd4b369 into ManageIQ:master Nov 7, 2024
12 checks passed
@jrafanie jrafanie deleted the properly-reset-cached-secrets branch November 7, 2024 14:33
@jrafanie jrafanie mentioned this pull request Nov 7, 2024
41 tasks
bdunne added a commit that referenced this pull request Nov 7, 2024
Reset cached secrets on Rails 7.0

(cherry picked from commit bd4b369)
@bdunne
Copy link
Member

bdunne commented Nov 7, 2024

Backported to radjabov in ef52dff

commit ef52dffb1dcaba21be5a3e50b1f5459f02df602d
Author: Brandon Dunne <[email protected]>
Date:   Wed Nov 6 20:03:57 2024 -0500

    Merge pull request #23259 from jrafanie/properly-reset-cached-secrets
    
    Reset cached secrets on Rails 7.0
    
    (cherry picked from commit bd4b3698c4a00154bed3a07210c3192702f22baa)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants