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

Policy CLI fails to push an image to ECR #149

Open
carabasdaniel opened this issue Sep 30, 2023 · 1 comment
Open

Policy CLI fails to push an image to ECR #149

carabasdaniel opened this issue Sep 30, 2023 · 1 comment
Assignees

Comments

@carabasdaniel
Copy link
Contributor

Using Policy CLI version 2.4 to push an image returns:

oras push manifest failed: unexpected status from PUT request to <ecr-url>/manifests/latest: 405 Method Not Allowed
failed to push one or more policies: oras push manifest failed: unexpected status from PUT request to <ecr-url>/manifests/latest: 405 Method Not Allowed

Using Policy CLI version 2.1 works as intended.

@carabasdaniel
Copy link
Contributor Author

Investigation results:

  • When bumping dependencies in policy CLI v0.2.4 with the latest changes the packing mechanism for the image manifest switched to the latest oras.PackManifestVersion1_1_RC4.

  • Pushing images that are built with this packing mechanism instead of the older default oras.PackManifestVersion1_0 causes AWS ECR to throw the above 405 Method Not Allowed error when pushing the manifest blob with the details:

{\"errors\":[{\"code\":\"UNSUPPORTED\",\"message\":\"Invalid parameter at 'ImageManifest' failed to satisfy constraint: 'Invalid JSON syntax'\"}]}\n"

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

Successfully merging a pull request may close this issue.

1 participant