-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Removal of UUID module causing token Generation to fail #25532
Comments
I'm experiencing same issue with @azure/identity 3.1.3 with managed identity
the detail version of dependencies is as below
|
Related to #25538 and #25541, the issue seems to be that you are using Node 14.16.1, but the API we're using was introduced in 14.17.0: https://nodejs.org/dist/latest-v18.x/docs/api/crypto.html#cryptorandomuuidoptions 14.17.0 was released 11-May-2021 and the 14 series falls out of Node LTS support at the end of the month: https://github.com/nodejs/release#release-schedule I do apologize for the unexpected error. I don't believe we anticipated the number of customers using older runtime versions. @mpodwysocki perhaps we could borrow from your react-native implementation to provide temporary compatibility? https://github.com/Azure/azure-sdk-for-js/blob/2f87259849b9b481ba17136257dca5f915aff759/sdk/core/core-util/src/uuidUtils.native.ts |
### Packages impacted by this PR - @azure/core-util ### Issues associated with this PR - #25501 - #25541 - #25538 - #25532 ### Describe the problem that is addressed by this PR Adds the native implementation if missing in older Node.js ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? ### Are there test cases added in this PR? _(If not, why?)_ ### Provide a list of related PRs _(if any)_ ### Command used to generate this PR:**_(Applicable only to SDK release request PRs)_ ### Checklists - [x] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [x] Added a changelog (if necessary)
Closing as fixed per #25555 |
Describe the bug
A clear and concise description of what the bug is.
While trying to using @azure/identity, version 2.1.0, we are seeing below error:
azure:identity:info ManagedIdentityCredential - Azure Arc MSI => ManagedIdentityCredential - Azure Arc MSI: The environment variables needed are: IMDS_ENDPOINT and IDENTITY_ENDPOINT
azure:identity:info ManagedIdentityCredential - Fabric MSI => ManagedIdentityCredential - Fabric MSI: Unavailable. The environment variables needed are: IDENTITY_ENDPOINT, IDENTITY_HEADER and IDENTITY_SERVER_THUMBPRINT
azure:identity:info ManagedIdentityCredential - AppServiceMSI 2019 => ManagedIdentityCredential - AppServiceMSI 2019: Unavailable. The environment variables needed are: IDENTITY_ENDPOINT and IDENTITY_HEADER.
azure:identity:info ManagedIdentityCredential - AppServiceMSI 2017 => ManagedIdentityCredential - AppServiceMSI 2017: Unavailable. The environment variables needed are: MSI_ENDPOINT and MSI_SECRET.
azure:identity:info ManagedIdentityCredential - CloudShellMSI => ManagedIdentityCredential - CloudShellMSI: Unavailable. The environment variable MSI_ENDPOINT is needed.
azure:identity:info ManagedIdentityCredential - Token Exchange => ManagedIdentityCredential - Token Exchange: Unavailable. The environment variables needed are: AZURE_CLIENT_ID (or the client ID sent through
the parameters), AZURE_TENANT_ID and AZURE_FEDERATED_TOKEN_FILE
azure:identity:info ManagedIdentityCredential - IMDS => ManagedIdentityCredential - IMDS: Error when creating the WebResource for the Azure IMDS endpoint: uuidFunction is not a function
This started happening as azure identity changed the version of @azure/core-rest-pipeline from 1.10.1 to 1.10.3. This caused UUID function to be not available and the token fetch failing.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
The removal of UUID needs to be accounted for if it causes an issue with other libraries or failures across other azure based libraries which it is dependent on. This is a breaking change. This is fixed if we manually add the UUID package internally or add the @azure/core-rest-pipeline 1.10.1 version in application dependencies.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: