This repository has been archived by the owner on Feb 12, 2025. It is now read-only.
Releases: Azure/go-autorest
Releases · Azure/go-autorest
v10.15.1
- If an LRO API returns a
Failed
provisioning state in the initial response return an error at that point so the caller doesn't have to poll. - For failed LROs without an OData v4 error include the response body in the error's
AdditionalInfo
field to aid in diagnosing the failure.
v10.15.0
New Features
- Add initial support for request/response logging via setting environment variables.
SettingAZURE_GO_SDK_LOG_LEVEL
toLogInfo
will log request/response
without their bodies. To include the bodies set the log level toLogDebug
.
By default the logger writes to strerr, however it can also write to stdout or a file
if specified inAZURE_GO_SDK_LOG_FILE
. Note that if the specified file
already exists it will be truncated.
IMPORTANT: by default the logger will redact the Authorization and Ocp-Apim-Subscription-Key
headers. Any other secrets will not be redacted.
v10.14.0
New Features
- Added package version that contains version constants and user-agent data.
Bug Fixes
- Add the user-agent to token requests.
v10.13.0
New Features
- Added support for additionalInfo in ServiceError type.
v10.12.0
New Features
- Added field ServicePrincipalToken.MaxMSIRefreshAttempts to configure the maximun number of attempts to refresh an MSI token.
v10.11.4
Bug Fixes
- If an LRO returns http.StatusOK on the initial response with no async headers return the response body from Future.GetResult().
- If there is no "final GET URL" return an error from Future.GetResult().
v10.11.3
Bug Fixes
- In IMDS retry logic, if we don't receive a response don't retry.
- Renamed the retry function so it's clear it's meant for IMDS only.
- For error response bodies that aren't OData-v4 compliant stick the raw JSON in the ServiceError.Details field so the information isn't lost.
- Also add the raw HTTP response to the DetailedResponse.
- Removed superfluous wrapping of response error in azure.DoRetryWithRegistration().
v10.11.2
Bug Fixes
- Validation for integers handles int and int64 types.
v10.11.1
v10.11.0
New Features
- Added NewServicePrincipalTokenFromManualTokenSecret for creating a new SPT using a manual token and secret
- Added method ServicePrincipalToken.MarshalTokenJSON() to marshall the inner Token