The DNN Key Master requires a few things outside of DNN to be properly configured
- Azure Account
- Azure App Registration
- Azure Key Vault
You will need to create an Azure Account, which is easily done at https://azure.microsoft.com/en-us/.
The DNN Key Master relies heavily on an Azure App Registration to communicate with the Azure Key Vault. This provides a powerful security mechanism in case your website is compromised. You can easily go and turn off access to your key vault and no one will be able to access the keys anymore. More details on this can be found at our (I've Been Compromised Guide)[COMPROMISED-WEBSITE.md]
Create your App Registration:
- Log into the Azure Portal https://azure.microsoft.com/en-us/
- Select
Azure Active Directory
- In the Azure Active Directory Blade search and select
App Registrations
- Create a new registration
- Name: this is anything you want it to be
- Supported Account Types: Select 'Accounts in this organizational directory only'
Select the Register button at the bottom and Azure will start creating your App Registration
Once your app has been created you will need to gather your secrets to be used in the DNN Key Master.
- Navigate to the
Azure Active Directory
blade and selectApp Registrations
- Select the App you created earlier
Now you can access the following identifiers:
- Application (Client ID)
- Directory (Tenant ID)
Copy these down for use later.
Create secret key:
- Select
Certificates & Secrets
- Select
New Client Secret
Save the generated client secret as this is the master password for your app registration, without nothing will work!
Creating the Azure Key Vault and providing access is the last step for configuring azure
- Log into the Azure Portal https://azure.microsoft.com/en-us/
- Click Add New Resource
- Search for
Key Vault
- Specify the name and resource group of your Key Vault and select create
Copy down your Key Vault URL as you will need that to configure the DNN Key Master.
- Navigate to the
Key Vault
blade that you just created - Search and select
Access Policies
- Select
Add New
- Under
Select Principle
search for the name you specified earlier for your App Registration and click on Select - Under Secret Permissions, select:
Get
,List
,Set
andDelete
- Select OK
- Select Save
For the DNN Key Master to function correctly you will need to have the following permissions for your App Registration
- Get
- List
- Set
- Delete
Once Azure is all configured you can install the latest build and start protecting your application secrets
- Get the latest installer
- Install the extension into your DNN Website
- Using the persona bar go to Settings -> Key Master
- Enter all the secrets you obtained from creating everything in Azure
- ClientID or ApplicationID (they are the same)
- DirectoryID or TenantID (they are the same)
- Client Secret
- Key Vault URL
- Secret Name - This is a unique name you come up with that prefixes your secrets in the key vault
Once everything is entered you can test your secrets.
If everything works, go ahead and click the Start button