Skip to content

[filebeat][ABS] - Fix Input failing with Storage Blob Data Reader RBAC role#48886

Merged
ShourieG merged 2 commits intoelastic:mainfrom
ShourieG:abs/bugfix_remove_tag
Feb 18, 2026
Merged

[filebeat][ABS] - Fix Input failing with Storage Blob Data Reader RBAC role#48886
ShourieG merged 2 commits intoelastic:mainfrom
ShourieG:abs/bugfix_remove_tag

Conversation

@ShourieG
Copy link
Contributor

@ShourieG ShourieG commented Feb 17, 2026

Type of change

  • Bug

Proposed commit message

[Fix] azure-blob-storage: Input failing with Storage Blob Data Reader RBAC role

Remove `Tags: true` from the `ListBlobsInclude` options in the blob
listing call. This option requires the `blobs/tags/read` DataAction,
which is not granted by the Storage Blob Data Reader or Storage Blob
Data Contributor RBAC roles, causing an AuthorizationPermissionMismatch
error when using Entra ID (OAuth2) authentication.

The blob index tags were never consumed by the input after being fetched,
so removing this option has no functional impact.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works. Where relevant, I have used the stresstest.sh script to run them under stress conditions and race detector to verify their stability.
  • I have added an entry in ./changelog/fragments using the changelog tool.

Disruptive User Impact

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Use cases

Screenshots

Logs

@ShourieG ShourieG self-assigned this Feb 17, 2026
@ShourieG ShourieG added bugfix Team:Security-Service Integrations Security Service Integrations Team input:azure-blob-storage backport-active-8 Automated backport with mergify to all the active 8.[0-9]+ branches backport-active-9 Automated backport with mergify to all the active 9.[0-9]+ branches labels Feb 17, 2026
@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Feb 17, 2026
@github-actions
Copy link
Contributor

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@ShourieG ShourieG marked this pull request as ready for review February 17, 2026 12:00
@ShourieG ShourieG requested a review from a team as a code owner February 17, 2026 12:00
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-service-integrations (Team:Security-Service Integrations)

Copy link
Contributor

@efd6 efd6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the future (to bear in mind, not do anything now), can we construct a testing approach that would avoid the issues that caused this?

@ShourieG
Copy link
Contributor Author

For the future (to bear in mind, not do anything now), can we construct a testing approach that would avoid the issues that caused this?

Yes definitely, the main reason it passed the initial testing was the propagation delay (upto 10 mins) that made the test seem to pass with the data reader permissions. Also lack of clear documentation at the time of development did not help. You can check the linked issue for a detailed reason on why this happened.

@ShourieG ShourieG merged commit c3c8af5 into elastic:main Feb 18, 2026
14 of 17 checks passed
@github-actions
Copy link
Contributor

@Mergifyio backport 8.19 9.2 9.3

@mergify
Copy link
Contributor

mergify bot commented Feb 18, 2026

mergify bot pushed a commit that referenced this pull request Feb 18, 2026
…C role (#48886)

[Fix] azure-blob-storage: Input failing with Storage Blob Data Reader RBAC role

Remove `Tags: true` from the `ListBlobsInclude` options in the blob
listing call. This option requires the `blobs/tags/read` DataAction,
which is not granted by the Storage Blob Data Reader or Storage Blob
Data Contributor RBAC roles, causing an AuthorizationPermissionMismatch
error when using Entra ID (OAuth2) authentication.

The blob index tags were never consumed by the input after being fetched,
so removing this option has no functional impact.

(cherry picked from commit c3c8af5)
mergify bot pushed a commit that referenced this pull request Feb 18, 2026
…C role (#48886)

[Fix] azure-blob-storage: Input failing with Storage Blob Data Reader RBAC role

Remove `Tags: true` from the `ListBlobsInclude` options in the blob
listing call. This option requires the `blobs/tags/read` DataAction,
which is not granted by the Storage Blob Data Reader or Storage Blob
Data Contributor RBAC roles, causing an AuthorizationPermissionMismatch
error when using Entra ID (OAuth2) authentication.

The blob index tags were never consumed by the input after being fetched,
so removing this option has no functional impact.

(cherry picked from commit c3c8af5)
@ShourieG ShourieG deleted the abs/bugfix_remove_tag branch February 18, 2026 04:51
@efd6
Copy link
Contributor

efd6 commented Feb 18, 2026

Yeah, that's understood. I'm just wondering how we would avoid that in the future.

mergify bot pushed a commit that referenced this pull request Feb 18, 2026
…C role (#48886)

[Fix] azure-blob-storage: Input failing with Storage Blob Data Reader RBAC role

Remove `Tags: true` from the `ListBlobsInclude` options in the blob
listing call. This option requires the `blobs/tags/read` DataAction,
which is not granted by the Storage Blob Data Reader or Storage Blob
Data Contributor RBAC roles, causing an AuthorizationPermissionMismatch
error when using Entra ID (OAuth2) authentication.

The blob index tags were never consumed by the input after being fetched,
so removing this option has no functional impact.

(cherry picked from commit c3c8af5)
@ShourieG
Copy link
Contributor Author

ShourieG commented Feb 18, 2026

Yeah, that's understood. I'm just wondering how we would avoid that in the future.

I think having a terraform test bed in our integrations would help out a lot, like we have for AWS. We should also make it mandatory to test with various permission levels in that test bed.

ShourieG added a commit that referenced this pull request Feb 18, 2026
…C role (#48886) (#48910)

[Fix] azure-blob-storage: Input failing with Storage Blob Data Reader RBAC role

Remove `Tags: true` from the `ListBlobsInclude` options in the blob
listing call. This option requires the `blobs/tags/read` DataAction,
which is not granted by the Storage Blob Data Reader or Storage Blob
Data Contributor RBAC roles, causing an AuthorizationPermissionMismatch
error when using Entra ID (OAuth2) authentication.

The blob index tags were never consumed by the input after being fetched,
so removing this option has no functional impact.

(cherry picked from commit c3c8af5)

Co-authored-by: Shourie Ganguly <shourie.ganguly@elastic.co>
ShourieG added a commit that referenced this pull request Feb 18, 2026
…C role (#48886) (#48911)

[Fix] azure-blob-storage: Input failing with Storage Blob Data Reader RBAC role

Remove `Tags: true` from the `ListBlobsInclude` options in the blob
listing call. This option requires the `blobs/tags/read` DataAction,
which is not granted by the Storage Blob Data Reader or Storage Blob
Data Contributor RBAC roles, causing an AuthorizationPermissionMismatch
error when using Entra ID (OAuth2) authentication.

The blob index tags were never consumed by the input after being fetched,
so removing this option has no functional impact.

(cherry picked from commit c3c8af5)

Co-authored-by: Shourie Ganguly <shourie.ganguly@elastic.co>
ShourieG added a commit that referenced this pull request Feb 18, 2026
…C role (#48886) (#48912)

[Fix] azure-blob-storage: Input failing with Storage Blob Data Reader RBAC role

Remove `Tags: true` from the `ListBlobsInclude` options in the blob
listing call. This option requires the `blobs/tags/read` DataAction,
which is not granted by the Storage Blob Data Reader or Storage Blob
Data Contributor RBAC roles, causing an AuthorizationPermissionMismatch
error when using Entra ID (OAuth2) authentication.

The blob index tags were never consumed by the input after being fetched,
so removing this option has no functional impact.

(cherry picked from commit c3c8af5)

Co-authored-by: Shourie Ganguly <shourie.ganguly@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-active-8 Automated backport with mergify to all the active 8.[0-9]+ branches backport-active-9 Automated backport with mergify to all the active 9.[0-9]+ branches bugfix input:azure-blob-storage Team:Security-Service Integrations Security Service Integrations Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[filebeat][ABS] - Input fails with AuthorizationPermissionMismatch when using Storage Blob Data Reader RBAC role

3 participants