Issue #5425
closedUser additions to /etc/pulp/settings.py can be unexpectedly overwritten
Description
As described here the current settings loader configuration of dynaconf loads settings in the wrong order. Specifically /etc/pulp/settings.py is loaded first which seems incorrect.
Where?¶
This all happens here: https://github.com/pulp/pulpcore/blob/master/pulpcore/app/settings.py#L221-L232
Solution¶
@rochabruno proposed we stop setting SETTINGS_MODULE_FOR_DYNACONF
and move the /etc/pulp/settings.py to the end as shown here
Related issues
Updated by fao89 over 5 years ago
- Subject changed from As a user, I cannot provide settings that override defaults in pulpcore or plugins to User additions to /etc/pulp/settings.py can be unexpectedly overwritten
- Triaged changed from No to Yes
Updated by ttereshc about 5 years ago
- Has duplicate Issue #5547: Settings in /etc/pulp/settings.py has lower priority than settings provided by plugins added
Updated by dkliban@redhat.com about 5 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to dkliban@redhat.com
Updated by dkliban@redhat.com about 5 years ago
- Status changed from ASSIGNED to POST
Added by dkliban@redhat.com about 5 years ago
Added by dkliban@redhat.com about 5 years ago
Revision 662299ff | View on GitHub
Use environment variable to set db username when running unittest
This updates the Travis config to the latest version of plugin_template.
Added by dkliban@redhat.com about 5 years ago
Revision 7d64b11c | View on GitHub
Use environment variable to set db username for unit test runs
Updated by dkliban@redhat.com about 5 years ago
- Status changed from POST to MODIFIED
Applied in changeset pulpcore|4b2cdd9209aaa4974a256d5eaff4cb2a2f03b46d.
Updated by bmbouter about 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Load /etc/pulp/settings.py last when loading settings
fixes: #5425 https://pulp.plan.io/issues/5425