Use azure blob storage to store KeePass files that can be shared among multiple users within your organization.
I created a plugin for KeeWeb that extends KeeWeb with the ability to load KeePass files stored within Azure Blob storage.
You can find this on GitHub
To setup this plugin you will need to configure a few settings within the Azure Portal.
Register your application on Azure Active Directory
- Sign in the Azure Portal
- Select Azure Active Directory
- Under Manage, select App Registrations > New registration
- Enter a unique name for your application.
- Under Supported Account Types choose ‘Accounts in this organizational directory only (Default Directory only - Single tenant) ‘
- Under redirect URI, select Single-page application (SPA), enter the path to the web application that was setup earlier in the form https://YOUR_SERVER_HERE/oauth-result/azure.html
- Select Register.
- On the app overview page, note the Application (client) ID value, we will need this for later use.
- On the app overview page, note the Directory (tenant) ID value, we will need this for later use.
- Under Manage, select Authentication.
- In the Implicit grant and hybrid flows section, select ID tokens. ID tokens are required because this app must sign in users and call an API.
- Select Save.
- Under Manage, select API permissions.
- Select Add a permission, select Azure Storage, pick user_impersonation.
- Click Grant admin consent for Default Directory.
Grant access to the Storage Account
- Storage Account
- Select Access Control (IAM)
- Press Add > Role Assignment
- Assign access to the users or groups that can access the files in this container, give each entry the Role ‘Storage Blob Data Contributor’ if you want them to have the ability to modify the data in the container.
- Press Save.
Configure CORS to enable the web application to make requests to the Storage Account API.
- Open the Storage Account in Azure Portal
- Select Settings > Resource sharing (CORS)
- Add the URL for the web application, SELECT ALL for the allowed methods, enter * for the Allowed headers, enter * for the Exposed headers.
- Press Save
Enter configuration information in KeeWeb
Modify the file default-app-settings.js to include the following keys:
azure: true,
azureClientId: 'your_client_id',
azureTenantId: 'your_tenant_id',
azureBlobContainer: 'https://your_blob_store.blob.core.windows.net'
azureClientId - Replace your_client_id with the Application (client) ID for the application you saved earlier.
azureTenantId - Replace your_tenant_id with the Directory (tenant) ID for the application you saved earlier.
azureBlobContainer - Set to the either the URL for the storage account root or optionally include the path to the container as well.