neolith.E005 can show a database password when DATABASES was changed after the builder
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 56/100
Research direction
Start by reading _configure._difference, settings_problems, and the builder's refusal paths; the issue names these as the places that produce messages. Add or inspect a test that walks a DATABASES value with a marker string in every leaf and checks every relevant message. Done means all paths within every database alias are named without exposing either value, and the marker appears in no message.
Written by the indexing model from the issue text.
Description
neolith.E005 compares the settings Django holds with what the host builds, and reports the first difference as <path> is <found value>, the host builds <built value> (_configure._difference). For DATABASES that comparison goes to every key at every depth, so when a settings module changes a connection value after build_settings, the message shows both values. If the key is PASSWORD, or an OPTIONS entry such as a key file or a connection string, the refusal prints a secret to standard error and to CI logs, and the host-built value it prints is the one configured under NEOLITH.
It needs a mistake in the settings module to appear, and it shows only in the deployer's own output. It still goes against the rule the other refusals keep: a message names the input and the rule, never a secret (K9).
Expected: a difference inside a DATABASES entry names the path (DATABASES['default']['PASSWORD']) and says it differs from what the host builds, without either value. The class to cover, not only this key: every value under a DATABASES alias, at any depth, in every message settings_problems and the builder's own refusals can produce; a test that walks a DATABASES with a marker string in every leaf and finds the marker in no message.
Found while preparing #130.
- Dominant language
- Python
- Stars
- 1
- Forks
- 0
- Avg merge
- 5h 30m
- Merged PRs (30d)
- 85
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from stack314/django-neolith
-
help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
stack314/django-neolith#142 · 1 comment ·
Maintainers usually reply within 1 day
-
help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
stack314/django-neolith#141 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
stack314/django-neolith#140 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
stack314/django-neolith#126 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
stack314/django-neolith#119 · 2 comments ·
Maintainers usually reply within 1 day
All issues in stack314/django-neolith
Similar issues
-
automated endpoint-dead needs-curation
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
almanac-data/climate-almanac#138 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
OceanDataTools/openrvdas#760 ·
Maintainers usually reply within 1 day
-
level/subtask type/enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
wazuh/wazuh-virtual-machines#1091 ·
Maintainers usually reply within 1 day
-
Python: Bug: ChatMessageContent.from_element drops AudioContent and BinaryContent into raw TextContentPossibly taken @halcyon-past claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
microsoft/semantic-kernel#14824 · 1 comment ·
Maintainers usually reply within 3 days
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
LedgerHQ/app-bitcoin-legacy#306 ·