Skip to content

Support SNI authentication from EnvironmentCredential/DAC#41031

Merged
billwert merged 4 commits into
Azure:mainfrom
billwert:identity-support-client_certificate-chain-from-dac
Jul 10, 2024
Merged

Support SNI authentication from EnvironmentCredential/DAC#41031
billwert merged 4 commits into
Azure:mainfrom
billwert:identity-support-client_certificate-chain-from-dac

Conversation

@billwert

@billwert billwert commented Jul 7, 2024

Copy link
Copy Markdown
Contributor

When constructing a confidential client, if AZURE_CLIENT_SEND_CERTIFICATE_CHAIN is true or 1, send the x5c chain.

Fixes #40013

When constructing a confidential client, if `AZURE_CLIENT_SEND_CERTIFICATE_CHAIN` is `true` or `1`, send the x5c chain.

Fixes Azure#40013
@azure-sdk

Copy link
Copy Markdown
Collaborator

API change check

API changes are not detected in this pull request.

@g2vinay g2vinay left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feature should be supported via DAC / ENV credential only, I believe.
Currently, it will be picked up under Client Cert Credential too.

@billwert

Copy link
Copy Markdown
Contributor Author

This feature should be supported via DAC / ENV credential only, I believe.
Currently, it will be picked up under Client Cert Credential too.

fixed.

Comment thread sdk/identity/azure-identity/CHANGELOG.md Outdated
@billwert billwert enabled auto-merge (squash) July 10, 2024 19:07
@billwert billwert merged commit 4480af5 into Azure:main Jul 10, 2024
maorleger added a commit to Azure/azure-sdk-for-js that referenced this pull request Jul 30, 2024
#30570)

### Packages impacted by this PR

@azure/identity

### Issues associated with this PR

Resolves #29592

### Describe the problem that is addressed by this PR

SNI authentication is a 1p certificate feature supported by
ClientCertificateCredential. In order to implement SNI based auth one
has to use ClientCertificateCredential directly instead of DefaultAzureCredential
because there's no way to configure sendCertificateChain from DAC.

For consistency with other languages, we're adding support for
AZURE_CLIENT_SEND_CERTIFICATE_CHAIN as an env var here

### Provide a list of related PRs _(if any)_

Azure/azure-sdk-for-java#41031
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

SDK inconsistency across langs: support AZURE_CLIENT_SEND_CERTIFICATE_CHAIN from DAC

5 participants