-
Notifications
You must be signed in to change notification settings - Fork 5k
Open
Labels
ClientThis issue is related to a non-management packageThis issue is related to a non-management packageKeyVaultcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Description
Library name and version
Azure.Security.Keyvault.Secrets 4.6.0
Describe the bug
I am using certificate authentication to access my keyvault and have it tested using the Azure cli. I am able to fetch secrets without issue.
However, in my .Net app the request fails with the message:
Client address is not authorized and caller is not a trusted service
This seems to be due to the fact that the library is not using the private endpoint associated with the keyvault.
The header from my .Net request:
x-ms-keyvault-network-info: conn_type=Ipv4;addr=removed;act_addr_fam=InterNetwork;
And from the cli request:
x-ms-keyvault-network-info: conn_type=PrivateLink;private_endpoint=removed;addr=removed;act_addr_fam=InterNetworkV6
I tried to use the uri of the private endpoint, but got the same error
Expected behavior
Expected the library to use the private endpoint
Actual behavior
Library does not use the private endpoint
Reproduction Steps
Try to fetch secrets from a keyvault that is only accessible via private endpoint, using the vault uri
Environment
windows 10 .net framework v4.8. visual studio 2022
Metadata
Metadata
Assignees
Labels
ClientThis issue is related to a non-management packageThis issue is related to a non-management packageKeyVaultcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Type
Projects
Status
Untriaged