Skip to content

Commit 3a42c23

Browse files
authored
Merge pull request rails#34955 from bogdanvlviv/follow-up-33962
Add `config.credentials.content_path` and `config.credentials.key_path` to the guide
2 parents f55306f + 4aa9935 commit 3a42c23

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

guides/source/configuring.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ defaults to `:debug` for all environments. The available log levels are: `:debug
135135

136136
* `config.reload_classes_only_on_change` enables or disables reloading of classes only when tracked files change. By default tracks everything on autoload paths and is set to `true`. If `config.cache_classes` is `true`, this option is ignored.
137137

138+
* `config.credentials.content_path` configures lookup path for encrypted credentials.
139+
140+
* `config.credentials.key_path` configures lookup path for encryption key.
141+
138142
* `secret_key_base` is used for specifying a key which allows sessions for the application to be verified against a known secure key to prevent tampering. Applications get a random generated key in test and development environments, other environments should set one in `config/credentials.yml.enc`.
139143

140144
* `config.public_file_server.enabled` configures Rails to serve static files from the public directory. This option defaults to `true`, but in the production environment it is set to `false` because the server software (e.g. NGINX or Apache) used to run the application should serve static files instead. If you are running or testing your app in production mode using WEBrick (it is not recommended to use WEBrick in production) set the option to `true.` Otherwise, you won't be able to use page caching and request for files that exist under the public directory.

railties/CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@
4444
gsub Gemfile
4545
```
4646
47-
The change command copies a template `config/database.yml` with the target database adapter into your app, and replaces your database gem with the target database gem.
47+
The change command copies a template `config/database.yml` with
48+
the target database adapter into your app, and replaces your database gem
49+
with the target database gem.
4850
4951
*Gannon McGibbon*
5052
@@ -178,7 +180,7 @@
178180
The encryption key can be in `ENV["RAILS_MASTER_KEY"]` or `config/credentials/production.key`.
179181
180182
Environment credentials overrides can be edited with `rails credentials:edit --environment production`.
181-
If no override is setup for the passed environment, it will be created.
183+
If no override is set up for the passed environment, it will be created.
182184
183185
Additionally, the default lookup paths can be overwritten with these configs:
184186

railties/lib/rails/commands/credentials/USAGE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ from leaking.
4242
=== Environment Specific Credentials
4343

4444
The `credentials` command supports passing an `--environment` option to create an
45-
environment specific override. That override will takes precedence over the
45+
environment specific override. That override will take precedence over the
4646
global `config/credentials.yml.enc` file when running in that environment. So:
4747

4848
rails credentials:edit --environment development

0 commit comments

Comments
 (0)