Skip to content
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

Impossible to use the chart because of line break in variables #3

Open
paretl opened this issue Feb 4, 2020 · 1 comment
Open

Impossible to use the chart because of line break in variables #3

paretl opened this issue Feb 4, 2020 · 1 comment

Comments

@paretl
Copy link

paretl commented Feb 4, 2020

Hello,

I use HELM version 3.0.3 and I have an issue that makes the chart unusable

My Kubernetes cluster uses the version 1.13.11-gke.23

So this is my script

printf 'Get architectminds/aws-ecr-credential chart.'
# https://hub.helm.sh/charts/architectminds/aws-ecr-credential
helm repo add \
    architectminds \
    https://architectminds.github.io/helm-charts/

printf 'Create base64 AWS credentials.\n'
AWS_ACCESS_KEY_ID=XXX
AWS_SECRET_ACCESS_KEY=XXX
AWS_ACCESS_KEY_ID=$(echo ${AWS_ACCESS_KEY_ID} | base64)
AWS_SECRET_ACCESS_KEY=$(echo ${AWS_SECRET_ACCESS_KEY} | base64)

printf 'Deploy architectminds/aws-ecr-credential chart.'
helm upgrade aws-ecr-credential \
    --install --force \
    --set-string aws.account="${AWS_ACCOUNT_ID}" \
    --set aws.region="${AWS_ECR_REGION}" \
    --set aws.accessKeyId="${AWS_ACCESS_KEY_ID}" \
    --set aws.secretAccessKey="${AWS_SECRET_ACCESS_KEY}" \
    --set targetNamespace=default \
    architectminds/aws-ecr-credential

And the log of the Kubernetes job:

image

We can see that we have an unexpected line break after all string variables

I think the issue is a format issue regarding this log
Invalid header value b'AWS4-HMAC-SHA256 Credential=XXX\n/20200204/eu-west-1/ecr/aws4_request, SignedHeaders=content-type;host;x-amz-date;x-amz-target, Signature=0ceab1d4c0712bb7c40bb49565426faa129dd0ca9ef5ee7e4923f16a5e1a0a8a'

Can I have help on this issue please? Maybe I did something wrong. It is possible to be a bug in the chart

Thank you in advance

@woodjme
Copy link

woodjme commented Jul 20, 2020

Unsure if this is the root cause of your issue @paretl, however, I received the same error, including the line break, with a badly encoded base64 string.

Edit: specifically, check for the "=" on the end of the base64 string. A double click will miss this symbol if you are doing a copy/paste.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants