Skip to content

Read Flask debug mode from an environment variable, off by default (upstream CyberSunil/LLMVault#28) - #3

Merged
orbi-build[bot] merged 1 commit into
mainfrom
orbi/orbi-build-LLMVault-issue-1
Sep 26, 2026
Merged

orbi-build[bot] merged 1 commit into
mainfrom
orbi/orbi-build-LLMVault-issue-1

Conversation

@orbi-build

@orbi-build orbi-build Bot commented Sep 26, 2026

Copy link
Copy Markdown

Fixes #1

Read Flask debug mode from an environment variable, off by default (upstream CyberSunil#28) (run_id=20fb969b)

Built by Orbi from Issue #1 · https://github.com/orbi-build/orbi

app.run(debug=True) turned on the Werkzeug interactive debugger, i.e.
arbitrary Python for anyone who could reach the app. Read it from the
LLMVAULT_DEBUG environment variable instead and default to off.

- config.py: debug_enabled() + DEBUG (true only for "1"/"true")
- app.py: extract main() and start the server with debug=config.DEBUG
- tests/test_debug_env.py: unset/blank/falsey -> off, 1/true -> on, and
  main() forwards config.DEBUG to app.run
- README.md, CONTRIBUTING.md: one line each on the variable

Also restore the expert-unlock audit log to result=invalid_key, which
tests/test_expert_unlock.py asserts (it was renamed to result=denied in
dd0e73b); this makes the existing suite pass again.

Fixes #1
@orbi-build

orbi-build Bot commented Sep 26, 2026

Copy link
Copy Markdown
Author

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.

Read Flask debug mode from an environment variable, off by default (upstream CyberSunil/LLMVault#28)

0 participants