-
Notifications
You must be signed in to change notification settings - Fork 6.7k
fix: allow docker dhi helm charts to be used #25835
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
base: master
Are you sure you want to change the base?
fix: allow docker dhi helm charts to be used #25835
Conversation
Docker has a set of oci Helm charts used as a part of their Hardened Images offering. The issue with that is that these Helm charts have two content layers. Previously for Helm charts we checked for the prescence of only one content layer (=a layer media type ending with `tar` or `tar+gzip`). The problem with that is that DHI has two content layers, one with the actual Helm content, and another with the SBOM content, failing the check. Now we instead check to see if the image's `config.mediaType` is `application/vnd.cncf.helm.config.v1+json`, if so then only lookup a single layer == `application/vnd.cncf.helm.chart.content.v1.tar+gzip`, ignoring all others. Fixes argoproj#25811. Signed-off-by: Blake Pettersson <[email protected]>
🔴 Preview Environment stopped on BunnyshellSee: Environment Details | Pipeline Logs Available commands (reply to this comment):
|
Signed-off-by: Blake Pettersson <[email protected]>
chansuke
left a comment
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]>
Signed-off-by: Blake Pettersson <[email protected]>
choejwoo
left a comment
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.
Thanks for addressing my comment, LGTM!
christianh814
left a comment
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!
Docker has a set of OCI Helm charts used as a part of their Hardened Images offering, which doesn't work with our OCI support 😢
Previously for Helm charts we checked for the presence of only one content layer (=a layer media type ending with
tarortar+gzip). The problem with that is that DHI Helm charts have two content layers, one with the actual Helm content, and another with SBOM content, failing the check.Now we instead check to see if the image's
config.mediaTypeisapplication/vnd.cncf.helm.config.v1+json, if so then only lookup a single layer ==application/vnd.cncf.helm.chart.content.v1.tar+gzip, ignoring all others.Fixes #25811.
Checklist: