unexpected status code 401 Unauthorized: Not Authorized
BrunoMCBraga opened this issue · 2 comments
Hello folks
I am currently leveraging the Flux stack to setup CI/CD on AWS with EKS and ECR. I am using IRSA for authentication but the controller keeps complaining with the error: 401 Unauthorized on :
GET https://.../v2/.../tags/list?n=1000
I have accessed the container to extract the token which I then used on my local machine to run the AWS CLI and was able to confirm that this token works and the assumed role is correct. I also managed to run commands against ECR to list images and tags.
I am failing to understand why the reflector fails to query the API given that it has the right privileges and, for the life of me, I cannot find a solution anywhere and old threads on similar issues don't really address this.
Can a kind soul help me troubleshoot this and get to the bottom of the issue? This is literally the last thing missing on my CICD and it is driving me nuts.
Thanks
Hello @BrunoMCBraga. Do you happen to be missing the provider: aws
attribute in your ImageRepository
specs?
You Sir are a genius. Thank you so much!