AZURE
KEY VAULT
Malin De Silva
MVP – Microsoft Azure
Azure and Office 365 Solutions Consultant
Challenges with configurations
Team
Development
QA Testing
User
Acceptance
Testing
Production
◦ Changes when moving through
environments
◦ Configurations shared with multiple
people
◦ Mostly stored in plain text
◦ No way to monitor the usage
What is Azure Key Vault?
◦ Centralize Application Secrets
◦ Securing Storage of Keys and Secrets
◦ Monitor Access and Use
◦ Simplified Administration
◦ Simplified integration
◦ Secrets
Store secured access tokens, passwords and API Keys
◦ Keys
Encryption keys
◦ Certificates
SSL Certificates for Azure services
Terminology
◦ HSM - A hardware security module (HSM) is a physical computing device that safeguards and manages
digital keys for strong authentication and provides cryptoprocessing.
◦ EC Keys – Elliptic Curve Cryptography, Based on Algebraic Structure of elliptic curves over a finite field
◦ RSA Keys - Rivest–Shamir–Adleman Generates a public key based on 2 prime numbers. Prime numbers
kept secret. Public key shared for encryption.
CREATING AZURE
KEY VAULT
DEMONSTRATION
What is Managed Identity?
Azure AD App Registration
Azure Key Vault Azure App Service
Client ID and Client Secret
CONNECTING TO
VISUAL STUDIO
DEMONSTRATION
Azure Hosted Scenario
Can Integrate with App
Settings
Externally call with token
Thank You
Malin De Silva
malindesilva@live.com
MVP – Microsoft Azure
Azure and Office 365 Solutions Consultant

Azure Key Vault

  • 1.
    AZURE KEY VAULT Malin DeSilva MVP – Microsoft Azure Azure and Office 365 Solutions Consultant
  • 2.
    Challenges with configurations Team Development QATesting User Acceptance Testing Production ◦ Changes when moving through environments ◦ Configurations shared with multiple people ◦ Mostly stored in plain text ◦ No way to monitor the usage
  • 3.
    What is AzureKey Vault? ◦ Centralize Application Secrets ◦ Securing Storage of Keys and Secrets ◦ Monitor Access and Use ◦ Simplified Administration ◦ Simplified integration ◦ Secrets Store secured access tokens, passwords and API Keys ◦ Keys Encryption keys ◦ Certificates SSL Certificates for Azure services
  • 4.
    Terminology ◦ HSM -A hardware security module (HSM) is a physical computing device that safeguards and manages digital keys for strong authentication and provides cryptoprocessing. ◦ EC Keys – Elliptic Curve Cryptography, Based on Algebraic Structure of elliptic curves over a finite field ◦ RSA Keys - Rivest–Shamir–Adleman Generates a public key based on 2 prime numbers. Prime numbers kept secret. Public key shared for encryption.
  • 5.
  • 6.
    What is ManagedIdentity? Azure AD App Registration Azure Key Vault Azure App Service Client ID and Client Secret
  • 7.
  • 8.
    Azure Hosted Scenario CanIntegrate with App Settings Externally call with token
  • 9.
    Thank You Malin DeSilva malindesilva@live.com MVP – Microsoft Azure Azure and Office 365 Solutions Consultant

Editor's Notes

  • #8 //Management Shell Code az login $keyVaultName = "KeyVaultTest3" az account set --subscription "324a2a89-dc88-4e72-8c5c-291e75ae6fd9" az ad sp create-for-rbac -n $keyVaultName --sdk-auth $clientID = "" //Get from above az keyvault set-policy -n $keyVaultName --spn $clientID --secret-permissions delete get list set --key-permissions create decrypt delete encrypt get list unwrapKey wrapKey //C#.NET Code string clientId = ""; string clientSecret = ""; KeyVaultClient kvClient = new KeyVaultClient(async (authority, resource, scope) => { var adCredential = new ClientCredential(clientId, clientSecret); var authenticationContext = new AuthenticationContext(authority, null); return (await authenticationContext.AcquireTokenAsync(resource, adCredential)).AccessToken; }); await kvClient.SetSecretAsync("kv_url", "Key1", "Value1"); var keyvaultSecret = await kvClient.GetSecretAsync("kv_url", "Key1") .ConfigureAwait(false);