Bug #34573
closedSettings defined by DSL are not properly encrypted
Description
The values set for the DSL defined settings are not properly encrypted.
This is caused by the encrypted flag not being propagated for newly created settings and thus only new Foreman instances are affected.
How to reproduce:
1. Remove contents of settings table
2. Start foreman
3. Set a encrypted setting e.g. root_pass to any value
4. See the value in database for this setting. (possibly also from console by `Setting.find_by(name: 'root_pass').read_attribute(:value)`
Files
Updated by Ondřej Ezr over 2 years ago
- Target version set to 3.1.3
- Found in Releases 3.1.3 added
Updated by Ondřej Ezr over 2 years ago
- Related to Feature #30862: Introduce SettingRegistry as a setting inventory added
Updated by Ondřej Ezr over 2 years ago
- Found in Releases 3.1.0 added
- Found in Releases deleted (
3.1.3)
How to reproduce:
1. Remove contents of settings table
2. Start foreman
3. Set a encrypted setting e.g. root_pass to any value
4. See the value in database for this setting. (possibly also from console by `Setting.find_by(name: 'root_pass').read_attribute(:value)`
Updated by Ondřej Ezr over 2 years ago
- Private changed from Yes to No
As discussed, this can be disclosed.
Updated by The Foreman Bot over 2 years ago
- Status changed from New to Ready For Testing
- Assignee set to Ondřej Ezr
- Pull request https://github.com/theforeman/foreman/pull/9139 added
Updated by Ondřej Ezr over 2 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|3253d64944bda6e683e124860889aa9490eefe2c.