-
Notifications
You must be signed in to change notification settings - Fork 323
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
[ECR] [Feature Request]: Support --registry-id flag to retrieve the cross-account image scan findings in describe-image-scan-findings command #2541
Comments
Just to clarify, this is not a feature request but a bug. The documentation states that we can specify an external AWS account with the |
Hi, |
Context: I have account Steps:
@soumyabavirisetti and I spent the best part of one morning trying to figure out the issue, and I believe she was able to reproduce it in her own environment. I tried this via the CLI and also using the python API - both with the same result. Many thanks! |
Thank you, you're correct, and sorry, I overlooked this in the original post.
That's exactly it. Don't believe Inspector supports cross account access unless part of an organization. |
Ok, that makes sense. The org used to be the delegated admin for Inspector, but this prevented us (as tenants) to view the findings in the console, so it was disabled. I suppose if we were to enable the delegated admin, then we should be able to pull the findings cross account? |
Yes, the calling account would need to be the delegated admin (DA). If account Note that members can only view their own findings. I've opened a ticket on our side to clarify in the ECR docs. |
Community Note
Tell us about your request
What do you want us to build?
The
--registry-id
flag in the describe-image-scan-findings command specifies the AWS account ID for the target registry. However, when trying to describe the scan findings for cross-account ECR repository images, the command fails with "ScanNotFoundException" due to limitations in Amazon Inspector's integration with ECR enhanced scanning.It would be good to support the
--registry-id
flag to allow the retrieval of image scan findings for cross-account ECR repository images directly.Which service(s) is this request for?
ECR
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
What outcome are you trying to achieve, ultimately, and why is it hard/impossible to do right now? What is the impact of not having this problem solved? The more details you can provide, the better we'll be able to understand and solve the problem.
Access image scan findings for images in cross account ECR repository directly which is not possible due to limitation from Amazon Inspector end.
Are you currently working around this issue?
How are you currently solving this problem?
The current workaround is to make the Source Account as the Delegated administrator for the Inspector Service or assume an IAM Role/User in the Target Account to be able to describe the image scan findings.
Additional context
Anything else we should know?
Attachments
If you think you might have additional information that you'd like to include via an attachment, please do - we'll take a look. (Remember to remove any personally-identifiable information.)
The text was updated successfully, but these errors were encountered: