-
Notifications
You must be signed in to change notification settings - Fork 2k
feat(azure_blob sink): Expand support for Azure authentication types #24729
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
Open
jlaundry
wants to merge
27
commits into
vectordotdev:master
Choose a base branch
from
jlaundry:feature-azure_auth
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
8fbea5e
start by moving auth config to azure_common
jlaundry cf02890
add auth to azure_blob
jlaundry f560854
initial auth switch
jlaundry 2903a28
integration test WIP
jlaundry 45d9e74
doc updates
jlaundry 206692f
add feature changelog
jlaundry 30e73b5
clippy changes
jlaundry 5a0b5d2
add account_name and blob_endpoint options
jlaundry c611d4d
remove block_in_place
jlaundry 1ad3097
add ClientCertificateCredential
jlaundry d03f6a6
remake certificate with required attributes
jlaundry f3dc448
refactor integration tests to support both connection string and oauth
jlaundry 2de30d8
update doc examples
jlaundry 6f94501
make clippy happy
jlaundry 50e4ff0
fix tests
jlaundry bc44aea
make "client_secret_credential" explicitly configured
jlaundry 69b8b38
add azure_logs_ingestion to Azure integration tests
jlaundry f2ec30f
Err out the other TlsConfig options
jlaundry 212a90a
Add warning message to connection_string
jlaundry 4ed4324
Simplify TlsConfig
jlaundry e4b650f
add workload identity config options
jlaundry 17d51bb
Merge remote-tracking branch 'origin/master' into feature-azure_auth
thomasqueirozb 5af8d1a
Move warning into docs::warnings
thomasqueirozb 348cc24
Properly regenerate cue file
thomasqueirozb 9254aee
Fix spaces
thomasqueirozb a18adfc
tidy options creation
jlaundry 2d9f1a6
add UAMI type option
jlaundry File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -377,6 +377,7 @@ mycie | |
| mycorp | ||
| mydatabase | ||
| mylabel | ||
| mylogstorage | ||
| mypod | ||
| myvalue | ||
| Namazu | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| Re-introduced Azure authentication support to `azure_blob`, including Azure CLI, Managed Identity, Workload Identity, and Managed Identity-based Client Assertion authentication types. | ||
|
|
||
| authors: jlaundry |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might consider updating to the current (february) Azure SDK. The only iffy part of that is that it brings a dependency on
reqwestversion 13, not 12.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Am I right in thinking that 0.33 is imminent? I was thinking of waiting for Azure/azure-sdk-for-rust#3643 and Azure/azure-sdk-for-rust#3807
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0.33 should be out in a day or so - the big change in 0.33 is removing support for wasm, the rest are relatively minor changes.
However I don't know what the timeline is for the corresponding storage releases. And until we GA the azure SDK, all the SDK client packages are tied at the hip - they all need to be re-released. After GA, we will have a somewhat looser coupling between azure_core and the other crates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, it turns out I was mistaken. azure_core 0.33 is out now. So it's available but the corresponding storage is not quite.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like azure_storage_blob@0.10.0 just dropped
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, sorry I forgot to mention it to you - yesterday was a bit chaotic (for the storage team as well - they had to make some last minute changes to make the March release).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries 🙂
I've pushed the change on a separate branch (jlaundry/vector@feature-azure_auth...jlaundry:vector:update-azure-crates-0.33), and the update caused the integration tests to fail:
Related: Azure/Azurite#2623
Adding
--skipApiVersionCheckto the docker-compose file works (at least, the tests pass...)@thomasqueirozb are you happy if I pull these updates into this PR, or would you prefer to have a separate one right after?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, Azurite has a --ignore-api-version switch (or something like that - I don't remember what exactly it is) which I ended up having to use in my testing.