Sha256: e9f4d825ad4487c4e20c0451d7f47136137ef8122ae00dc83e047f735eef73a1

Contents?: true

Size: 912 Bytes

Versions: 119

Compression:

Stored size: 912 Bytes

Contents

=== Storing Encrypted Files in Source Control

The Rails `encrypted` commands provide access to encrypted files or configurations.
See the `Rails.application.encrypted` documentation for using them in your app.

=== Encryption Keys

By default, Rails looks for the encryption key in `config/master.key` or
`ENV["RAILS_MASTER_KEY"]`, but that lookup can be overridden with `--key`:

   rails encrypted:edit config/encrypted_file.yml.enc --key config/encrypted_file.key

Don't commit the key! Add it to your source control's ignore file. If you use
Git, Rails handles this for you.

=== Editing Files

To edit or create an encrypted file use:

   rails encrypted:edit config/encrypted_file.yml.enc

This opens a temporary file in `$EDITOR` with the decrypted contents for editing.

=== Viewing Files

To print the decrypted contents of an encrypted file use:

   rails encrypted:show config/encrypted_file.yml.enc

Version data entries

119 entries across 113 versions & 10 rubygems

Version Path
railties-7.0.8.7 lib/rails/commands/encrypted/USAGE
railties-7.0.8.6 lib/rails/commands/encrypted/USAGE
railties-6.1.7.10 lib/rails/commands/encrypted/USAGE
railties-6.1.7.9 lib/rails/commands/encrypted/USAGE
railties-7.0.8.5 lib/rails/commands/encrypted/USAGE
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/railties-7.0.8.4/lib/rails/commands/encrypted/USAGE
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/railties-7.0.5.1/lib/rails/commands/encrypted/USAGE
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/railties-7.0.5.1/lib/rails/commands/encrypted/USAGE
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/railties-7.0.5.1/lib/rails/commands/encrypted/USAGE
railties-7.0.8.4 lib/rails/commands/encrypted/USAGE
railties-6.1.7.8 lib/rails/commands/encrypted/USAGE
railties-7.0.8.1 lib/rails/commands/encrypted/USAGE
railties-6.1.7.7 lib/rails/commands/encrypted/USAGE
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/commands/encrypted/USAGE
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/railties-7.0.2.3/lib/rails/commands/encrypted/USAGE
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/railties-7.0.3.1/lib/rails/commands/encrypted/USAGE
railties-7.0.8 lib/rails/commands/encrypted/USAGE
railties-7.0.7.2 lib/rails/commands/encrypted/USAGE
railties-6.1.7.6 lib/rails/commands/encrypted/USAGE
railties-7.0.7.1 lib/rails/commands/encrypted/USAGE