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

fix(azureblob): Return error if Azure returns no service principal token #13195

Merged
merged 4 commits into from
Dec 13, 2024

Conversation

rgroothuijsen
Copy link
Contributor

What this PR does / why we need it:

This adds an extra nil check to verify the Azure blob storage client has received a service principal token before trying to do anything with said token. This has led to crashes if use_federated_token is enabled and an error message is returned instead of a token.

Which issue(s) this PR fixes:
Fixes #9952

@rgroothuijsen rgroothuijsen requested a review from a team as a code owner June 11, 2024 15:06
@rgroothuijsen rgroothuijsen changed the title Return error if Azure returns no service principal token fix: return error if Azure returns no service principal token Jun 11, 2024
@chaudum chaudum changed the title fix: return error if Azure returns no service principal token fix(azureblob): Return error if Azure returns no service principal token Nov 29, 2024
@chaudum
Copy link
Contributor

chaudum commented Nov 29, 2024

@rgroothuijsen Do you mind updating the PR to resolve the merge conflict?

@rgroothuijsen rgroothuijsen requested a review from chaudum December 3, 2024 18:30
@chaudum chaudum merged commit e98a86b into grafana:main Dec 13, 2024
58 checks passed
mveitas pushed a commit to mveitas/loki that referenced this pull request Jan 6, 2025
…ken (grafana#13195)

This adds an extra nil check to verify the Azure blob storage client has received a service principal token before trying to do anything with said token. This has led to crashes if `use_federated_token is enabled` and an error message is returned instead of a token.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crashes read/write/backend using Azure blob with AAD workload identity.
2 participants