-
Notifications
You must be signed in to change notification settings - Fork 154
Error on AWS ECR #204
Comments
@Rowern we don't use aws registry in production but I guess you might need to set a few environment variables: https://github.com/awslabs/amazon-ecr-credential-helper#prerequisites |
Manually calling the What is weird is that when runned inside makisu, it does get a I tried installing ca-certificates inside the alpine, moving ca certs in the internal dir As I'm able to generate valid credentials manually calling the I tried soemthing like this but it did not work: "525034297126.dkr.ecr.eu-west-3.amazonaws.com":
".*":
push_chunk: -1
security:
tls:
client:
disabled: false
basic:
username: AWS
password: |-
<base64 decoded value from the above `docker-credential-ecr-login get`["Secret"] output> |
Some more debug infos:
Weirdly enough, I do get an ouput when using curl (using credential from the docker ecr helper) inside the same docker: $ curl -u AWS:ey... --head https://525034297126.dkr.ecr.eu-west-3.amazonaws.com/v2/api-gateway/blobs/sha256:bdf0201b3a056acc4d6062cc88cd8a4ad5979983bfb640f15a145e09ed985f92
HTTP/1.1 200 OK
... So I think it might come from here: https://github.com/uber/makisu/blob/43f600617ec80b1984fbb0b7841fde8c0aa49ee6/lib/registry/client.go#L426-L450 |
I'm also receiving this error. Is there any reason why |
Remember this happens in the build environment, which means packages will be installed only when it is stated in your Dockerfile. By default makisu does not install it, but it has a list of default certificates under /makisu-internal. When I was testing the gcr credhelper I found that I needed to specify a few additional environment variables (for example, SSL_CERT_DIR) due to the assumptions in the gcr credhelper. Maybe this helps a little bit: #125 |
Doing a simple Investigating further I found a fix (see #208) that does fix the issue of authenticating to the AWS ECR. |
Should be fixed now that the PR is merged! |
Thanks for the fix! |
Using the docker image: gcr.io/makisu-project/makisu-alpine:v0.1.9
With the folllowing configuration:
I get certificate validation errors:
It seems like the ecr credentials helper cannot find the cacert to validate the aws certificate.
Did I miss something ?
The text was updated successfully, but these errors were encountered: