-
Notifications
You must be signed in to change notification settings - Fork 6.5k
fix(oci): loosen up layer restrictions #24640
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
fix(oci): loosen up layer restrictions #24640
Conversation
Fixes argoproj#24564. We only allow for a single OCI _content_ layer (or rather a single layer containing manifests), but there are images that contain multiple layers, notably anything that uses attestation/provenance. For example Helm has a application/vnd.cncf.helm.chart.provenance.v1.prov layer if a chart has been signed. Pending a better story where we would verify these images natively, for now let's skip those layers and only take actual content layers into account. Signed-off-by: Blake Pettersson <[email protected]>
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #24640 +/- ##
==========================================
- Coverage 60.46% 60.46% -0.01%
==========================================
Files 350 350
Lines 60105 60187 +82
==========================================
+ Hits 36345 36391 +46
- Misses 20828 20848 +20
- Partials 2932 2948 +16 ☔ View full report in Codecov by Sentry. |
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.
LGTM!
Signed-off-by: Blake Pettersson <[email protected]>
|
🍒 Cherry-pick PR created for 3.2: #24648 |
Signed-off-by: Blake Pettersson <[email protected]>
|
🍒 Cherry-pick PR created for 3.1: #24649 |
…24649) Signed-off-by: Blake Pettersson <[email protected]> Co-authored-by: Blake Pettersson <[email protected]>
…24648) Signed-off-by: Blake Pettersson <[email protected]> Co-authored-by: Blake Pettersson <[email protected]>
Fixes #24564. We only allow for a single OCI content layer (or rather a single layer containing manifests), but there are images that contain multiple layers, notably anything that uses attestation/provenance. For example Helm has an
application/vnd.cncf.helm.chart.provenance.v1.provlayer if a chart has been signed.Pending a better story where we would verify these images natively, for now let's skip those layers and only take actual content layers into account.
Checklist: