![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
capistrano-secrets-yml
Advanced tools
Capistrano tasks for handling secrets.yml
when deploying Rails 4+ apps.
Add this to Gemfile
:
group :development do
gem 'capistrano', '~> 3.10.0'
gem 'capistrano-secrets-yml', '~> 1.1.0'
end
And then:
$ bundle install
Make sure your local config/secrets.yml
is not git tracked. It should be on
the disk, but gitignored.
Populate production secrets in local config/secrets.yml
:
production:
secret_key_base: d6ced...
Add to Capfile
:
require 'capistrano/secrets_yml'
Create secrets.yml
file on the remote server by executing this task:
$ bundle exec cap production setup
You can now proceed with other deployment tasks.
add it to local config/secrets.yml
:
production:
secret_key_base: d6ced...
foobar: some_other_secret
if you're working in a team where other people have the deploy rights, compare
you local secrets.yml
with the one on the server. This is to ensure you
didn't miss an update.
copy to the server:
$ bundle exec cap production setup
notify your colleagues that have the deploy rights that the remote
secrets.yml
has been updated so they can change their copy.
When you execute $ bundle exec production setup
:
secrets.yml
are copied to the servers in your config/deploy/{environment}.rb files using the user: value. a.production
,
only production secrets are copied there#{shared_path}/config/secrets.yml
On deployment:
#{current_path}/config/secrets.yml
None.
Check out capistrano-plugins github org.
shouldn't we be keeping configuration in environment variables as per 12 factor app rules?
On Heroku, yes.
With Capistrano, those env vars still have to be written somewhere on the disk
and used with a tool like dotenv.
Since we have to keep configuration on the disk anyway, it probably makes
sense to use Rails 4 built-in secrets.yml
mechanism.
FAQs
Unknown package
We found that capistrano-secrets-yml demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.