-
Notifications
You must be signed in to change notification settings - Fork 174
feat(jans-cedarling): cap .cjar archive sizes to prevent zip-bomb resource exhaustion #15050
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
19 commits
Select commit
Hold shift + click to select a range
f3e34df
feat(jans-cedarling): add resource limits to ArchiveVfs for zip bomb
haileyesus2433 949fe98
feat(jans-cedarling): Add max_file_size to PolicyStoreConfig
haileyesus2433 1872018
chore(jans-cedarling): pass ArchiveLimits parameter to policy store
haileyesus2433 5375475
feat(jans-cedarling): pass archive limits to policy store loaders
haileyesus2433 0022e65
chore(jans-cedarling): add test for max_file_size in policy store loader
haileyesus2433 790fc52
feat(jans-cedarling): fallback HTTP max response size to policy store
haileyesus2433 ad560d7
feat(jans-cedarling): add cedarling policy store max file size config
haileyesus2433 21d3295
docs: Document CEDARLING_POLICY_STORE_MAX_FILE_SIZE property
haileyesus2433 4306773
Merge branch 'main' into jans-cedarling-14896
haileyesus2433 e571956
chore(jans-cedarling): add descriptive assertion messages to bootstrap
haileyesus2433 025e4af
fix(jans-cedarling): enforce archive total size limits on actual
haileyesus2433 e1754d3
Merge branch 'main' into jans-cedarling-14896
haileyesus2433 ca8ac5c
chore(jans-cedarling): Remove HTTP max response size fallback to archive
haileyesus2433 920ba18
feat(jans-cedarling): give HTTP max response size its own default config
haileyesus2433 03e290e
docs: Update Cedarling HTTP and policy store property docs
haileyesus2433 b621cff
chore(jans-cedarling): improve ResponseTooLarge error message
haileyesus2433 c236e0d
Merge branch 'main' into jans-cedarling-14896
haileyesus2433 d8b9dd9
docs(jans-cedarling): reference CEDARLING_HTTP_MAX_RESPONSE_SIZE_BYTE…
olehbozhok 8c1c7ab
Merge branch 'main' into jans-cedarling-14896
olehbozhok 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
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this is always zero?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's zero because PolicyStoreConfigRaw only carries source and path, so there's no refresh interval to read 0 is the documented "refresh disabled" default.