-
Notifications
You must be signed in to change notification settings - Fork 100
Add validation to allowed directories on config load #1144
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 10 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
7c4ac4e
check for invalid characters in allowedDirectories when loading config
sean-breen d64f804
add sanitising of allowed directories when loading configuration
sean-breen 88d04e2
remove log
sean-breen 5c41b2a
fix lint issues
sean-breen dd1f2f2
fix test
sean-breen 8c99d03
add check for symlinks, disallow all symlinks
sean-breen cb04ec0
fix lint
sean-breen faf003a
fix lint
sean-breen be3e230
fix lint
sean-breen 195808f
fix default paths
sean-breen a13d9fe
update comment
sean-breen 83f1c56
Merge branch 'main' into allowedDirsFix
sean-breen 38fdf24
fix default collector config test
sean-breen 9183a07
return bool + error from isAllowedDirs
sean-breen b8b714b
fix lint
sean-breen d5c4bfa
rename tests
sean-breen a017437
remove needless logs
sean-breen a9d2744
Merge branch 'main' into allowedDirsFix
sean-breen dfbdecd
fix lint warning
sean-breen 4e9451f
refactor to remove unessessary logs
sean-breen 6b4d18f
fix lint
sean-breen 99a0a79
fix test names
sean-breen 5ede483
fix test
sean-breen b8f30db
add unit test for isSymlink
sean-breen 73939b3
use require in place of assert
sean-breen 7fcbfe1
update regex
sean-breen 279dcdd
update comment
sean-breen 0e767b2
Merge branch 'main' into allowedDirsFix
sean-breen c4c1787
Merge branch 'main' into allowedDirsFix
sean-breen c00d955
fix unit test
sean-breen 2d3e6e8
Remove symlink check
sean-breen 9b586fe
Merge branch 'main' into allowedDirsFix
sean-breen c362abf
fix unit test after merging main
sean-breen 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
Oops, something went wrong.
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.