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

ggcr: k8schain not using AWS IRSA credentials for ECR auth #1965

Closed
haarchri opened this issue Jun 25, 2024 · 0 comments
Closed

ggcr: k8schain not using AWS IRSA credentials for ECR auth #1965

haarchri opened this issue Jun 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@haarchri
Copy link

Describe the bug

A clear and concise description of what the bug is.
in crossplane project we using ggcr to fetch xpkg packages from registries - it looks like that the AWS IRSA credentials for ECR auth not working anymore - any ideas to debug this ?

failed to fetch package digest from remote: failed to fetch package descriptor with a GET request after a previous HEAD request failure: HEAD https://123456789101.dkr.ecr.eu-central-1.amazonaws.com/v2/xxx-crossplane/sop-tenant/manifests/v1.427.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details): GET https://123456789101.dkr.ecr.eu-central-1.amazonaws.com/v2/xxx-crossplane/sop-tenant/manifests/v1.427.0: unexpected status code 401 Unauthorized: Not Authorized

https://github.com/crossplane/crossplane/blob/master/internal/xpkg/fetch.go#L149-L175

the ServiceAccount is annotated with the EKS Annotation for IRSA - we tested with AWS-CLI inside the container - aws sts get-caller-identity is working

is it possible to get more debug for the auth key-chain ?

To Reproduce

Expected behavior

A clear and concise description of what you expected to happen.

Additional context

Add any other context about the problem here.

  • Version of the module
  • Registry used (e.g., GCR, ECR, Quay)
@haarchri haarchri added the bug Something isn't working label Jun 25, 2024
@haarchri haarchri closed this as not planned Won't fix, can't repro, duplicate, stale Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant