Skip to main content

Security Best Practices

A default OpenMetadata installation is designed to get you started quickly, not to run in production. Apply the following practices to reduce the risk of exposing credentials, intercepting traffic, or losing metadata.

Store Secrets in a Secrets Manager

By default, OpenMetadata encrypts the credentials of your connections, such as database passwords and API tokens, and stores them in its own database. A secrets manager keeps these credentials outside the OpenMetadata database. You can then control access to them, audit their use, and rotate them with the tools your organization already uses. OpenMetadata supports AWS Secrets Manager, AWS Systems Manager Parameter Store, Azure Key Vault, Google Cloud Secret Manager, and Kubernetes Secrets. For more information, see Secrets Manager.

Use a Passwordless Database Connection

The OpenMetadata server connects to its MySQL or PostgreSQL database with a username and password by default. On a managed database service, use the identity of the server instead, so that there is no long-lived database password to store, leak, or rotate:
  • Amazon RDS: Authenticate with AWS IAM. For more information, see RDS IAM Auth.
  • Azure Database for MySQL or PostgreSQL: Authenticate with Microsoft Entra ID and a managed identity. For more information, see Azure Passwordless Auth.

Enable SSL on the Server

Without SSL, passwords, tokens, and metadata travel in plain text between browsers, ingestion clients, and the server. Serve OpenMetadata over HTTPS, either on the server itself or on a reverse proxy or load balancer in front of it. For more information, see Enable SSL at the OpenMetadata Server and Enable SSL with Nginx.

Back Up the Database Daily

The OpenMetadata database holds all your metadata, including descriptions, lineage, ownership, and classifications. Back it up every day, so that you can recover from a failed upgrade, data corruption, or an incident with at most one day of changes lost. For more information, see Backup & Restore Metadata. When you plan the backups:
  • Store the backups in a different location from the database, with restricted access. They contain your metadata and the encrypted credentials of your connections.
  • Keep the Fernet key (FERNET_KEY) in a safe place separate from the backups. OpenMetadata needs the same key to decrypt the stored credentials after a restore.
  • Test a restore regularly, so that you know the backups work before you need them.

Rotate the JWT Signing Keys Monthly

OpenMetadata signs user sessions, personal access tokens, and bot tokens with one RSA key pair. Rotating the key pair every month limits how long a leaked key or token stays usable. Replace the default keys shipped with OpenMetadata before you go to production. A rotation causes a short outage. Users must sign in again, and every personal access token must be created again. Schedule the rotation in a maintenance window and tell your users in advance. For more information, see Rotate the JWT Signing Keys.