[plan][java][python] Reject unsafe Bash redirects - #1079
Merged
wenjin272 merged 1 commit intoSep 2, 2026
Conversation
linhongyu510
marked this pull request as ready for review
August 31, 2026 12:33
linhongyu510
marked this pull request as draft
August 31, 2026 12:38
linhongyu510
marked this pull request as ready for review
September 1, 2026 15:50
wenjin272
reviewed
Sep 2, 2026
wenjin272
left a comment
Contributor
There was a problem hiding this comment.
Thanks for taking this on, @linhongyu510. The overall direction looks good to me. Could you rebase onto main first though — #1083 landed in the same part of the validator and conflicts with this branch.
Reject file redirects by default while preserving file-descriptor duplication and closure. Block execution-changing environment assignments consistently across Java and Python, add regression coverage, and document the tightened security contract. Refs apache#1004 Generated-by: TRAE (proprietary model)
linhongyu510
force-pushed
the
fix/bash-validator-security-1004
branch
from
September 2, 2026 05:47
d8042a5 to
a8afb29
Compare
wenjin272
approved these changes
Sep 2, 2026
wenjin272
left a comment
Contributor
There was a problem hiding this comment.
Thanks for addressing my comments. LGTM
wenjin272
pushed a commit
that referenced
this pull request
Sep 2, 2026
Generated-by: TRAE (proprietary model) Co-authored-by: linhongyu510 <[email protected]> (cherry picked from commit ce89ead)
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.
Linked issue #1004.
Summary
Documentation
Generative AI
CLA / Contributor Agreement / DCO