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.
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
feat(referrers): delete manifest with subject #174
base: main
Are you sure you want to change the base?
feat(referrers): delete manifest with subject #174
Changes from 30 commits
e3e1217
846e173
7fca0cb
ec93662
7809549
c7e4418
a6d552f
685ab70
1b9ade3
5041592
c26ccb6
ddbf048
d6e8499
cf431f0
50e696e
856c0ef
fcb121e
2b24e07
7df36ca
36a428f
1813869
878535c
4bee2cc
c848ed2
a7460f3
20dcda9
d7eb9b5
dfc538d
ff334ca
53f8e12
b13de61
c5d222a
21c714a
a23d7eb
d5c38b9
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Should it be grouped as an enum for
ErrorCode
?Check warning on line 32 in src/OrasProject.Oras/Registry/Remote/ManifestStore.cs
Check warning on line 32 in src/OrasProject.Oras/Registry/Remote/ManifestStore.cs
Check warning on line 32 in src/OrasProject.Oras/Registry/Remote/ManifestStore.cs
Check warning on line 309 in src/OrasProject.Oras/Registry/Remote/ManifestStore.cs
Check warning on line 309 in src/OrasProject.Oras/Registry/Remote/ManifestStore.cs
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.
The manifest is not verified against the
target
descriptor. It is possible that a corrupted manifest is fetched.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.
Just to clarify that if this is to, for example, check the digests between target and manifest?
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.
The download size of the manifest is not limited / well-guarded. It means it is vulnerable to excessive resource attack.
Check warning on line 461 in src/OrasProject.Oras/Registry/Remote/ManifestStore.cs
src/OrasProject.Oras/Registry/Remote/ManifestStore.cs#L461
Check warning on line 466 in src/OrasProject.Oras/Registry/Remote/ManifestStore.cs
src/OrasProject.Oras/Registry/Remote/ManifestStore.cs#L466
Check warning on line 468 in src/OrasProject.Oras/Registry/Remote/ManifestStore.cs
src/OrasProject.Oras/Registry/Remote/ManifestStore.cs#L468
Check warning on line 386 in src/OrasProject.Oras/Registry/Remote/Repository.cs
src/OrasProject.Oras/Registry/Remote/Repository.cs#L385-L386
Check warning on line 400 in src/OrasProject.Oras/Registry/Remote/Repository.cs
src/OrasProject.Oras/Registry/Remote/Repository.cs#L399-L400
Check warning on line 405 in src/OrasProject.Oras/Registry/Remote/Repository.cs
src/OrasProject.Oras/Registry/Remote/Repository.cs#L404-L405
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.
Should we await this function and make
PingReferrers
async? But async calls are not allowed within thelock
statement. We can try SemaphoreSlim.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.
The
SemaphoreSlim
does not seem right either. We need to consider a lock-free version.