Repository navigation
Read Flask debug mode from an environment variable, off by default (upstream CyberSunil/LLMVault#28) - #3
Merged
Conversation
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
Author
|
Delivery proof: https://orbi.build/proof/orbi-build/LLMVault/1?ref=pr-proof |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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