cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

need to fetch secrets from key vault in my local

KVNARK
Honored Contributor II

Could you please look into this if I'm missing something. Getting the below error:

azure.core.exceptions.ServiceRequestError: Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.

Using below function for that.

def get_auth_creds(KVUri, keyVaultName, username, password):

print(" loading credentials for local system ")

credential = DefaultAzureCredential(connection_verify=False, exclude_shared_token_cache_credential=True)

client = SecretClient(vault_url=KVUri, credential=credential)

print("Retrieving your secret from {}.".format(keyVaultName))

user = client.get_secret(username).value

pwd = client.get_secret(password).value

return user, pwd

2 REPLIES 2

Anonymous
Not applicable

Hope everything is going great.

Just wanted to check in if you were able to resolve your issue. If yes, would you be happy to mark an answer as best so that other members can find the solution more quickly? If not, please tell us so we can help you. 

Cheers!

KVNARK
Honored Contributor II

@Vidula Khannaโ€‹ Its done. Thanks!

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group