Repository navigation
fix(security): add recursion limits, redaction runtime guard, and security docs - #26
Merged
Merged
Conversation
…st-boundary docs Add depth limits (_depth > 50 → bail out) to _collect_nested_credential_types() and redact_value() to prevent stack overflow on adversarial input. Insert a contains_unredacted() verification check in build_payload() that aborts with AIDetectionError if any original secret value survives redaction. Document the trust-boundary rationale for shell=True usage in password.py and ai_detect.py (command source is operator-controlled .vaultctl.yml). Closes #24
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.
Summary
_collect_nested_credential_types()andredact_value()build_payload()usingcontains_unredacted()— aborts AI detection if redaction failsshell=Trueinpassword.pyandai_detect.pyBased on findings from cybersecurity audit of #24.
Test plan
uv run pytest— all 233+ tests greendocs/SECURITY.mdfor completenessvaultctl detect-types --show-payloadstill works correctly