Questions tagged [azure-keyvault]

Microsoft Azure Key Vault is a cloud-hosted service that allows applications to encrypt/decrypt data using (HSM stored) cryptographic keys and store and retrieve secrets.

Azure Key Vault helps safeguard cryptographic keys and secrets used by cloud applications and services. By using Key Vault, you can encrypt keys and secrets (such as authentication keys, storage account keys, data encryption keys, .PFX files, and passwords) by using keys that are protected by hardware security modules (HSMs). For added assurance, you can import or generate keys in HSMs (keys never leave the HSM boundary). The HSMs are FIPS 140-2 Level 2 validated.

Key Vault streamlines the key management process and enables you to maintain control of keys that access and encrypt your data. Developers can create keys for development and testing in minutes, and then seamlessly migrate them to production keys. Security administrators can grant (and revoke) permission to keys, as needed.

2719 questions
0
votes
1 answer

Creating a BASE64 encoded version of a RSA-SHA256 encrypted string in Azure Function C#

I'm creating an authorization flow in Microsoft Azure, currently using a Logic app (consumption), doing some code in an Azure function as well. For the flow to work I need to create a "Digest" header. The function code for that is pasted below. This…
0
votes
0 answers

Cosmos db RewrapClientEncryptionKeyAsync return Error occurred while decoding OAEP padding

I created a client encryption key using CreateClientEncryptionKeyAsync and didn't specify key veriosn in EncryptionKeyWrapMetadata. Read and Write data is fine. But after I added a new verion of key in keyvault and try to use this method…
SpritZhou
  • 56
  • 3
0
votes
1 answer

Fetch keyvault secrets and store them in app configuration as a reference

Azure services used: Keyvault App Configuration I was trying to store the secrets from keyvault that were created, on to app configuration. I was getting the below error and not sure on how to proceed. Kindly help me with your guidance. │ Error:…
0
votes
1 answer

KeyVault acess from AppServices different suscription

I tryig to acess to a KeyVault from a diffetent suscription resources , in this case an AppServices. I already give permision on the acces policies to the object (principal) id to get the secrets. But I'm recieving…
Ivan Fontalvo
  • 433
  • 4
  • 21
0
votes
1 answer

Azure Imported Certificate to Key Vault: Subject and SAN are Blank/Empty

I'm using Terraform to deploy a new certificate, from Certbot, for the application gateway to a website, in Azure. In the past, previous replacements of the certificate with a new one have worked fine. This time I got this error from Terraform: │…
Adam Winter
  • 1,680
  • 1
  • 12
  • 26
0
votes
0 answers

Using certificate installed on local machine to authenticate Azure Key Vault with Python?

I am trying to connect to Azure Key Vault with Python using a certificate installed on my local machine. I am using wincertstore to get the cert, but the problem is that the cert is not in the format that CertificateCredential wants, which is PEM or…
0
votes
1 answer

curl command not reading input correctly in shell script

I am trying to fetch a secret from an Azure Key Vault using curl in a Linux VM. My commands are: ACCESS_TOKEN=$(curl 'http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https%3A%2F%2Fvault.azure.net' -H…
user13436991
0
votes
1 answer

How to use properly Azure app configuration with key vault reference in a function app?

I have a problem with the Azure app configuration - key vault reference. Currently, I have an app configuration key (FunctionApp:Replication:Regions) with many values (asia, we, sae).So the connection is one to many. I added key-vault reference to…
0
votes
1 answer

Azure KeyVault scopes help for access denied error

I'm trying to access Azure KeyVault using the code snippets below. I've checked that the web app has all the permissions needed, like specifically adding all the cryptographic permissions for the web app under access policies for the key vault. The…
0
votes
1 answer

Azure Web App loses permissions on a keyvault secret when a new secret version is added

My .NET6 web app uses keyvault secret references in its configuration. The references are set like this: @Microsoft.KeyVault(SecretUri=https://myapp.vault.azure.net/secrets/My--Secret) The app is being deployed using Release pipelines. Deployment…
JustAMartin
  • 13,165
  • 18
  • 99
  • 183
0
votes
1 answer

Query to locate a secret

I have hundreds of keyvaults and they are named like ABC-DEV-001, ABC-TEST-002, etc... At times, I need to locate a secret say APIKey in all of them. How can I query with the name of a secret and find the keyvault name? I wonder whether it is…
Parth Sekar
  • 164
  • 8
0
votes
1 answer

Python script to read secrets from Azure Key Vault

I am trying to write a python script to read secrets from Azure Key Vault. I am facing an issue with authentication when using SecretClient class. My code is the below: from azure.identity import DefaultAzureCredential from azure.keyvault.secrets…
0
votes
1 answer

KQL queries to get total storage account used space in percentage

I am writing KQL queries to setup alerting mechanism in our environment. However we got blocked for few alerts. I need to get total used capacity of storage account in percentage, with below query I am able to get total used Capacity but not in…
ramesh reddy
  • 429
  • 2
  • 5
  • 12
0
votes
2 answers

Create Kubernetes Secrets from Azure Keyvault

I am trying to create kubernetes secrets by retrieving the secret data from azure keyvault. I know that there is the secrets store csi driver, but this plugin allows me to read secrets from KeyVault, and make them available as volume mounts only,…
Jerald Baker
  • 1,121
  • 1
  • 12
  • 48
0
votes
1 answer

Service principal to DECRYPT 'Always Encrypted Azure SQL DB' using certificate instead of client secret

I have a Azure SQL DB with always encrypted feature enabled using Azure Key Vault Key. I want to consume this from a Power BI report. So I'm using a Data Gateway in the middle, with ODBC connection and a Service principal (Client/Secret) who is able…
Gabo
  • 1
  • 1