Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
How to change master.key #32718
Steps to reproduce
I have setup a new project and using Rails 5.2 and its encrypted credentials feature. But if my master.key file get compromised then how would I change it and should be able to use encrypted credentials with newly created master key.
Should be able to renew master key by using previous master key just like we can change password with using current password.
Unable to change master key
We do not offer the feature for that.
Please use the Rails Core mailing list for feature requests, where a wider community will be able to help you. We reserve the Rails issue tracker only for bugs in Rails. Thanks.
Currently, there is no “edit password” feature, you need copy original content of the credentials, remove the enc files and regenerate fresh credentials file (source)
step 1 copy content of original credentials rails credentials:show
@y-yagi kindly try to understand the problem before closing an issue.