Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Azure Key Vault - In-Memory Caching with automatic Service Bus authentication key rolling

License

Notifications You must be signed in to change notification settings

tomkerkhove/demo-azure-key-vault-key-rotation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure Key Vault - In-Memory Caching with automatic Service Bus authentication key rolling

Build Status

Demo on how you can use in-memory caching to avoid hitting Azure Key Vault every time. It is also aware when an authentication key has been revoked and automatically gets the latest secret from Key Vault.

  • /api/v1/orders - Will queue a message on a Service Bus Queue
    • Will retrieve Service Bus connection string for specific auth policy from Key Vault
    • Secret will be stored in-memory and metrics provide insights in cache hit/miss ratio
  • Azure Automation is automatically rolling the authentication keys every day by running scripts/Rotate-ServiceBusKeys.ps1

Key Rolling scenario

About

Azure Key Vault - In-Memory Caching with automatic Service Bus authentication key rolling

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published