Unauthorized using cosign to verify AWS ECR image signature #411
-
Command used:
Error from server: admission webhook "connaisseur-svc.connaisseur.svc" denied the request: Unexpected Cosign exception for image "<account_id>.dkr.ecr.ap-southeast-1.amazonaws.com/nginx:signed": error: GET https://<account_id>.dkr.ecr.ap-southeast-1.amazonaws.com/v2/nginx/manifests/signed: unexpected status code 401 Unauthorized: Not Authorized. I have already verified the token stored in the secret have access to the image manifest URL. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the advice @ZacHaque name: cosign-ecr key: | Thanks again both! |
Beta Was this translation helpful? Give feedback.
Thanks for the advice @ZacHaque
It seems the issue is because auth.secret_name was edited manually after helm release installed, when i update it in the values.yaml and re-install it with helm, it works..
So only when auth.secret_name been added to values.yaml, then it will mount it to /app/connaisseur-config/default/.docker
name: cosign-ecr
trust_roots:
key: |
-----BEGIN PUBLIC KEY-----
-----END PUBLIC KEY-----
name: cosign-ecr
type: cosign
auth:
secret_name: ecr-registry
Thanks again both!