Azure - Enable Passwordless Database Backend Connection
By Default, OpenMetadata supports basic authentication when connecting to MySQL/PostgreSQL as Database backend. With Azure, you can enhance the security for configuring Database configurations other the basic authentication mechanism. This guide will help you setup the application to use passwordless approach for Azure PaaS Databases (preferrably Azure Database for PostgreSQL - Flexible Server and Azure Database for MySQL - Flexible Server).
Prerequisites
This guide requires the following prerequisites -
- Azure Database Flexible Server enabled with Microsoft Entra authentication
- Azure Managed Identities
- Azure Kubernetes Service (Enabled with Workload Identity) or Azure VM
- OpenMetadata Application Version
1.5.9
and higher
If you are looking to enable Passwordless Database Backend Configuration on Existing OpenMetadata Application hosted using Azure Cloud, you need to create perform the following prerequisites -
- Create Managed Identity from Azure Portal
- Create a SQL User for Managed Identity in Azure Databases
- Assign Existing OpenMetadata Database Tables Ownership to Managed Identities created in above step
Enabling Passwordless connections with OpenMetadata
Configure your Helm Values for Kubernetes Deployment like below -
In the above code snippet, the Database Credentials (Auth Password Kubernetes Secret) is still required and cannot be empty. Set it to dummy / random value.
Install / Upgrade your Helm Release with the following command -
For further reference, checkout the official documentation available in the below links -