Passwordless database authentication for OpenMetadata: what it removes and when to use it
If your platform team runs OpenMetadata on AWS or Azure and stores a static password for its metadata database in a configuration file, a Kubernetes secret or a deployment variable, cloud-issued tokens can replace that password. On RDS, the database user can authenticate with a short-lived IAM token, and on Azure Database for PostgreSQL or MySQL flexible servers, the identity can authenticate with a Microsoft Entra token. Either way, the long-lived credential stops existing as a value your team has to store, rotate and protect. OpenMetadata connects to its own database (MySQL or PostgreSQL) through its server and ingestion components, so the work is to confirm that the deployed version can take a token in place of a password, then wire the cloud identity to the database user with the minimum rights it needs.
The effort is worth it when the metadata database holds sensitive lineage, ownership and classification data, when your security baseline already forbids standing database passwords for production systems, or when a compliance assessment asks how database credentials are rotated and who can read them. It is less compelling for a small proof-of-concept deployment where the database is not reachable outside the cluster. Before you start, confirm the exact IAM or Entra configuration keys, the token lifetime, the required authentication plugin or driver settings and the TLS requirements against the current OpenMetadata and cloud provider documentation, because the research behind this page does not include them. Also check that your ingestion workers, which run separately, can obtain tokens from the same identity model, since a server that connects passwordlessly while its ingestion jobs still use a stored password leaves the static secret in place.
How the OpenMetadata server obtains a database token
The flow starts when the OpenMetadata server or an ingestion worker needs a connection to the metadata database. The workload presents its cloud identity, an IAM role on AWS, a Kubernetes service account bound to a workload identity, or a Microsoft Entra managed identity on Azure, to the cloud token service, which issues a short-lived database token. That token is passed as the password on the database connection, so no static password is stored in configuration. Check that each identity is scoped to a single database user and that the token lifetime and refresh behavior are confirmed in your own environment.
Workloads exchange a cloud identity for a short-lived database token across the trust boundary.
AWS RDS IAM or Azure Entra: which path fits your estate
RDS IAM database authentication fits OpenMetadata when the metadata database runs on Amazon RDS and the OpenMetadata server and ingestion workers run on EKS or EC2 with an IAM role attached. The workload requests a short-lived authentication token from IAM and presents it in place of a stored database password, so no static password needs to live in configuration. The workload identity is the control point, which makes the IAM policy the main thing your security team reviews.
- Hosting fit: EKS workloads using IAM Roles for Service Accounts or EC2 hosts using an instance profile. Confirm every pod or host that opens a database connection, since each one needs the role.
- IAM policy: Grant
rds-db:connectonly on the database user resource for the OpenMetadata database account, not on the whole instance. - Database user setup: Create the database user and its IAM authentication grant according to AWS documentation for your engine and version. Confirm the exact grant statements before you run them in production.
- Token refresh: Tokens are short-lived and generated per connection. Test how your connection pool recycles and expires connections, and confirm that new connections request fresh tokens during long-running ingestion.
- Encryption: AWS requires encrypted connections for IAM authentication, so confirm the SSL mode and CA bundle in the OpenMetadata database configuration.
Before you change the configuration, verify the token validity window in AWS documentation and confirm that your OpenMetadata release and database engine version support this path.
Microsoft Entra authentication fits OpenMetadata when the database is an Azure Database for PostgreSQL flexible server and the workloads run on AKS or Azure virtual machines. A managed identity or workload identity supplies the Entra token, and an Entra group can be mapped to a database role so that access follows group membership instead of individual database grants. Group-based mapping also gives your identity team one place to add or remove access.
- Hosting fit: AKS workloads using workload identity or virtual machines using a managed identity. Confirm which identity each OpenMetadata component uses, including ingestion.
- Server configuration: Enable Entra authentication on the flexible server and set an Entra administrator. Confirm whether password authentication stays enabled alongside Entra, and decide whether it should.
- Group as database role: Create the database role for the Entra group, add the managed identity to that group, and grant the role only the privileges OpenMetadata needs.
- Token refresh: Entra access tokens expire. Confirm that the database driver and connection pool fetch new tokens for new connections, and test idle and long-running ingestion sessions.
- Release support: Confirm whether your OpenMetadata release accepts a token as the database credential for this path. Check the OpenMetadata security docs and test in a non-production environment first.
Before you cut over, verify the PostgreSQL version against OpenMetadata's documented database prerequisites and confirm the token handling with Microsoft's documentation for your server.
Mixed estates are common when OpenMetadata runs on premises or in one cloud while the database runs in another, or when the database sits behind private networking that the workload cannot reach directly. In these cases, neither native path may apply as written, so the team needs a documented decision for each environment before any password is removed. The main risk is ending up with two or three identity methods that nobody has reviewed.
- Cross-cloud access: An RDS database reached from OpenMetadata hosted in Azure, or the reverse, needs a credential path that both clouds and your identity team support. Confirm this with the database vendor and your identity team before design work starts.
- Network reachability: Private endpoints, VPN links and firewall rules must reach the database from every OpenMetadata component, including ingestion workers. Test each path separately.
- Bare metal and self-managed databases: OpenMetadata's bare metal documentation lists supported database engines and versions, including MySQL 8.0.42 or later and PostgreSQL 15 or later. Confirm that your driver and chosen token method work with those versions.
- Interim credential control: If a password must remain for now, store it in a secrets manager, restrict who can read it, and set a rotation schedule that your operations team can run.
- Decision record: Write down which identity method each environment uses, who owns it and how it is reviewed, so auditors see a single approach per estate.
Before you commit to a design, confirm each connection path end to end in a test environment, including token refresh and failover.
Options for removing static database passwords
This table compares the main ways to stop storing a static database password for OpenMetadata: RDS IAM authentication, Microsoft Entra authentication on flexible servers, a secrets manager that rotates the password, and keeping a static password. Read each row for where the option applies and what your team still runs, then check the last column against your cloud and identity setup. The main takeaway is that the cloud-native options remove the password from configuration only if OpenMetadata's database driver and deployment support the token flow, so confirm that before you commit.
| Option | Where it applies | What the team still manages | When it fits |
|---|---|---|---|
| RDS IAM authentication | Amazon RDS or Aurora databases that OpenMetadata connects to over IAM database authentication | IAM roles and policies that grant database connect rights, token refresh in the client, TLS settings, and the database user mapped to IAM | AWS deployments where the OpenMetadata workload can assume a role and the database engine and driver support IAM tokens |
| Microsoft Entra authentication for flexible servers | Azure Database for PostgreSQL or MySQL flexible servers configured for Entra sign-in | Entra identity or managed identity for the workload, the database role mapped to that identity, token acquisition and renewal, and admin assignments | Azure deployments where workload identity is available and the database engine version and driver support Entra tokens |
| Secrets manager with password rotation | AWS Secrets Manager, Azure Key Vault or another vault that holds a database password and rotates it | Rotation function or configuration, rotation schedule, access policies on the secret, and a restart or refresh path for OpenMetadata when the password changes | Teams that must keep a password-based login but want it rotated and kept out of configuration files |
| Static database password | Any database engine, including self-managed PostgreSQL or MySQL | Password creation, storage in a secrets store, manual or scheduled rotation, and reviewing who can read the secret | Non-cloud databases, or short-term setups where no supported token flow exists yet |
Setting up passwordless database access for OpenMetadata
This sequence moves OpenMetadata's database login from a stored password to a short-lived token issued by AWS or Azure. Each step ends with a check so the platform team can confirm the change before retiring the old credential.
Confirm the OpenMetadata version and deployment type
The platform engineer records the OpenMetadata version, the deployment type (Kubernetes on EKS or AKS, or bare metal), and the database engine and version. Bare metal installs need Java 21 and MySQL 8.0.42 or later, or PostgreSQL 15 or later, so confirm the engine meets those minimums. Read the release notes for your version and confirm that its documentation describes token-based database login for your engine, because support can differ by version. Done when the record is filed with the change ticket and the documented login method for that version is confirmed in writing.
Enable IAM or Entra authentication on the database
The cloud administrator turns on the managed identity login feature on the database server. On Amazon RDS, this is IAM database authentication on the instance. On Azure Database flexible servers, this is Microsoft Entra authentication, along with an Entra administrator for the server. Confirm that the chosen engine and version support the feature in the provider's current documentation. Done when an administrator can request an authentication token with the cloud CLI or SDK and sign in with it from a test client.
Create the database role or identity mapping
A database administrator creates a database user that maps to the identity OpenMetadata will use. On RDS, this is a database user set up for IAM authentication, with the IAM policy that allows the instance's connect action attached to the OpenMetadata role. On Azure, this is a database user mapped to the Entra managed identity or service principal. Use the provider's exact syntax for your engine and keep the mapping in version control. Done when the mapped identity can obtain a token and the database user appears in the server's user list with the expected authentication method.
Grant only the schema privileges OpenMetadata needs
The database administrator grants privileges on the OpenMetadata database and schema only, with no server-wide or superuser rights. Decide early whether schema migrations during upgrades run under the same identity or a separate, more privileged one, and confirm this against the OpenMetadata deployment and upgrade documentation. Keep the migration identity off the running server where possible. Done when a test query as the role succeeds on the OpenMetadata schema and fails on another database on the same server.
Point the database configuration at token login
The platform engineer updates the database connection settings so the server requests a token instead of reading a password. Remove the static database password from configuration files, environment variables, Helm values and Kubernetes secrets. Confirm the exact configuration keys and the driver options for your version in the OpenMetadata security and deployment documentation, since names vary by release. Also confirm how the connection pool refreshes expired tokens, because a token that expires without a refresh will break long-running connections. Done when a search of the deployment configuration finds no static database password for this connection.
Verify startup, migrations and the test connection
The platform engineer restarts the OpenMetadata server and watches the logs until the server reports a successful start and the schema migrations finish. Then run the database connection check in the server and a test connection from the UI or the ingestion framework. Keep the previous password-based credential in place until these checks pass, then revoke it. Done when the server starts, the migration log shows no errors, the test connection succeeds, and a deliberately wrong or revoked role produces a clear authentication error.
Security and operational risks of token-based database access
IAM and Entra tokens remove static passwords, but they move the risk into token lifetime, permission scope, account separation and logging. The cards below cover the checks to make before the connection goes into production, and each one is something to confirm in your own environment with your cloud team and OpenMetadata deployment.
Token expiry and connection refresh
IAM and Entra authentication use short-lived tokens rather than a password that never changes. OpenMetadata and its ingestion workers must obtain a fresh token before the old one expires, or new connections will fail in the middle of a run. Confirm how your deployment type generates and refreshes tokens, test a run that spans the token lifetime, and check how failures appear in logs so they are not mistaken for network faults.
OpenMetadata security docsOver-broad IAM and Entra permissions
The role that a token maps to must be granted only the database login and the read access that the connector needs. A broad cloud role, such as one that allows administrative actions on every database in an account or tenant, turns a leaked token into a wider exposure than a single database password would create. Review the mapping during design, record the exact grants, and confirm the scope with your cloud security team before approval.
Migration account rights
Schema changes and upgrades may need a higher privilege level than the runtime account. If the same identity runs both jobs, the scheduled connector process holds rights it does not need every day. Keep the migration identity separate, grant it only for the upgrade window, and confirm with the OpenMetadata upgrade notes which statements the release requires before you choose the grant set.
Audit logging of database logins
Token-based logins only help an investigation if the database and the cloud platform record them. Check that the database engine's audit or connection logs capture the role used, the source address and the time, and that those records reach your central log store. Without this, a connector login from an unexpected host can look identical to a normal scheduled run. Confirm the logging options with your provider's documentation.
Static password left enabled
Removing the password from the OpenMetadata configuration does not remove it from the database. If a local database user with a password still exists for the same connector, anyone who holds that password can still sign in, and the token-based path gives a false sense of control. Confirm that password login is disabled for the connector role, rotate or delete any stored value in configuration or secrets, and verify the result with a failed login test.
Trust in the cloud identity provider
Access now depends on the health and configuration of AWS IAM or Microsoft Entra, not only on the database. A compromised administrator in either service, a change to a trust policy or an expired managed identity can stop ingestion or grant access. Document who can change the identity's role or federated trust, require review for those changes, and confirm how your team responds if the provider account itself is compromised.
Questions teams ask before changing database authentication
How much effort does passwordless database authentication take for OpenMetadata?
Effort depends less on OpenMetadata itself and more on how many database connections, cloud roles and environments are involved. The work splits into four parts: granting a cloud identity (an IAM role or a managed identity) the right database permissions, enabling the IAM or Entra authentication method on the database server, changing the OpenMetadata server and ingestion configuration so tokens replace stored passwords, and testing each environment end to end. Each additional database or environment repeats most of these steps. Ask any partner to break the quote down by these parts and by environment, and to state which items are one-time setup and which are ongoing token handling and renewal checks.
Can an in-house team set up IAM or Entra database authentication alone?
A team that already runs its own RDS or Azure Database for PostgreSQL and manages cloud identity can usually do this internally, provided it has someone who can read the OpenMetadata deployment docs and test ingestion carefully. The harder part is usually coordination: the change touches cloud IAM, database roles, Kubernetes or bare metal configuration and the ingestion pipelines at the same time. Before deciding, confirm that your team has the database engine version and authentication method your platform supports, and that someone owns the rollback plan. A fixed-scope engagement from DeployOpen can cover planning, implementation and testing, with the handover documented for your team.
What does this work need from our cloud and database administrators?
Expect to need three groups of people. Cloud administrators must create or approve the identity that OpenMetadata or its ingestion jobs will assume, and confirm the trust policy or federated identity setup. Database administrators must create database roles mapped to that identity, grant the least privilege needed for metadata extraction, and enable the IAM or Microsoft Entra authentication setting on the server. OpenMetadata platform owners must update configuration and test ingestion. Agree on who approves each change, where the configuration lives and how access reviews will cover the new identities before the work starts.
How long does a passwordless rollout take across our estate?
The honest answer is that duration follows the estate. A single database in one account with a working OpenMetadata deployment moves much faster than a set of databases spread across several accounts, subscriptions and environments with separate approval chains. The main variables are the number of connections, how many environments need the change, whether cloud and database changes need change-advisory approval, and how many ingestion pipelines must be retested. This page does not supply a duration figure. Ask a partner for a timeline tied to a written list of connections and environments, and for the milestones that each approval step adds.
Does passwordless authentication replace a secrets manager for connector credentials?
No. Passwordless database authentication removes the static database password for the connection that OpenMetadata uses, but other credentials remain. Connector credentials for sources that do not support IAM or Entra authentication, bot tokens and other secrets still need a secure home. Keeping those out of the OpenMetadata database is covered by a separate secrets manager setup. Plan both together so you know which credentials remain, where each is stored and who can read them, and so your access reviews cover each store.
What should we ask a partner for in a fixed-scope quote?
Ask for a written scope that lists each database and cloud account or subscription, each OpenMetadata environment, the identities and roles to be created, and the database versions and authentication method for each engine. The quote should separate planning, implementation, testing in non-production environments, production cutover, documentation and handover. Ask which items are one-time and which recur, such as access reviews or token-handling checks after upgrades. Confirm the acceptance tests, the rollback procedure and what happens if a dependency, such as a database upgrade, changes the scope. DeployOpen does not publish a price list, so the quote follows from this written scope.
What breaks if passwordless authentication is set up incorrectly?
The most common failures are ingestion jobs that cannot obtain a token, database roles that lack the permissions needed for metadata extraction, and tokens that expire during long-running jobs. Some failures appear only in production schedules, not in a quick manual test. Before cutover, run each ingestion pipeline with the new identity, check the logs for authentication errors and confirm that a failed token request does not silently fall back to a stored password. Keep the old credential available only for the rollback window, then remove it and record that removal in your change log.
How DeployOpen scopes and delivers passwordless database access
DeployOpen plans and implements OpenMetadata inside your own AWS or Azure accounts, including the move from static database passwords to IAM or Microsoft Entra authentication. We scope the database identity model, build and test the connection path in your environment, and hand over the configuration and runbooks your platform team needs to operate it.
How we scope
- Written scope lists each OpenMetadata service, database engine and cloud account covered by the passwordless change.
- We map which pods or hosts hold database credentials today and which identity should replace each one.
- The scope names who approves IAM role or managed identity changes, and which environments are in or out.
How we build
- We configure the RDS IAM or Azure Entra token flow for the OpenMetadata server and ingestion components you run.
- We confirm the token lifetime, refresh behavior and TLS settings against your OpenMetadata version and database service.
- We test failover, token expiry and permission denial paths in a non-production environment before any cutover.
How we hand over
- You receive the identity policies, database role mappings and configuration changes as versioned files in your repository.
- Documentation covers the cutover steps, rollback path and how to rotate or revoke access without a password reset.
- A walkthrough with your platform and security teams covers what to monitor and who owns each identity.
How we support
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- Upgrades that change database drivers or OpenMetadata versions are re-tested against the passwordless path before rollout.

