Repository navigation
fix: limit manifest config fetch size - #2222
Merged
Merged
Conversation
Signed-off-by: TanvirTian <[email protected]>
TanvirTian
requested review from
TerryHowe,
Wwwsylvia,
sabre1041,
sajayantony and
shizhMSFT
as code owners
October 4, 2026 18:40
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2222 +/- ##
==========================================
+ Coverage 56.21% 57.37% +1.15%
==========================================
Files 139 139
Lines 6021 6067 +46
==========================================
+ Hits 3385 3481 +96
+ Misses 2427 2364 -63
- Partials 209 222 +13 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
TerryHowe
reviewed
Oct 4, 2026
TanvirTian
force-pushed
the
fix/config-size-limit
branch
from
October 4, 2026 21:08
64393f8 to
a2fc97a
Compare
Signed-off-by: TanvirTian <[email protected]>
TanvirTian
force-pushed
the
fix/config-size-limit
branch
from
October 4, 2026 21:31
a2fc97a to
f1ea607
Compare
TerryHowe
reviewed
Oct 4, 2026
Signed-off-by: TanvirTian <[email protected]>
TanvirTian
force-pushed
the
fix/config-size-limit
branch
from
October 5, 2026 16:32
5f50f9d to
f5c301c
Compare
TerryHowe
reviewed
Oct 5, 2026
TanvirTian
force-pushed
the
fix/config-size-limit
branch
from
October 5, 2026 21:32
f5c301c to
c966612
Compare
Signed-off-by: TanvirTian <[email protected]>
TanvirTian
force-pushed
the
fix/config-size-limit
branch
from
October 5, 2026 21:43
c966612 to
8ba112c
Compare
Signed-off-by: TanvirTian <[email protected]>
Member
|
Hmm, I didn't notice codecov failing before. |
Contributor
Author
i ddint notice it failing either 😿 |
Signed-off-by: TanvirTian <[email protected]>
Signed-off-by: TanvirTian <[email protected]>
Signed-off-by: TanvirTian <[email protected]>
Signed-off-by: TanvirTian <[email protected]>
Contributor
Author
|
finally 🐱 |
TerryHowe
reviewed
Oct 6, 2026
Signed-off-by: TanvirTian <[email protected]>
TanvirTian
force-pushed
the
fix/config-size-limit
branch
from
October 6, 2026 18:02
bdbbb0f to
e1146e1
Compare
Contributor
Author
|
Updated the error message, set the file permissions to 0644 right after Verify(), and added validation to reject --pretty with --output - and also updated the related tests Hope it’s good to go now |
Member
|
Thanks! |
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.
What this PR does / why we need it:
This PR fixes unbounded memory use when oras manifest fetch-config fetches an oversized config file. It rejects config files larger than 4 MiB before downloading them.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes #2221
Please check the following list: