Skip to content

Commit 09461c9

Browse files
chore(azure_blob sink)!: Update azure (0.25) and azure storage (0.21) (#23351)
* Bump azure deps to 0.21 * Update azure_core/azure_identity to 0.25 * cargo vdev build licenses * Add hmac_openssl to azure_core * Add hmac to azure_core 0.21 * Add hmac/reqwest support to azure_storage * Debug error * upgrade azurite - fixed all tests but two * fix azure_blob_healthcheck_unknown_container * dbg statements * ran cargo fmt * ignore test - remove prints * ran cargo fmt * connection_string is now mandatory * ran cargo fmt * changelog * revert uneeded change * ran cargo fmt * remove unused config parameters - regen docs * ran cargo fmt * clippy fixes * improve changelog wording --------- Co-authored-by: Pavlos Rontidis <pavlos.rontidis@gmail.com>
1 parent 9c0cba6 commit 09461c9

File tree

10 files changed

+193
-238
lines changed

10 files changed

+193
-238
lines changed

Cargo.lock

Lines changed: 111 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,16 @@ aws-smithy-runtime-api = { version = "1.7.3", default-features = false, optional
276276
aws-smithy-types = { version = "1.2.11", default-features = false, features = ["rt-tokio"], optional = true }
277277

278278
# Azure
279-
azure_core = { version = "0.17", default-features = false, features = ["enable_reqwest"], optional = true }
280-
azure_identity = { version = "0.17", default-features = false, features = ["enable_reqwest"], optional = true }
281-
azure_storage = { version = "0.17", default-features = false, optional = true }
282-
azure_storage_blobs = { version = "0.17", default-features = false, optional = true }
279+
azure_core = { version = "0.25", default-features = false, features = ["reqwest", "hmac_openssl"], optional = true }
280+
azure_identity = { version = "0.25", default-features = false, features = ["reqwest"], optional = true }
281+
282+
# Azure Storage
283+
azure_storage = { version = "0.21", default-features = false, optional = true }
284+
azure_storage_blobs = { version = "0.21", default-features = false, optional = true }
285+
286+
# Needed to bridge with outdated version of azure_core used in azure_storage*
287+
azure_core_for_storage = { package = "azure_core", version = "0.21.0", default-features = false, features = ["reqwest", "hmac_openssl"] }
288+
283289

284290
# OpenDAL
285291
opendal = { version = "0.54", default-features = false, features = ["services-webhdfs"], optional = true }
@@ -450,10 +456,10 @@ openssl-src = { version = "300", default-features = false, features = ["force-en
450456
approx = "0.5.1"
451457
assert_cmd = { version = "2.0.17", default-features = false }
452458
aws-smithy-runtime = { version = "1.8.3", default-features = false, features = ["tls-rustls"] }
453-
azure_core = { version = "0.17", default-features = false, features = ["enable_reqwest", "azurite_workaround"] }
454-
azure_identity = { version = "0.17", default-features = false, features = ["enable_reqwest"] }
455-
azure_storage_blobs = { version = "0.17", default-features = false, features = ["azurite_workaround"] }
456-
azure_storage = { version = "0.17", default-features = false }
459+
azure_core = { version = "0.25", default-features = false, features = ["reqwest", "hmac_openssl", "azurite_workaround"] }
460+
azure_identity = { version = "0.25", default-features = false, features = ["reqwest"] }
461+
azure_storage_blobs = { version = "0.21", default-features = false, features = ["enable_reqwest", "hmac_openssl", "azurite_workaround"] }
462+
azure_storage = { version = "0.21", default-features = false, features = ["enable_reqwest", "hmac_openssl"] }
457463
base64 = "0.22.1"
458464
criterion = { version = "0.7.0", features = ["html_reports", "async_tokio"] }
459465
itertools.workspace = true

LICENSE-3rdparty.csv

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,12 @@ aws-smithy-xml,https://github.com/smithy-lang/smithy-rs,Apache-2.0,"AWS Rust SDK
8080
aws-types,https://github.com/smithy-lang/smithy-rs,Apache-2.0,"AWS Rust SDK Team <aws-sdk-rust@amazon.com>, Russell Cohen <rcoh@amazon.com>"
8181
axum,https://github.com/tokio-rs/axum,MIT,The axum Authors
8282
axum-core,https://github.com/tokio-rs/axum,MIT,The axum-core Authors
83+
azure_core,https://github.com/azure/azure-sdk-for-rust,MIT,Microsoft
8384
azure_core,https://github.com/azure/azure-sdk-for-rust,MIT,Microsoft Corp.
84-
azure_identity,https://github.com/azure/azure-sdk-for-rust,MIT,Microsoft Corp.
85+
azure_identity,https://github.com/azure/azure-sdk-for-rust,MIT,Microsoft
8586
azure_storage,https://github.com/azure/azure-sdk-for-rust,MIT,Microsoft Corp.
8687
azure_storage_blobs,https://github.com/azure/azure-sdk-for-rust,MIT,Microsoft Corp.
88+
azure_svc_blobstorage,https://github.com/azure/azure-sdk-for-rust,MIT,The azure_svc_blobstorage Authors
8789
backoff,https://github.com/ihrwein/backoff,MIT OR Apache-2.0,Tibor Benke <ihrwein@gmail.com>
8890
backon,https://github.com/Xuanwo/backon,Apache-2.0,The backon Authors
8991
backtrace,https://github.com/rust-lang/backtrace-rs,MIT OR Apache-2.0,The Rust Project Developers
@@ -146,7 +148,6 @@ community-id,https://github.com/traceflight/rs-community-id,MIT OR Apache-2.0,Ju
146148
compact_str,https://github.com/ParkMyCar/compact_str,MIT,Parker Timmerman <parker@parkertimmerman.com>
147149
concurrent-queue,https://github.com/smol-rs/concurrent-queue,Apache-2.0 OR MIT,"Stjepan Glavina <stjepang@gmail.com>, Taiki Endo <te316e89@gmail.com>, John Nunley <dev@notgull.net>"
148150
const-oid,https://github.com/RustCrypto/formats/tree/master/const-oid,Apache-2.0 OR MIT,RustCrypto Developers
149-
const_fn,https://github.com/taiki-e/const_fn,Apache-2.0 OR MIT,The const_fn Authors
150151
convert_case,https://github.com/rutrum/convert-case,MIT,David Purdum <purdum41@gmail.com>
151152
convert_case,https://github.com/rutrum/convert-case,MIT,rutrum <dave@rutrum.net>
152153
cookie,https://github.com/SergioBenitez/cookie-rs,MIT OR Apache-2.0,"Sergio Benitez <sb@sergio.bz>, Alex Crichton <alex@alexcrichton.com>"
@@ -559,6 +560,7 @@ rust_decimal,https://github.com/paupino/rust-decimal,MIT,Paul Mason <paul@form1.
559560
rustc-demangle,https://github.com/alexcrichton/rustc-demangle,MIT OR Apache-2.0,Alex Crichton <alex@alexcrichton.com>
560561
rustc-hash,https://github.com/rust-lang/rustc-hash,Apache-2.0 OR MIT,The Rust Project Developers
561562
rustc_version,https://github.com/Kimundi/rustc-version-rs,MIT OR Apache-2.0,Marvin Löbel <loebel.marvin@gmail.com>
563+
rustc_version,https://github.com/djc/rustc-version-rs,MIT OR Apache-2.0,The rustc_version Authors
562564
rustc_version_runtime,https://github.com/seppo0010/rustc-version-runtime-rs,MIT,Sebastian Waisbrot <seppo0010@gmail.com>
563565
rustix,https://github.com/bytecodealliance/rustix,Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT,"Dan Gohman <dev@sunfishcode.online>, Jakub Konka <kubkon@jakubkonka.com>"
564566
rustls,https://github.com/rustls/rustls,Apache-2.0 OR ISC OR MIT,The rustls Authors
@@ -697,8 +699,10 @@ tungstenite,https://github.com/snapview/tungstenite-rs,MIT OR Apache-2.0,"Alexey
697699
twox-hash,https://github.com/shepmaster/twox-hash,MIT,Jake Goulding <jake.goulding@gmail.com>
698700
typed-builder,https://github.com/idanarye/rust-typed-builder,MIT OR Apache-2.0,"IdanArye <idanarye@gmail.com>, Chris Morgan <me@chrismorgan.info>"
699701
typenum,https://github.com/paholg/typenum,MIT OR Apache-2.0,"Paho Lurie-Gregg <paho@paholg.com>, Andre Bogus <bogusandre@gmail.com>"
702+
typespec,https://github.com/azure/azure-sdk-for-rust,MIT,Microsoft
703+
typespec_client_core,https://github.com/azure/azure-sdk-for-rust,MIT,Microsoft
704+
typespec_macros,https://github.com/azure/azure-sdk-for-rust,MIT,Microsoft
700705
typetag,https://github.com/dtolnay/typetag,MIT OR Apache-2.0,David Tolnay <dtolnay@gmail.com>
701-
tz-rs,https://github.com/x-hgg-x/tz-rs,MIT OR Apache-2.0,x-hgg-x
702706
ua-parser,https://github.com/ua-parser/uap-rust,Apache-2.0,The ua-parser Authors
703707
ucd-trie,https://github.com/BurntSushi/ucd-generate,MIT OR Apache-2.0,Andrew Gallant <jamslam@gmail.com>
704708
unarray,https://github.com/cameron1024/unarray,MIT OR Apache-2.0,The unarray Authors
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
The `azure_blob` sink now requires a `connection_string`. This simplifies configuration and ensures predictable behavior in production.
2+
Other authentication methods will be not supported at least until `azure_*` crates mature.
3+
4+
authors: pront

scripts/integration/azure/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ env:
99
LOGSTASH_ADDRESS: 0.0.0.0:8081
1010

1111
matrix:
12-
version: [3.14.0]
12+
version: [ 3.35.0 ]
1313

1414
# changes to these files/paths will invoke the integration test in CI
1515
# expressions are evaluated using https://github.com/micromatch/picomatch

0 commit comments

Comments
 (0)