Is there any documentation on how to set up and use the master key for development?
Starting a new rails 5.2 app generates a key in config/master.key. That file is added to the .gitignore, so when other members of my team check it out, they do not have the key.
If another member of my team checks out the repo and attempts to run the server, they get an error that the key is missing.
Now, when they generate a key and put it in config/master.key, they get a ActiveSupport::MessageEncryptor::InvalidMessage error when trying to start up the rails server unless it is the exact key that was generated when the app was created.
It seems like rails is trying to decrypt some files (or something) and needs the key to do so. In the default 5.2 app, which files not in the .gitignore are being encrypted?
If the exact starting key is required to run rails, then why is it in the .gitignore, or even configurable at all?
Is there a way for different members of my team to use a different key in development? Is there a way to use a different key in production? Is there a way to change the key in production periodically?
Is all of this documented somewhere?
Sorry for all of the questions.
Thanks for your time!