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

Amazon ECR public image [NG] verify with 401 Unauthorized. #213

Closed
7474 opened this issue Dec 29, 2020 · 2 comments
Closed

Amazon ECR public image [NG] verify with 401 Unauthorized. #213

7474 opened this issue Dec 29, 2020 · 2 comments

Comments

@7474
Copy link

7474 commented Dec 29, 2020

前日リリースされたAmazon ECR Public Galleryのイメージを指定した task definition を、ECRに未ログインで verify したところ 401 Unauthorized で NG となりました。

期待する動作はECRへの未ログイン時にECR Publicイメージへは匿名アクセスで存在確認が行われる、または verifySkipErr などでverify NGとはならない形になります。

NG時の出力:

TaskDefinition [NG] verify ContainerDefinition[mackerel-container-agent] failed: verify Image[public.ecr.aws/mackerel/mackerel-container-agent:plugins] failed: 401 Unauthorized

イメージをDocker Hubのものに変えただけの差分でのOK出力:

ContainerDefinition[mackerel-container-agent]
Image[mackerel/mackerel-container-agent:plugins]
--> [OK]

public.ecr.aws/mackerel/mackerel-container-agent:plugins は手元のマシンで未認証で docker pull 可能なことを確認しました。

@fujiwara
Copy link
Contributor

v1.3.0 で ECR Public を含めた一般の公開イメージの検証に対応しました。お試しください!https://github.com/kayac/ecspresso/releases/tag/v1.3.0

@7474
Copy link
Author

7474 commented Jan 13, 2021

ECR public イメージの存在確認取れました。最高です!

    ContainerDefinition[mackerel-container-agent]
      Image[public.ecr.aws/mackerel/mackerel-container-agent:plugins]
      --> [OK]

@7474 7474 closed this as completed Jan 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants