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

Enhanced scan findings do not appear in aws_ecr_image_scan_finding, but AWS CLI successfully retrieves them. #2404

Open
Luis-Garcia-206 opened this issue Feb 7, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Luis-Garcia-206
Copy link

Describe the bug
Enhanced scan findings do not appear in aws_ecr_image_scan_finding or aws_ecr_image, but AWS CLI successfully retrieves them (aws ecr describe-image-scan-findings).
However, Basic scan findings appear correctly in both tables.

Steampipe version (steampipe -v)
Steampipe v1.0.3

Plugin version (steampipe plugin list)
aws@latest | 1.6.0

To reproduce

  1. In AWS Web Console / Amazon ECR / Private registry / Scanning / Select Enhanced scanning
  2. Scan at least one repository/image and wait to have the scan results.
  3. In steampipe, SELECT * FROM aws_ecr_image_scan_finding WHERE ... , does not return data.
  4. In steampipe, SELECT * FROM aws_ecr_image WHERE ... , return the correct images, but the fields image_scan_findings_summary and image_scan_status are in NULL.

Expected behavior
When Enhanced scanning is selected and at least one repository is scanned:

  • The table aws_ecr_image_scan_finding should contain data related to Enhanced scanning findings, just as it does when Basic scanning is selected.
  • The table aws_ecr_image should contain the respective info in image_scan_findings_summary and image_scan_status related to Enhanced scanning findings, just as it does when Basic scanning is selected.

Additional context
Everything works correctly when Basic scanning is selected in: AWS Web Console / Amazon ECR / Private registry / Scanning.

@Luis-Garcia-206 Luis-Garcia-206 added the bug Something isn't working label Feb 7, 2025
@ParthaI ParthaI self-assigned this Feb 8, 2025
@ParthaI
Copy link
Contributor

ParthaI commented Feb 8, 2025

Hello @Luis-Garcia-206,

Sorry to hear that you're experiencing this issue. The aws_ecr_image_scan_finding table does not currently return Enhanced Scanning details for image tags. To support this, we may need to either create a separate table or modify the existing table design to include enhanced scanning findings.

Thanks! 😊

@Luis-Garcia-206
Copy link
Author

Thanks for your fast answer @ParthaI, happy Monday!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants