Repository navigation
fix(secrets): redact short unquoted credential assignments - #195
himanshu748 merged 4 commits into
Conversation
|
@jdotc1 is attempting to deploy a commit to the himanshu's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
himanshu748
left a comment
There was a problem hiding this comment.
Please keep unquoted credential assignments on a single line. The whitespace around the separator currently includes line breaks, so lowering the length threshold can make an empty assignment consume a short value from the next line. Add LF and CRLF tests for an empty assignment followed by ordinary text, alongside the short-password cases.
|
@himanshu748 Addressed the requested review changes in commits c9146cd and 56a82fa.
The Vercel check separately reports that external-contributor deployment requires authorization from your Vercel team; it does not report a code-test failure. |
Security defect
secret_assignmentrequired at least eight characters for unquoted credentials. A valid short password or token (DB_PASSWORD=12,client_secret=0) could reach the trusted memory context unredacted. Quoted values already had different handling.Fix
Verification
Added
test_unquoted_short_secret_assignments_are_not_leaked,test_empty_unquoted_secret_assignments_preserve_following_line, andtest_short_unquoted_secret_assignments_preserve_following_line.Focused regex checks passed for LF, CRLF, and short credential values. GitHub Actions CI #244 passed, including backend tests (Python 3.12), frontend lint, typecheck, and build. Vercel deployment remains blocked pending repository-team authorization for the external contributor; this is not a code-test failure.