Repository navigation
Patch Release v1.0.2 📎 #1070
Tomasz Naumowicz (tnaum-ms)
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Patch Release v1.0.2
Version 1.0.2 of the DocumentDB extension for Visual Studio Code adds cloud-aware Microsoft Entra ID authentication, clearer sign-in diagnostics, and more reliable credential updates. It also mitigates reported security issues in connection links and token handling. We recommend that all users update.
What's Changed in v1.0.2
💠 Cloud-Aware Sign-in for Sovereign and Custom Azure Clouds (#1050)
Microsoft Entra ID connections now request a DocumentDB token for the Azure cloud selected in VS Code, rather than always requesting the public-cloud token. This covers Azure US Government, Azure China, and custom Azure clouds; public-cloud behavior is unchanged. If a recognized cluster host belongs to a different cloud than the one selected, the extension stops before sign-in and explains which setting to change.
Managed identity connections also select the token audience for their cloud, independently of VS Code's sign-in setting. Copied managed identity connection strings include the matching
TOKEN_RESOURCEwhen the cloud can be determined.For custom clouds and private DNS names, the new
documentDB.customEnvironmentsettings let you configure the token resource (ossrdbmsEndpoint) and trusted service domain (hostnameSuffix) in user settings. The new Sovereign Clouds guide explains which settings you need, where to set them, and how to troubleshoot.Important: this update does not remove Microsoft's service-side preauthorization requirement. Sign-in can still fail with AADSTS65002 until Microsoft enables VS Code for the database resource in that cloud. Native DocumentDB authentication or a managed identity on an Azure VM can provide a workaround; see AADSTS65002 guidance.
💠 Sign-in Errors That Explain the Next Step (#1050)
Microsoft Entra ID errors now come with explanations that distinguish a cloud or tenant setting you can change from a policy your administrator controls or a preauthorization issue only Microsoft can fix. Opaque Windows broker failures also point you toward the on-screen error code and the relevant VS Code authentication logs.
Cloud-resolution tracing in the DocumentDB output channel helps support understand which cloud, sign-in provider, and token resource were selected, without logging tenant, account, cluster host, or connection-string values. See Collect diagnostic information.
💠 More Reliable Credential Updates and Open Shells (#1050)
Update Credentials now refreshes the credential cache and restarts the cluster's Query Playground worker so subsequent runs use the new credentials. Open Interactive Shell sessions keep their existing connection and the credentials and token audience they started with, so updating credentials or a failed tree connection no longer breaks their token refresh. A notification explains that you need to close an existing shell and open a new one to use the updated credentials.
💠 Safer Connection Links (#1040)
Links that open a connection in the extension (
vscode://ms-azuretools.vscode-documentdb/connect?...) come from outside VS Code, so the extension now treats them more carefully:localhost. The extension always asks you first, and you can keep validation on. For any other target, the request is ignored, certificate validation stays on, and the confirmation tells you so.See Connect with a URL for details.
💠 Microsoft Entra ID Token Protection (#1040, #1050)
The extension limits the hosts that can receive Microsoft Entra ID access tokens to the known Azure public and sovereign cloud domains. Custom service domains must be explicitly trusted through
documentDB.customEnvironment.hostnameSuffixin machine-scoped user settings; a connection string cannot make its own domain trusted.💠 Consistent TLS Checks for Connections Without Authentication (#1040)
Connections without authentication now check the hosts the same way as the other authentication methods before relaxing TLS certificate validation. They also apply a TLS exception you accepted for a local IP address, such as
127.0.0.1or::1, which was previously ignored.💠 More Reliable SRV Resolver Tests (#1041)
DNS tests now control socket errors, timers, and TCP framing to run more reliably on Windows and restricted CI runners, without changing production DNS behavior.
Changelog
See the full changelog entry for this release:
➡️ CHANGELOG.md#102
All reactions