-
Notifications
You must be signed in to change notification settings - Fork 515
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
[Helm] OCI push might need verification of chart name #2314
Comments
I think we can rely on ImageName to validate image names. |
When trying to push a helm chart to OCI registry with an invalid name, I see the following behavior:
|
This would be OK for OCI repositories because chart names need to conform to the OCI standard. |
You're right. When I'm doing
|
Checking Helm code, Helm seems to be relying on ORAS's oras-go to validate upload artifact name in pkg/registry/util.go oras-go seems to be relying on this regexp for name validation in registry/reference.go
|
OK, so does that comply with a our ImageName validation? |
Description
when performing a push to an OCI repository, we're actually pushing a Helm chart to a container image registry. Container image registries and their API have a limitation when dealing with naming.
Our push approach uses the chart name to identify the target tag in the registry. This is very likely going to lead to problems when pushing Helm charts that have names which won't translate or get encoded into valid URLs. We need to investigate this. If necessary, provide client-side validation too just like we do for container image names.
Relates to:
The text was updated successfully, but these errors were encountered: