You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've run into an issue with helm fetch/install when I've tried to access the chart with a special character in its version, in my case plus sign ('+'). Helm search was working without issue but fetch/install was throwing 404 error. The helm repo in the S3 bucket was set using the helm-s3 plugin, the chart was pushed using the plugin, but the repo in helm was set using the HTTPS path, not s3://bucket-name/path.
Hi,
I've run into an issue with helm fetch/install when I've tried to access the chart with a special character in its version, in my case plus sign ('+'). Helm search was working without issue but fetch/install was throwing 404 error. The helm repo in the S3 bucket was set using the helm-s3 plugin, the chart was pushed using the plugin, but the repo in helm was set using the HTTPS path, not s3://bucket-name/path.
Reason:
S3 expects that some of the special characters will be encoded in the URL when trying to access the files over HTTP.
For example, '+' in the URL must be changed to '%2B'.
GET https://s3.Region.amazonaws.com/bucket-name/charts/chart-1.0.0+100.tgz -> 404 Not Found
GET https://s3.Region.amazonaws.com/bucket-name/charts/chart-1.0.0%2B100.tgz -> 200 Ok
Solution:
During artifact push, when updating index.yaml file, encode in URL section special characters (only tested on '+', the list might be bigger, it might be connected to https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html).
Steps to reproduce:
Environment:
Helm version: v3.8.0
Helm-s3 plugin version: v.0.10.0
The text was updated successfully, but these errors were encountered: