Cannot configure HTTP proxy in `azure-keyvault-secrets`
See original GitHub issue- Package Name: azure-keyvault-secrets
- Package Version: 1.22.1
- Operating System: linux
- Python Version: 3.9.7
Describe the bug
According to this documentation it should be possible to configure proxies globally by using the HTTP*_PROXY
environment variables.
However, they do not seem to have any effect on azure.keyvault.secrets.SecretClient
. Instead the request to KeyVault just hangs.
To Reproduce Steps to reproduce the behavior:
def get_secret():
credential = DefaultAzureCredential()
secret_client = SecretClient(vault_url="...", credential=credential)
v = secret_client.get_secret("mysecret").value
print(f"My secret: {v}")
The code snippet does work in an environment without a corporate proxy.
Expected behavior To be able to configure proxy according to the documentation.
Issue Analytics
- State:
- Created a year ago
- Comments:12 (8 by maintainers)
Top Results From Across the Web
Azure Key Vault Secrets client library for Python
pip install azure-keyvault-secrets azure-identity ... It cannot change the secret's value; use set_secret to set a secret's value. Python
Read more >Intellij Community can't use http proxy for Maven
Navigate to Maven > Importing 1. inside the IntelliJ IDEA Settings (which is found under File > Settings ). The second last option...
Read more >azure-keyvault-secrets 4.6.0
It cannot change the secret's value; use set_secret to set a secret's value. from azure.identity import DefaultAzureCredential from azure.keyvault.secrets ...
Read more >Add an Azure Key Vault Secrets Manager
Add an Azure Key Vault Secrets Manager · Before You Begin · Visual Overview · Step 1: Create Azure Reader Role. Azure Portal;...
Read more >Certificates with Azure Key Vault and Nginx Ingress Controller
In Create a certificate, fill in the blanks. If you want to use a real domain, make sure you specify it in the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We saw that in the source code and also thought the default settings would support proxy (ultimately via
requests.Session
if we understand it correctly). We also tried setting the transport onSecretClient
explicitly without success.Hi @lundholmx , thanks for the feedback. We’ll take a look at this and get back to you asap.