Update dependency azure-core to v1.38.0 [SECURITY]#39
Open
renovate[bot] wants to merge 1 commit intomasterfrom
Open
Update dependency azure-core to v1.38.0 [SECURITY]#39renovate[bot] wants to merge 1 commit intomasterfrom
renovate[bot] wants to merge 1 commit intomasterfrom
Conversation
2861a7d to
fbe9ba4
Compare
fbe9ba4 to
55bdf53
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR contains the following updates:
==1.28.0→==1.38.0GitHub Vulnerability Alerts
CVE-2026-21226
Deserialization of untrusted data in Azure Core shared client library for Python allows an authorized attacker to execute code over a network.
Severity
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HRelease Notes
Azure/azure-sdk-for-python (azure-core)
v1.38.0Compare Source
Breaking Changes
v1.37.0Compare Source
Features Added
get_backcompat_attr_nametoazure.core.serialization.get_backcompat_attr_namegets the backcompat name of an attribute using backcompat attribute access. #44084Bugs Fixed
v1.36.0Compare Source
Features Added
TypeHandlerRegistrytoazure.core.serializationto allow developers to register custom serializers and deserializers for specific types or conditions. #43051Bugs Fixed
Other Changes
sixas a dependency since it was unused. #39962v1.35.1Compare Source
Bugs Fixed
retry_backoff_maxparameter inRetryPolicyandAsyncRetryPolicyconstructors was being ignored, causing retry operations to use default maximum backoff values instead of the user-specified limits. #42444Other Changes
BearerTokenCredentialPolicyandAsyncBearerTokenCredentialPolicywill now properly surface credential exceptions when handling claims challenges. Previously, exceptions from credential token requests were suppressed; now they are raised and chained with the original 401HttpResponseErrorresponse for better debugging visibility. #42536v1.35.0Compare Source
Features Added
start_timekeyword argument to thestart_spanandstart_as_current_spanmethods in theOpenTelemetryTracerclass. This allows users to specify a custom start time for created spans. #41106contextkeyword argument to thestart_spanandstart_as_current_spanmethods in theOpenTelemetryTracerclass. This allows users to specify a custom parent context for created spans. #41511as_attribute_dicttoazure.core.serializationfor backcompat migration purposes. Will return a generated model as a dictionary where the keys are in attribute syntax.is_generated_modelmethod toazure.core.serialization. Returns whether a given input is a model from one of our generated sdks. #41445attribute_listmethod toazure.core.serialization. Returns all of the attributes of a given model from one of our generated sdks. #41571Other Changes
aiohttptransport (the default for async SDKs) will now be raised as aazure.core.exceptions.ServiceResponseTimeoutError, a subtype of the previously raisedServiceResponseError.aiohttp3.10 or later, a connection timeout error will now be raised as aazure.core.exceptions.ServiceRequestTimeoutError, which can be retried.on_challengeinBearerTokenCredentialPolicyandAsyncBearerTokenCredentialPolicywill now cache the retrieved token. #41857v1.34.0Compare Source
Features Added
set_span_error_statusmethod to theOpenTelemetryTracerclass. This method allows users to set the status of a span toERRORafter it has been created. #40703Other Changes
v1.33.0Compare Source
Features Added
opentelemetry-apiinstalled.settings.tracing_implementationis not set.settings.tracing_enabledis set toTrue.setting.tracing_implementationis set, the tracing plugin will be used instead of the native tracing.settings.tracing_enabledis set toFalse, tracing will be disabled.OpenTelemetryTracerclass was added to theazure.core.tracing.opentelemetrymodule. This is a wrapper around the OpenTelemetry tracer that is used to create spans for Azure SDK operations.get_tracermethod to the newazure.core.instrumentationmodule. This method returns an instance of theOpenTelemetryTracerclass if OpenTelemetry is available.TracingOptionsTypedDict class was added to define the options that SDK users can use to configure tracing per-operation. These options include the ability to enable or disable tracing and set additional attributes on spans.client.method(tracing_options={"enabled": True, "attributes": {"foo": "bar"}})DistributedTracingPolicyanddistributed_trace/distributed_trace_asyncdecorators now uses the OpenTelemetry tracer if it is available and native tracing is enabled._instrumentation_configclass variable to configure the OpenTelemetry tracer used in method span creation. Possible configuration options arelibrary_name,library_version,schema_url, andattributes.DistributedTracingPolicynow accepts ainstrumentation_configkeyword argument to configure the OpenTelemetry tracer used in HTTP span creation.Breaking Changes
opentelemetrywas imported. To enable tracing with the plugin, please importazure.core.settings.settingsand setsettings.tracing_implementationto"opentelemetry". #39563DistributedTracingPolicy, the default span name is now just the HTTP method (e.g., "GET", "POST") and no longer includes the URL path. This change was made to converge with the OpenTelemetry HTTP semantic conventions. The full URL is still included in the span attributes.DistributedTracingPolicy:Bugs Fixed
traceparentheader was not being set correctly in theDistributedTracingPolicy. Thetraceparentheader will now set based on the context of the HTTP client span. #40074Other Changes
opentelemetry-apias an optional dependency for tracing. This can be installed withpip install azure-core[tracing]. #39563v1.32.0Compare Source
Features Added
BearerTokenCredentialPolicyandAsyncBearerTokenCredentialPolicy.Bugs Fixed
tracing_attributeskeyword argument wasn't being handled at the request/method level. #38164Other Changes
HttpLoggingPolicy.v1.31.0Compare Source
Features Added
SupportsTokenInfoandAsyncSupportsTokenInfo, to offer more extensibility in supporting various token acquisition scenarios. #36565get_token_infomethod that returns anAccessTokenInfoobject.TokenRequestOptionsclass, which is aTypedDictwith optional parameters, that can be used to define options for token requests through theget_token_infomethod. #36565AccessTokenInfoclass, which is returned byget_token_infoimplementations. This class contains the token, its expiration time, and optional additional information like when a token should be refreshed. #36565BearerTokenCredentialPolicyandAsyncBearerTokenCredentialPolicynow first check if a credential has theget_token_infomethod defined. If so, theget_token_infomethod is used to acquire a token. Otherwise, theget_tokenmethod is used. #36565refresh_onattribute when determining if a new token request should be made.Other Changes
opentelemetryis imported, then OpenTelemetry will be used to trace Azure SDK operations. #35050v1.30.2Compare Source
Features Added
DistributedTracingPolicywill now set an attribute,http.request.resend_count, on HTTP spans for resent requests to indicate the resend attempt number. #35069Bugs Fixed
Other Changes
error.typeattribute if an error status code is returned. #34619v1.30.1Compare Source
Other Changes
retry_afterheader. #34203v1.30.0Compare Source
Features Added
azure.core.rest.HttpRequest#33948fileswith duplicate field namesazure.core.rest.HttpRequest#34021v1.29.7Compare Source
Other Changes
anyio. #33282v1.29.6Compare Source
Bugs Fixed
AsyncBearerTokenCredentialPolicyto work properly withtrioconcurrency mechanisms. (#33307)Other Changes
anyio>=3.0,<5.0requeststo 2.21.0.v1.29.5Compare Source
Bugs Fixed
multipart/form-datain the async transport wheredatawas not getting encoded into the request body. #32473Other Changes
v1.29.4Compare Source
Bugs Fixed
v1.29.3Compare Source
Bugs Fixed
messagecannot beNoneinAzureError. #31564v1.29.2Compare Source
Bugs Fixed
AsyncTokenCredential.__aexit__()#31573Other Changes
typing-extensionsversion to 4.6.0.v1.29.1Compare Source
Bugs Fixed
enabled_caeunless it is explicitly enabled.v1.29.0Compare Source
Features Added
enable_caewas added to theget_tokenmethod of theTokenCredentialprotocol. #31012BearerTokenCredentialPolicyandAsyncBearerTokenCredentialPolicynow acceptenable_caekeyword arguments in their constructors. This is used in determining if Continuous Access Evaluation (CAE) should be enabled for eachget_tokenrequest. #31012Configuration
📅 Schedule: (in timezone Europe/London)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.