Skip to content

Migrate Rails.application.secrets to Environment Variables#13268

Merged
andreslucena merged 69 commits intodevelopfrom
chore/remove-secrets
Apr 1, 2025
Merged

Migrate Rails.application.secrets to Environment Variables#13268
andreslucena merged 69 commits intodevelopfrom
chore/remove-secrets

Conversation

@alecslupu
Copy link
Copy Markdown
Contributor

@alecslupu alecslupu commented Jul 31, 2024

🎩 What? Why?

This PR is removing all the Rails.application.secrets, as this is being deprecated in the upcoming rails 7.1 version, and is going to be removed in rails 7.2.

📌 Related Issues

Link your PR to an issue

Testing

  1. All the pipeline should be green
  2. Using this branch, create a new development application
  3. Boot the application
  4. See everything works as intended.

📷 Screenshots

Please add screenshots of the changes you are proposing
Description

♥️ Thank you!

@alecslupu alecslupu added the type: change PRs that implement a change for an existing feature label Jul 31, 2024
@alecslupu alecslupu mentioned this pull request Jul 31, 2024
github-actions[bot]
github-actions bot previously approved these changes Jul 31, 2024
github-actions[bot]
github-actions bot previously approved these changes Jul 31, 2024
github-actions[bot]
github-actions bot previously approved these changes Jul 31, 2024
github-actions[bot]
github-actions bot previously approved these changes Aug 1, 2024
github-actions[bot]
github-actions bot previously approved these changes Aug 1, 2024
github-actions[bot]
github-actions bot previously approved these changes Aug 1, 2024
github-actions[bot]
github-actions bot previously approved these changes Aug 2, 2024
@andreslucena andreslucena changed the title Move secrets to ENV Migrate Rails.application.secrets to Environment Variables Mar 28, 2025
Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
github-actions[bot]
github-actions bot previously approved these changes Mar 28, 2025
github-actions[bot]
github-actions bot previously approved these changes Mar 28, 2025
github-actions[bot]
github-actions bot previously approved these changes Mar 28, 2025
@andreslucena
Copy link
Copy Markdown
Member

@alecslupu this one is still in the docs:

$ rg Rails.application.secrets   docs/modules/services/pages/social_providers.adoc
104:if Rails.application.secrets.dig(:omniauth, :myprovider).present?

Can you remove it? Or do you prefer to do that in the next PR?

github-actions[bot]
github-actions bot previously approved these changes Mar 31, 2025
andreslucena
andreslucena previously approved these changes Mar 31, 2025
Copy link
Copy Markdown
Member

@andreslucena andreslucena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I mentioned in my last comments, there are a couple of details pending that we will fix in another PR. I'll do an issue to keep track of those details.

Approving and merging as is so we can unblock other related PRs

alecslupu and others added 2 commits March 31, 2025 13:06
Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
@alecslupu alecslupu requested a review from andreslucena March 31, 2025 13:57
@andreslucena
Copy link
Copy Markdown
Member

Merging with the only failure of codecov

@andreslucena andreslucena merged commit afc3768 into develop Apr 1, 2025
118 of 119 checks passed
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Maintainers' backlog Apr 1, 2025
@andreslucena andreslucena deleted the chore/remove-secrets branch April 1, 2025 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants