-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Sanitize the conn_id to disallow potential script execution #32867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
8b52ca7
sanitize the conn_id to disallow potential script execution
andylamp 8da482d
Merge branch 'main' into main
andylamp 6a4a01d
update docs and naming of the regex to better indicate its purpose
andylamp c0d2143
use re2 instead of re, as per static checks
andylamp 2912fec
Update airflow/models/connection.py
andylamp a78c149
Merge branch 'main' into main
andylamp 735b34b
refactor to return the first matched group, which is out desired outcome
andylamp 44a7211
tweak the comments
andylamp 54e7cd4
add a test suite for the regex sanitization
andylamp bfdcf86
fix the docs linter, change to en-US instead of en-GB
andylamp 546afff
remove docstrings from test
andylamp 96d72c1
Merge branch 'main' into main
andylamp a524a5e
update to fix integration tests
andylamp 7882372
Merge branch 'main' into main
andylamp fa14397
update to remove logging that messes up tests
andylamp 304836b
Merge remote-tracking branch 'origin/main'
andylamp 9cf14cb
Merge branch 'main' into main
andylamp f9cd0b6
Merge branch 'main' into main
andylamp 997e648
Update airflow/models/connection.py
andylamp b1ee2e1
remove commented code
andylamp c04caef
push regex update to handle aws ARN format
andylamp 088f0de
make ruff happy
andylamp 5491fe6
Merge branch 'main' into main
andylamp 5408199
Merge remote-tracking branch 'origin/main'
andylamp 6aa9612
add validator to form
andylamp 0dc4134
Merge remote-tracking branch 'origin/main'
andylamp f8aa6d2
feat: add sanitization, proper messaging to FAB, fix errors/tests
andylamp 68d9bdc
bugfix: typo in function docs
andylamp 5ad35ca
bugfix: typo in function docs, add example for the regex
andylamp 156f3fc
Merge branch 'main' into main
andylamp e1c126c
Merge branch 'main' into main
andylamp 3feef94
Merge branch 'main' into main
andylamp 90b3220
Merge branch 'main' into main
andylamp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.