New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Docs]Add missing entry for encryption.add_to_filter_paramters #49364
Conversation
The lint system detected the missing entries in railties/lib/rails/application/configuration.rb and railties/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_7_1.rb.tt. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit confused about this one. Is the goal just to document how it is already or to change what the value will be with load_defaults 7.1
?
guides/source/configuring.md
Outdated
| (original) | `true` | | ||
| 7.1 | `false` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| (original) | `true` | | |
| 7.1 | `false` | | |
| (original) | `false` | | |
| 7.1 | `true` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad. Fixed the inverted values.
@@ -287,6 +287,7 @@ def load_defaults(target_version) | |||
active_record.belongs_to_required_validates_foreign_key = false | |||
active_record.before_committed_on_all_records = true | |||
active_record.default_column_serializer = nil | |||
active_record.encryption.add_to_filter_parameters = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the intention to make this the default in new apps? This isn't really a doc change anymore is it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed the doc and I think we can now leave it as the new 7.1 default value.
@skipkayhil Sorry, I found that I unintentionally closed the PR... Unfortunately, after that the situation has been changed that I'm afraid I should recreate the PR and send to |
Hmm, the documentation for main will kind of end up depending on whether the frame default ends up accepted. I'd start with a PR to cc @rafaelfranca do you think we should add this new framework default in 7.1? |
I personally didn't understand the need. Isn't |
I actually don't think this should be a config at all. We should never to add encrypted value to the logs. Even on inspect. We don't do for password hashes. |
I got it and leave this closed as it is. |
If I understand correctly, I think this is because of the configuration we put in new apps: Line 7 in deb0869
When |
Oh, yes I understand now. The configuration is @hachi8833 so what we can do is a new documentation PR that just adds the |
Thank you for the explanation! I'll try the new PR perhaps today evening. |
encryption.add_to_filter_paramters has been merged by rails#46453. (This PR is a second try of rails#49364 )
Motivation / Background
This Pull Request has been created because the new config entry for #46453 is missing in configuring.md guide.
Detail
This Pull Request adds
config.active_record.encryption.add_to_filter_parameters
to configuring.md.Checklist
Before submitting the PR make sure the following are checked:
[Fix #issue-number]