Not sure which section of the community my problem resides in, but I am having issues with authenticating aws-cli.
I am decrypting my AWS credentials from a repo and exporting it to the SHELL environment variables using the following command:
export $(grep -v '^#' /codefresh/volume/production) - production are my AWS creds.
However, when I run aws s3 ls, I am getting the following error:
An HTTP Client raised and unhandled exception: Invalid header value b'AWS4-HMAC-SHA256 Credential=xxx\r/20191108/us-east-1/s3/aws4_request, Sign
edHeaders=host;x-amz-content-sha256;x-amz-date, Signature=xxx'
I did some Googling around, some users are saying it could be related to whitespace issue, and some are saying you can’t have issue. I checked my files, none of them have newlines or whitespaces at the end of the file.
Support stuff will only access your build logs after your explicit permission. Once you submit an issue you can also give extra instructions to our support team.
@jei I would recommend just sharing the whole thing with support and planning on changing the keys once you’ve identified the issue. I’m assuming the keys are single use here.
Or you could create a duplicate pipeline with dummy keys. My guess would be you have a parsing issue after the secret is decrypted. So work backwards, first in the step just try to echo the variables. If they come back correctly then you know it’s something else. If they don’t then work backwards to when you import the keys.