nabsul / k8s-ecr-login-renew

Renews Docker login credentials for an AWS ECR container registry.
MIT License
205 stars 49 forks source link

Slash in awsSecretAccessKey #58

Closed amichta closed 1 year ago

amichta commented 1 year ago

When awsSecretAccessKey contains / (slash) then authentication to AWS fails.

Running at 2023-03-15 06:23:38.555764306 +0000 UTC
panic: InvalidSignatureException: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.
    status code: 400, request id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

goroutine 1 [running]:
main.checkErr(...)
    /go/src/app/main.go:22
main.main()
    /go/src/app/main.go:36 +0x5e9
Fetching auth data from AWS... % 
nabsul commented 1 year ago

Interesting! Are you using the Helm chart or manually deploying?

nabsul commented 1 year ago

If you're including the key in a command line execution, you might just need to put quotes around it...