MobileTrack.Common.KeyVault Namespace

Implementation of the ORM for Azure KeyVault. Using the IAzureKeyVault interface through dependency injection, we can use this to retrieve keys and secrets from Azure KeyVault. These keys/secrets are used for connection strings towards other Azure services like the Azure Blob Storage or the Azure Cosmos Database.

Classes

AzureKeyVault Singleton interface for Azure AzureKeyVault usage

This interface is used to retrieve secrets from the Azure Key Vault. In the codebase nor the config files,
no connection strings, passwords or other sensitive information is being stored.
Instead, the Azure Key Vault is used to store these secrets. This interface is used to retrieve these secrets.
The only thing the configuration files contain are the URI to the Azure Key Vault.
Azure itself contains access policies to allow the Nexus environment to access the Key Vault.
For developers during debugging, one has to be logged in to Azure to access the Key Vault.
This can be done by going to Tools -> Options -> Azure Service Authentication in Visual Studio and logging in there.

The KeyVault is also used to store ApiTokenDto secrets belonging to users.
KeyVaultSetup Contains a method to set up the Azure KeyVault for the application.

Interfaces

IAzureKeyVault Singleton interface for Azure AzureKeyVault usage

This interface is used to retrieve secrets from the Azure Key Vault. In the codebase nor the config files,
no connection strings, passwords or other sensitive information is being stored.
Instead, the Azure Key Vault is used to store these secrets. This interface is used to retrieve these secrets.
The only thing the configuration files contain are the URI to the Azure Key Vault.
Azure itself contains access policies to allow the Nexus environment to access the Key Vault.
For developers during debugging, one has to be logged in to Azure to access the Key Vault.
This can be done by going to Tools -> Options -> Azure Service Authentication in Visual Studio and logging in there.

The KeyVault is also used to store ApiTokenDto secrets belonging to users.