-
Notifications
You must be signed in to change notification settings - Fork 706
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
OCI GetChart #2323
OCI GetChart #2323
Conversation
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 lack of support for encrypted traffic to a private registry is a bit worrying? Keen to know if this is known, intentional (in oras/helm) or an issue they're working on?
|
||
// InitClient returns an HTTP client based on the chart details loading a | ||
// custom CA if provided (as a secret) | ||
// TODO(andresmgot): Using a custom CA cert is not supported by ORAS (neither helm), only using the insecure flag |
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.
Do you know why (as in, is this intentional to require public tls certs)? What are the implications for private registries?
) | ||
|
||
// CheckHeader verifies that the given puller contains the given header | ||
func CheckHeader(t *testing.T, puller helm.ChartPuller, key, value string) { |
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.
Nice move :)
This is the main issue for Helm: helm/helm#6324 and the related implementation in ORAS: oras-project/oras#109 but in none of them there are mentions to support a custom CA. In any case, the traffic is encrypted with TLS but the certs are not validated. |
I just created oras-project/oras#217 so we can at least be moving toward something not susceptible to machine-in-the-middle. |
Description of the change
Follow up of #2311
Now it's time to implement the actual interface for the OCI case.
Possible drawbacks
As explained in a
TODO
, using a CA cert won't work here. The only alternative with ORAS is to use aninsecure
flag but I didn't included that (yet?).Applicable issues