Skip to content

azure: grant scanner read access to images and galleries - #291

Open
0intro wants to merge 1 commit into
mainfrom
djc/azure-image-role-permissions
Open

0intro wants to merge 1 commit into
mainfrom
djc/azure-image-role-permissions

Conversation

@0intro

@0intro 0intro commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

The worker role granted galleries/images/versions/read alone, so the
scanner could read a gallery version it already knew of but could not
enumerate the galleries and image definitions above it, nor list classic
managed images at all. Azure answers a list the caller cannot read with
HTTP 200 and a filtered result set rather than 403, so a role missing
these actions reports no images and logs nothing.

Grant read on images, galleries and gallery image definitions. A managed
image is read by copying the snapshot or disk it was captured from, and
the disk write at the destination authorizes that copy on its own: an
image whose snapshot answers 403 to this identity still scans to
completion, so the three reads above are the whole addition.

The ARM template carries the same list, so regenerate main.json with the
Bicep version it pins.

@0intro
0intro requested a review from a team as a code owner September 15, 2026 12:39
@0intro
0intro force-pushed the djc/azure-image-role-permissions branch from 1b55156 to dc93c74 Compare September 15, 2026 15:32
The worker role granted galleries/images/versions/read alone, so the
scanner could read a gallery version it already knew of but could not
enumerate the galleries and image definitions above it, nor list classic
managed images at all. Azure answers a list the caller cannot read with
HTTP 200 and a filtered result set rather than 403, so a role missing
these actions reports no images and logs nothing.

Grant read on images, galleries and gallery image definitions. A managed
image is read by copying the snapshot or disk it was captured from, and
the disk write at the destination authorizes that copy on its own: an
image whose snapshot answers 403 to this identity still scans to
completion, so the three reads above are the whole addition.

The ARM template carries the same list, so regenerate main.json with the
Bicep version it pins.
@0intro
0intro force-pushed the djc/azure-image-role-permissions branch from dc93c74 to 759c3d9 Compare October 26, 2026 13:52
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 this pull request may close these issues.

1 participant