Skip to content

CI validation: DEV_MODE env parsing fix#4

Closed
RealDiligent wants to merge 1 commit into
testfrom
fix/critical-issue-dev-mode-env-parsing
Closed

CI validation: DEV_MODE env parsing fix#4
RealDiligent wants to merge 1 commit into
testfrom
fix/critical-issue-dev-mode-env-parsing

Conversation

@RealDiligent

Copy link
Copy Markdown
Owner

Internal CI validation run before opening the upstream PR. Not for merge.

The maintainer-filter bypass was gated on `not os.environ.get('DEV_MODE')`,
which tests for presence rather than value. Every non-empty string is truthy,
so DEV_MODE=false, DEV_MODE=0, DEV_MODE=off and DEV_MODE=no all *enable* the
bypass they are meant to disable, silently dropping the maintainer filter on
a production validator.

Parse DEV_MODE by value via `dev_mode_enabled()`, alongside STORE_DB_RESULTS
in the validator config module and following the same convention. DEV_MODE=1
and DEV_MODE=true keep working, so existing setups are unaffected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant