Who gets into OpenMetadata
and with which role.
Six scenarios: changing the administrator's password without breaking the service registration, login through LDAP or Active Directory, validating the directory certificate, who gets in and with which role, and changing the authentication after the first installation. Each one covers: the chart default, what changes in the cluster, and the values file commented line by line.
The tdp-openmetadata chart starts OpenMetadata with local login and an initial administrator with a temporary password. Corporate login (LDAP or Active Directory), the directory certificate and the roles by group are turned on in the values file, and the chart reapplies this configuration on every server start, so that the values file is always the reference.
Your environment
If you fill in your environment details here, the examples and commands on the page use what you entered. The namespace, the release name and the values file are your choices, not the chart's.
Scenarios
- 1 · Initial credentials
- 2 · Login through LDAP
- 3 · Active Directory
- 4 · TLS with the directory
- 5 · Roles and groups
- 6 · Change the authentication
Change the temporary password and keep the registration Job working.
OpenMetadata started with the initial administrator admin@open-metadata.org and the temporary password ChangeMe!T3c, the same as the other TDP charts. You will change it in the UI, and you need the service registration Job to keep working: it logs in to the API with the credentials in datasourcesIntegration.openmetadata.auth, which do not follow the change on their own. These credentials do not change any password in OpenMetadata: they only tell the Job which one to use.
Administrator created by initialAdmins, in the user:password format. The password only applies when the user is created. The Job uses admin@open-metadata.org with the temporary password written in the values file, and the Helm output shows these credentials.
If the Job credentials keep the old password, it fails on the next install or upgrade. With no service enabled, the Job ends before the login and the change does not affect it.
The password the Job uses
Where the password the Job uses is kept
- Who logs in. Local accounts: the initial administrator and whoever signs up through the UI. Chart default:
local accounts, with self-signup. - OpenMetadata server. Validates the login against the accounts stored in the metadata database. Chart default:
basic. (tdp-openmetadata.openmetadata.config.authentication.provider) - Stored copy of the configuration. The server stores authentication and authorizer in the database. The chart deletes this copy before every start, and the server stores again what is in the values. Chart default:
synchronization on. (tdp-openmetadata.syncSecurityConfigFromValues) - Service registration Job. Logs in to the API with datasourcesIntegration.openmetadata.auth to register the enabled services. These credentials do not change any password in OpenMetadata: they have to follow the administrator's password. Chart default:
admin@open-metadata.org, with the temporary password in the file. (datasourcesIntegration.openmetadata.auth)
Where the password the Job uses is kept: In the values file (default)
- Who logs in. Local accounts: the initial administrator and whoever signs up through the UI. Chart default:
local accounts, with self-signup. - OpenMetadata server. Validates the login against the accounts stored in the metadata database. Chart default:
basic. (tdp-openmetadata.openmetadata.config.authentication.provider) - Stored copy of the configuration. The server stores authentication and authorizer in the database. The chart deletes this copy before every start, and the server stores again what is in the values. Chart default:
synchronization on. (tdp-openmetadata.syncSecurityConfigFromValues) - Service registration Job. Logs in to the API with datasourcesIntegration.openmetadata.auth to register the enabled services. These credentials do not change any password in OpenMetadata: they have to follow the administrator's password. Chart default:
admin@open-metadata.org, with the temporary password in the file. (datasourcesIntegration.openmetadata.auth)
Where the password the Job uses is kept: In a Secret
- Who logs in. Local accounts: the initial administrator and whoever signs up through the UI. Chart default:
local accounts, with self-signup. - OpenMetadata server. Validates the login against the accounts stored in the metadata database. Chart default:
basic. (tdp-openmetadata.openmetadata.config.authentication.provider) - Stored copy of the configuration. The server stores authentication and authorizer in the database. The chart deletes this copy before every start, and the server stores again what is in the values. Chart default:
synchronization on. (tdp-openmetadata.syncSecurityConfigFromValues) - Service registration Job. Logs in to the API with datasourcesIntegration.openmetadata.auth to register the enabled services. These credentials do not change any password in OpenMetadata: they have to follow the administrator's password. Chart default:
admin@open-metadata.org, with the temporary password in the file. (datasourcesIntegration.openmetadata.auth)
In the values file. After changing the password in the UI, write the new password in the Job block. The password stays in the values file and appears in the Helm output.
1datasourcesIntegration:2openmetadata:3 auth:4 provider: "basic"5 username: "admin@open-metadata.org"6 password: "<PASSWORD>"
The Job block sits at the root of the values file, not under tdp-openmetadata.
- At the root (linha 1). The Job block sits at the root of the values file, not under tdp-openmetadata.
- The new password (linha 6). The same one you set in the UI. This value does not change the password in OpenMetadata.
In a Secret. The Job reads the password from a Secret in the release namespace, and the values file holds only the Secret name and key.
1datasourcesIntegration:2openmetadata:3 auth:4 provider: "basic"5 username: "admin@open-metadata.org"6 passwordSecret:7 enabled: true8 name: "<SECRET_NAME>"9 key: "<SECRET_KEY>"
With enabled: true, set the Secret name and key. The Secret must exist in the release namespace.
- passwordSecret (linha 6). With enabled: true, set the Secret name and key. The Secret must exist in the release namespace.
Change the password in the UI
The temporary password is for testing only.
Log in as admin@open-metadata.org, open the user menu and choose Change Password.
Create the Secret with the new password
Only with the password in a Secret. With the password in the file, skip this step.
kubectl -n <NAMESPACE> create secret generic <SECRET_NAME> \
--from-literal=<SECRET_KEY>=<PASSWORD>
Apply it to the release
helm upgrade recreates the Job, which registers the services again with the new password.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-openmetadata \
--version 3.0.3 \
-n <NAMESPACE> \
-f <VALUES_FILE> \
--wait --wait-for-jobs --timeout 20m
Without --version, Helm installs the latest published version of the chart.
It worked when
The command finishes without error. The registration Job disappears when it finishes successfully. If it fails, it stays in the cluster for a while, and the log shows the reason:
kubectl -n <NAMESPACE> get jobs
kubectl -n <NAMESPACE> logs job/<RELEASE_NAME>-register-datasources
The bind account in a Secret and the login validated in the directory.
By default, OpenMetadata login uses local accounts, stored in its database, and LDAP is off. You want people to log in with their company directory account. The server starts to bind to LDAP with a service account, that is, to authenticate to the directory with the DN and password of that account. The DN (distinguished name) is the full name of an entry in the directory. Then it looks up the user by the typed email and validates their password. The bind account password stays in a Secret, created before the installation, not in the values file.
LDAP off (provider: basic).
The login uses the value of the attribute set in mailAttributeName, never the username. The initial administrator is still created by initialAdmins: they must exist in the directory, or adjust initialAdmins. The Helm output starts guiding the login with the LDAP credentials.
The login path, with and without LDAP
Who can log in
- Who logs in. Local accounts: the initial administrator and whoever signs up through the UI. Chart default:
local accounts, with self-signup. - OpenMetadata server. Validates the login against the accounts stored in the metadata database. Chart default:
basic. (tdp-openmetadata.openmetadata.config.authentication.provider) - Stored copy of the configuration. The server stores authentication and authorizer in the database. The chart deletes this copy before every start, and the server stores again what is in the values. Chart default:
synchronization on. (tdp-openmetadata.syncSecurityConfigFromValues) - Service registration Job. Logs in to the API with datasourcesIntegration.openmetadata.auth to register the enabled services. These credentials do not change any password in OpenMetadata: they have to follow the administrator's password. Chart default:
admin@open-metadata.org, with the temporary password in the file. (datasourcesIntegration.openmetadata.auth)
Who can log in: Local accounts (default)
- Who logs in. Local accounts: the initial administrator and whoever signs up through the UI. Chart default:
local accounts, with self-signup. - OpenMetadata server. Validates the login against the accounts stored in the metadata database. Chart default:
basic. (tdp-openmetadata.openmetadata.config.authentication.provider) - Stored copy of the configuration. The server stores authentication and authorizer in the database. The chart deletes this copy before every start, and the server stores again what is in the values. Chart default:
synchronization on. (tdp-openmetadata.syncSecurityConfigFromValues) - Service registration Job. Logs in to the API with datasourcesIntegration.openmetadata.auth to register the enabled services. These credentials do not change any password in OpenMetadata: they have to follow the administrator's password. Chart default:
admin@open-metadata.org, with the temporary password in the file. (datasourcesIntegration.openmetadata.auth)
Who can log in: LDAP accounts
- Who logs in. The login asks for the email, not the username: the server looks up in the directory the value typed in the attribute set in mailAttributeName. Chart default:
local accounts, with self-signup. - OpenMetadata server. Validates each login against the directory and, if there is a mapping, grants roles according to the user's groups. Chart default:
basic. (tdp-openmetadata.openmetadata.config.authentication.provider) - Stored copy of the configuration. The server stores authentication and authorizer in the database. The chart deletes this copy before every start, and the server stores again what is in the values. Chart default:
synchronization on. (tdp-openmetadata.syncSecurityConfigFromValues) - LDAP server. The server binds with the service account, looks up the user by email under userBaseDN and validates the password. The directory certificate is validated against the JVM's default CAs. (
tdp-openmetadata.openmetadata.config.authentication.ldapConfiguration) - Bind account Secret. tdp-openmetadata-ldap-secret, created by you before the installation. It holds the bind account password and, with a custom truststore, the truststore password. (
ldapConfiguration.dnAdminPassword.secretRef) - Service registration Job. Logs in to the API with datasourcesIntegration.openmetadata.auth to register the enabled services. These credentials do not change any password in OpenMetadata: they have to follow the administrator's password. Chart default:
admin@open-metadata.org, with the temporary password in the file. (datasourcesIntegration.openmetadata.auth)
Local accounts. The login is validated against the accounts stored in the OpenMetadata database: the initial administrator and whoever signs up through the UI (self-signup on). Nothing to configure. To require the directory, choose LDAP above.
LDAP. The server validates every login against the directory. LDAP: Best suited when people already have accounts in the company directory and should log in with them. The block sits under the chart prefix. The bind account password comes from the tdp-openmetadata-ldap-secret Secret, under the bind-password key.
1tdp-openmetadata:2openmetadata:3 config:4 authentication:5 enabled: true6 provider: ldap7 enableSelfSignup: true8 ldapConfiguration:9 host: "<LDAP_HOST>"10 port: 63611 dnAdminPrincipal: "cn=<BIND_USER>,dc=<DOMAIN>,dc=com"12 dnAdminPassword:13 secretRef: tdp-openmetadata-ldap-secret14 secretKey: bind-password15 userBaseDN: "ou=users,dc=<DOMAIN>,dc=com"16 mailAttributeName: mail17 usernameAttributeName: mail18 sslEnabled: true19 truststoreConfigType: JVMDefault20 trustStoreConfig:21 jvmDefaultConfig:22 verifyHostname: true
basic for local accounts, ldap for the directory.
- provider (linha 6). basic for local accounts, ldap for the directory.
- Self-signup (linha 7). When on, any entry under userBaseDN with a valid email and password gets a user on first login. Scenario 5 shows how to limit it.
- host (linha 9). The DNS name that is in the server certificate, not an IP: with verifyHostname: true, the name must match.
- LDAPS (linha 10). This port, with sslEnabled: true, turns on LDAPS.
- Bind account (linha 11). The service account the server uses to look up users. Use a dedicated account that only reads the entries it needs.
- Bind password (linha 13). Read from the Secret, never written in the values file.
- userBaseDN (linha 15). Where users are looked up. Every entry here can log in, as long as it has the email attribute.
- mailAttributeName (linha 16). The attribute compared with the email typed at login. It must be filled in for all users who will log in.
- usernameAttributeName (linha 17). It is not read at login.
- sslEnabled (linha 18). With false, the bind password and each user's password cross the network in clear text, and the truststore is ignored.
- Certificate (linha 19). JVMDefault validates the directory certificate against the JVM's default CAs. For a company CA, see scenario 4.
Create the Secret with the bind password
The Secret must exist before the installation.
kubectl create secret generic tdp-openmetadata-ldap-secret \
--from-literal=bind-password=<LDAP_BIND_PASSWORD> \
-n <NAMESPACE>
Add the LDAP block to the values file
Replace the server, account and domain placeholders with yours.
Check that initialAdmins points to an account that exists in the directory. Otherwise, nobody logs in as administrator.
Apply it to the release
The server restarts and stores the new configuration.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-openmetadata \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE> \
--wait --wait-for-jobs --timeout 20m
It worked when
With the port-forward open (scenario 1 of OpenMetadata Configuration), the provider field of the response is ldap, and a directory user logs in with their email and password:
curl http://localhost:8585/api/v1/system/config/auth
If the server keeps restarting
The log shows [LDAP] Issue in creating a LookUp Connection when the server cannot open the connection to the directory: unreachable host, wrong bind password or a rejected certificate. While the new pod is not ready, the old one keeps serving with the previous configuration. Fix the values and apply again. Do not leave the faulty rollout running (scenario 6).
The same login, with the UPN in place of the email attribute.
The company directory is an Active Directory (AD). The configuration starts from the LDAP one (scenario 2) and requires two adjustments in the ldapConfiguration block. Without them, the login does not work.
- Where the accounts are. In AD, the bind account and the users are in the domain's
CN=Users. Point the bind account there, indnAdminPrincipal: "CN=<BIND_USER>,CN=Users,DC=<DOMAIN>,DC=<TLD>", and the search, inuserBaseDN: "CN=Users,DC=<DOMAIN>,DC=<TLD>". - Login email. AD does not fill in
mailon accounts created without it, but always fills inuserPrincipalName(UPN), the login name in the formatuser@domain.tld. SetmailAttributeName: "userPrincipalName". People start logging in with the full UPN, not with the logon name (sAMAccountName).
The login looks up the account by the attribute set in mailAttributeName, and that attribute must be filled in for all users who will log in. With mail, AD accounts created without an email cannot log in. Adjustment 2 avoids this.
Whoever logs in through the API sends POST /api/v1/users/login with the body below. The email is the full UPN, not the logon name, and the password is base64-encoded.
{"email": "<USERNAME>@<DOMAIN>.<TLD>", "password": "<PASSWORD>"}
The Secret with the bind password and the procedure are the same as in scenario 2. The complete file is right below, with each line explained.
Login through Active Directory
- Who logs in. The login asks for the email, not the username: the server looks up in the directory the value typed in the attribute set in mailAttributeName. Chart default:
local accounts, with self-signup. - OpenMetadata server. Validates each login against the directory and, if there is a mapping, grants roles according to the user's groups. Chart default:
basic. (tdp-openmetadata.openmetadata.config.authentication.provider) - Stored copy of the configuration. The server stores authentication and authorizer in the database. The chart deletes this copy before every start, and the server stores again what is in the values. Chart default:
synchronization on. (tdp-openmetadata.syncSecurityConfigFromValues) - Active Directory. The server binds with the service account, looks up the user by email under userBaseDN and validates the password. The directory certificate is validated against the JVM's default CAs. (
tdp-openmetadata.openmetadata.config.authentication.ldapConfiguration) - Bind account Secret. tdp-openmetadata-ldap-secret, created by you before the installation. It holds the bind account password and, with a custom truststore, the truststore password. (
ldapConfiguration.dnAdminPassword.secretRef) - Service registration Job. Logs in to the API with datasourcesIntegration.openmetadata.auth to register the enabled services. These credentials do not change any password in OpenMetadata: they have to follow the administrator's password. Chart default:
admin@open-metadata.org, with the temporary password in the file. (datasourcesIntegration.openmetadata.auth)
1tdp-openmetadata:2openmetadata:3 config:4 authentication:5 enabled: true6 provider: ldap7 enableSelfSignup: true8 ldapConfiguration:9 host: "<AD_HOST>"10 port: 63611 dnAdminPrincipal: "CN=<BIND_USER>,CN=Users,DC=<DOMAIN>,DC=<TLD>"12 dnAdminPassword:13 secretRef: tdp-openmetadata-ldap-secret14 secretKey: bind-password15 userBaseDN: "CN=Users,DC=<DOMAIN>,DC=<TLD>"16 mailAttributeName: "userPrincipalName"17 usernameAttributeName: "sAMAccountName"18 groupBaseDN: ""19 sslEnabled: true20 truststoreConfigType: JVMDefault21 trustStoreConfig:22 jvmDefaultConfig:23 verifyHostname: true
The DNS name that is in the domain controller certificate.
- Domain controller (linha 9). The DNS name that is in the domain controller certificate.
- Bind account (linha 11). The full DN of the service account in AD.
- UPN as email (linha 16). The login compares the typed value with userPrincipalName: people log in with user@domain.tld.
- sAMAccountName (linha 17). Kept for consistency with the AD examples of the other TDP charts. It has no effect on the login.
- Certificate (linha 20). Domain controllers usually have a certificate from an internal CA. In that case, use CustomTrustStore (scenario 4).
Create the Secret with the bind password
The same Secret as LDAP, before the installation.
kubectl create secret generic tdp-openmetadata-ldap-secret \
--from-literal=bind-password=<LDAP_BIND_PASSWORD> \
-n <NAMESPACE>
Apply it to the release
The server restarts with AD.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-openmetadata \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE> \
--wait --wait-for-jobs --timeout 20m
It worked when
The JVM's default CAs or a truststore with the company CA.
With LDAPS, LDAP over TLS, the server validates the directory certificate before sending the bind password. If the certificate was issued by a public CA, the JVM's default CAs are enough. If it was a company CA, the server needs a truststore, the file with the CAs it trusts, with that CA, mounted in the pod from a Secret.
Validates against the JVM's default CAs. With verifyHostname: true, the host must be one of the certificate's names.
Validates against the truststore you mount in the pod. The truststore password is in the same Secret as the bind password.
Do not use: it accepts any certificate, and whoever intercepts the connection receives the bind password and the passwords of those who log in.
The directory certificate in the pod
Who signed the directory certificate
- Who logs in. The login asks for the email, not the username: the server looks up in the directory the value typed in the attribute set in mailAttributeName. Chart default:
local accounts, with self-signup. - OpenMetadata server. Validates each login against the directory and, if there is a mapping, grants roles according to the user's groups. Chart default:
basic. (tdp-openmetadata.openmetadata.config.authentication.provider) - Stored copy of the configuration. The server stores authentication and authorizer in the database. The chart deletes this copy before every start, and the server stores again what is in the values. Chart default:
synchronization on. (tdp-openmetadata.syncSecurityConfigFromValues) - LDAP server. The server binds with the service account, looks up the user by email under userBaseDN and validates the password. The directory certificate is validated against the JVM's default CAs. (
tdp-openmetadata.openmetadata.config.authentication.ldapConfiguration) - Bind account Secret. tdp-openmetadata-ldap-secret, created by you before the installation. It holds the bind account password and, with a custom truststore, the truststore password. (
ldapConfiguration.dnAdminPassword.secretRef) - Service registration Job. Logs in to the API with datasourcesIntegration.openmetadata.auth to register the enabled services. These credentials do not change any password in OpenMetadata: they have to follow the administrator's password. Chart default:
admin@open-metadata.org, with the temporary password in the file. (datasourcesIntegration.openmetadata.auth)
Who signed the directory certificate: Public CA (JVMDefault)
- Who logs in. The login asks for the email, not the username: the server looks up in the directory the value typed in the attribute set in mailAttributeName. Chart default:
local accounts, with self-signup. - OpenMetadata server. Validates each login against the directory and, if there is a mapping, grants roles according to the user's groups. Chart default:
basic. (tdp-openmetadata.openmetadata.config.authentication.provider) - Stored copy of the configuration. The server stores authentication and authorizer in the database. The chart deletes this copy before every start, and the server stores again what is in the values. Chart default:
synchronization on. (tdp-openmetadata.syncSecurityConfigFromValues) - LDAP server. The server binds with the service account, looks up the user by email under userBaseDN and validates the password. The directory certificate is validated against the JVM's default CAs. (
tdp-openmetadata.openmetadata.config.authentication.ldapConfiguration) - Bind account Secret. tdp-openmetadata-ldap-secret, created by you before the installation. It holds the bind account password and, with a custom truststore, the truststore password. (
ldapConfiguration.dnAdminPassword.secretRef) - Service registration Job. Logs in to the API with datasourcesIntegration.openmetadata.auth to register the enabled services. These credentials do not change any password in OpenMetadata: they have to follow the administrator's password. Chart default:
admin@open-metadata.org, with the temporary password in the file. (datasourcesIntegration.openmetadata.auth)
Who signed the directory certificate: Company CA (truststore)
- Who logs in. The login asks for the email, not the username: the server looks up in the directory the value typed in the attribute set in mailAttributeName. Chart default:
local accounts, with self-signup. - OpenMetadata server. Validates each login against the directory and, if there is a mapping, grants roles according to the user's groups. Chart default:
basic. (tdp-openmetadata.openmetadata.config.authentication.provider) - Stored copy of the configuration. The server stores authentication and authorizer in the database. The chart deletes this copy before every start, and the server stores again what is in the values. Chart default:
synchronization on. (tdp-openmetadata.syncSecurityConfigFromValues) - LDAP server. The server binds with the service account, looks up the user by email under userBaseDN and validates the password. The directory certificate is validated against the truststore mounted in the pod. (
tdp-openmetadata.openmetadata.config.authentication.ldapConfiguration) - Bind account Secret. tdp-openmetadata-ldap-secret, created by you before the installation. It holds the bind account password and, with a custom truststore, the truststore password. (
ldapConfiguration.dnAdminPassword.secretRef) - Truststore Secret. tdp-openmetadata-ldap-truststore, with the CA that signed the directory certificate, mounted in the server pod. (
tdp-openmetadata.extraVolumes) - Service registration Job. Logs in to the API with datasourcesIntegration.openmetadata.auth to register the enabled services. These credentials do not change any password in OpenMetadata: they have to follow the administrator's password. Chart default:
admin@open-metadata.org, with the temporary password in the file. (datasourcesIntegration.openmetadata.auth)
Public CA. The scenario 2 block already uses JVMDefault. Public CA: Best suited when the directory certificate was issued by a CA that the JVM already recognizes. It is enough that the host is one of the certificate's names: there is nothing to apply beyond scenario 2.
Company CA. The truststore is mounted from a Secret at /opt/openmetadata/ldap-truststore. Company CA: Best suited when a private company CA signed the directory certificate. Combine this block with the one from scenario 2.
1tdp-openmetadata:2extraVolumes:3 - name: om-logs4 emptyDir: {}5 - name: ldap-truststore6 secret:7 secretName: tdp-openmetadata-ldap-truststore8extraVolumeMounts:9 - name: om-logs10 mountPath: /opt/openmetadata/logs11 - name: ldap-truststore12 mountPath: /opt/openmetadata/ldap-truststore13 readOnly: true14openmetadata:15 config:16 authentication:17 ldapConfiguration:18 truststoreConfigType: CustomTrustStore19 trustStoreConfig:20 customTrustManagerConfig:21 trustStoreFilePath: /opt/openmetadata/ldap-truststore/truststore.p1222 trustStoreFilePassword:23 secretRef: tdp-openmetadata-ldap-secret24 secretKey: truststore-password25 trustStoreFileFormat: PKCS1226 verifyHostname: true27 examineValidityDates: true
extraVolumes and extraVolumeMounts replace the chart's lists. Without the om-logs entry, the server's log volume disappears.
- Keep om-logs (linha 3). extraVolumes and extraVolumeMounts replace the chart's lists. Without the om-logs entry, the server's log volume disappears.
- Truststore Secret (linha 7). With the truststore.p12 key.
- CustomTrustStore (linha 18). Replaces the JVM's default CAs with the mounted truststore.
- Truststore password (linha 23). In the same Secret as the bind password, under the truststore-password key.
Create the truststore Secrets
The bind password Secret also has the truststore password.
kubectl create secret generic tdp-openmetadata-ldap-truststore \
--from-file=truststore.p12=<LOCAL_PATH>/truststore.p12 \
-n <NAMESPACE>
kubectl create secret generic tdp-openmetadata-ldap-secret \
--from-literal=bind-password=<LDAP_BIND_PASSWORD> \
--from-literal=truststore-password=<TRUSTSTORE_PASSWORD> \
-n <NAMESPACE>
If the bind password Secret already exists, delete it and create it again with both keys.
Apply it to the release
The server restarts with the truststore mounted.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-openmetadata \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE> \
--wait --wait-for-jobs --timeout 20m
It worked when
If the server keeps restarting
A certificate that the truststore rejects keeps the server from opening the connection to the directory ([LDAP] Issue in creating a LookUp Connection). Check the CA in the truststore and the name in host, and see scenario 6.
Limit the login and grant roles through the directory groups.
With LDAP on, you want to decide who gets in and with which role. OpenMetadata has no LDAP search filter: the login looks up the email under userBaseDN and nothing else, so membership in a group does not reject anyone. Groups are used to grant roles. Who gets in is decided by the OU, by the bind account's permissions, or by self-signup.
Point userBaseDN at an OU with only OpenMetadata users; or restrict, in the directory ACLs, what the bind account reads (whoever it cannot see does not get in); or turn off enableSelfSignup, and only users that an administrator already created in OpenMetadata get in, matched by email.
On each login, the server looks in groupBaseDN for the groups that have the user's DN as a direct member, and applies the roles mapped in authRolesMapping.
1 groupBaseDN: "ou=groups,dc=<DOMAIN>,dc=com"2 groupAttributeName: objectClass3 groupAttributeValue: groupOfNames4 groupMemberAttributeName: member5 allAttributeName: "*"6 roleAdminName: Admin7 authRolesMapping: '{"cn=<OPENMETADATA_ADMINS_GROUP>,ou=groups,dc=<DOMAIN>,dc=com": ["Admin"], "cn=<OPENMETADATA_STEWARDS_GROUP>,ou=groups,dc=<DOMAIN>,dc=com": ["DataSteward"]}'8 authReassignRoles: ["Admin", "DataSteward"]
Where groups are looked up. In Active Directory, something like OU=Groups,DC=<DOMAIN>,DC=<TLD>.
- groupBaseDN (linha 1). Where groups are looked up. In Active Directory, something like OU=Groups,DC=<DOMAIN>,DC=<TLD>.
- Group class (linha 3). groupOfNames in OpenLDAP. Group in Active Directory.
- Member (linha 4). The group attribute with the member's full DN. Nested groups are not followed: the user must be a direct member.
- allAttributeName (linha 5). Attributes returned by the search. The value "*" is also the marker for all roles in authReassignRoles.
- roleAdminName (linha 6). Admin is not an OpenMetadata role: when mapped, it turns on the user's administrator flag. With roleAdminName empty, ["Admin"] does nothing.
- authRolesMapping (linha 7). JSON from group DN to list of roles. The key is compared as exact text with the DN the directory returns, including case and spaces. A role that does not exist in OpenMetadata appears in the log and is ignored.
- authReassignRoles (linha 8). Only the roles listed here are set and removed on each login. The user's other roles stay. With ["*"], the mapped roles replace all and the administrator flag follows the groups. With [], the mapping has no effect.
These keys are part of ldapConfiguration and, like the rest of the authentication, are reapplied on every server start.
Apply the change, see what the server uses and recover from a server that does not start.
OpenMetadata is already running and you need to change the authentication: switch from basic to ldap, fix the directory or change the roles. The first time it starts, OpenMetadata itself copies authentication and authorizer to the metadata database and, after that, only reads from there. With syncSecurityConfigFromValues: true, the default, the chart deletes this copy before every server start, and the server stores again what is in the values.
Change the values and apply: the change takes effect on the next rollout. Whatever was changed through the UI or with openmetadata-ops.sh is undone at that moment. Deleting the stored copy runs before every server start and makes each start a little slower.
OpenMetadata's own behavior: changing the values has no effect, and the helm upgrade output warns about it. The stored copy is changed with openmetadata-ops.sh, which comes in the server image.
The configuration stored in the database
Synchronization with the values
- Who logs in. The login asks for the email, not the username: the server looks up in the directory the value typed in the attribute set in mailAttributeName. Chart default:
local accounts, with self-signup. - OpenMetadata server. Validates each login against the directory and, if there is a mapping, grants roles according to the user's groups. Chart default:
basic. (tdp-openmetadata.openmetadata.config.authentication.provider) - Stored copy of the configuration. The server stores authentication and authorizer in the database. The chart deletes this copy before every start, and the server stores again what is in the values. Chart default:
synchronization on. (tdp-openmetadata.syncSecurityConfigFromValues) - LDAP server. The server binds with the service account, looks up the user by email under userBaseDN and validates the password. The directory certificate is validated against the JVM's default CAs. (
tdp-openmetadata.openmetadata.config.authentication.ldapConfiguration) - Bind account Secret. tdp-openmetadata-ldap-secret, created by you before the installation. It holds the bind account password and, with a custom truststore, the truststore password. (
ldapConfiguration.dnAdminPassword.secretRef) - Service registration Job. Logs in to the API with datasourcesIntegration.openmetadata.auth to register the enabled services. These credentials do not change any password in OpenMetadata: they have to follow the administrator's password. Chart default:
admin@open-metadata.org, with the temporary password in the file. (datasourcesIntegration.openmetadata.auth)
Synchronization with the values: On (default)
- Who logs in. The login asks for the email, not the username: the server looks up in the directory the value typed in the attribute set in mailAttributeName. Chart default:
local accounts, with self-signup. - OpenMetadata server. Validates each login against the directory and, if there is a mapping, grants roles according to the user's groups. Chart default:
basic. (tdp-openmetadata.openmetadata.config.authentication.provider) - Stored copy of the configuration. The server stores authentication and authorizer in the database. The chart deletes this copy before every start, and the server stores again what is in the values. Chart default:
synchronization on. (tdp-openmetadata.syncSecurityConfigFromValues) - LDAP server. The server binds with the service account, looks up the user by email under userBaseDN and validates the password. The directory certificate is validated against the JVM's default CAs. (
tdp-openmetadata.openmetadata.config.authentication.ldapConfiguration) - Bind account Secret. tdp-openmetadata-ldap-secret, created by you before the installation. It holds the bind account password and, with a custom truststore, the truststore password. (
ldapConfiguration.dnAdminPassword.secretRef) - Service registration Job. Logs in to the API with datasourcesIntegration.openmetadata.auth to register the enabled services. These credentials do not change any password in OpenMetadata: they have to follow the administrator's password. Chart default:
admin@open-metadata.org, with the temporary password in the file. (datasourcesIntegration.openmetadata.auth)
Synchronization with the values: Off
- Who logs in. The login asks for the email, not the username: the server looks up in the directory the value typed in the attribute set in mailAttributeName. Chart default:
local accounts, with self-signup. - OpenMetadata server. Validates each login against the directory and, if there is a mapping, grants roles according to the user's groups. Chart default:
basic. (tdp-openmetadata.openmetadata.config.authentication.provider) - Stored copy of the configuration. With synchronization off, the server only reads the copy stored at the first installation: changing the values has no effect. The copy is changed with openmetadata-ops.sh. Chart default:
synchronization on. (tdp-openmetadata.syncSecurityConfigFromValues) - LDAP server. The server binds with the service account, looks up the user by email under userBaseDN and validates the password. The directory certificate is validated against the JVM's default CAs. (
tdp-openmetadata.openmetadata.config.authentication.ldapConfiguration) - Bind account Secret. tdp-openmetadata-ldap-secret, created by you before the installation. It holds the bind account password and, with a custom truststore, the truststore password. (
ldapConfiguration.dnAdminPassword.secretRef) - Service registration Job. Logs in to the API with datasourcesIntegration.openmetadata.auth to register the enabled services. These credentials do not change any password in OpenMetadata: they have to follow the administrator's password. Chart default:
admin@open-metadata.org, with the temporary password in the file. (datasourcesIntegration.openmetadata.auth)
See what the server is using
Exports the stored copy: provider, LDAP host, administrators.
NS=<NAMESPACE>
DEPLOY=$(kubectl -n "$NS" get deploy -l app.kubernetes.io/name=tdp-openmetadata -o name)
OPS=/opt/openmetadata/bootstrap/openmetadata-ops.sh
kubectl -n "$NS" exec "$DEPLOY" -c tdp-openmetadata -- $OPS get-security-config -o /tmp/security.yaml
kubectl -n "$NS" exec "$DEPLOY" -c tdp-openmetadata -- rm -f /tmp/security.yaml
The generated file holds the bind password and the truststore password in clear text. Delete it when you are done and do not version it.
Apply the change
The path depends on the synchronization.
Change authentication or authorizer in the values file and apply with the same helm upgrade --install as in the other scenarios. Wait for the rollout to finish: until the new pod is ready, the old one keeps serving with the previous configuration, so a configuration that does not work shows up as a new pod restarting, not as an outage.
For the values to rule again (GitOps), update authentication/authorizer in the values, apply, delete the stored copy and restart. remove-security-config deletes the authentication and the authorizer, and the restart rebuilds both from the values. Users, teams and roles are not touched. Repeat after every change.
kubectl -n "$NS" exec "$DEPLOY" -c tdp-openmetadata -- $OPS remove-security-config --force
kubectl -n "$NS" rollout restart "$DEPLOY"
kubectl -n "$NS" rollout status "$DEPLOY"
Or edit the stored copy directly. Afterwards, make the values equal to what you stored, otherwise a future remove-security-config goes back to the old configuration.
kubectl -n "$NS" exec "$DEPLOY" -c tdp-openmetadata -- $OPS get-security-config -o /tmp/security.yaml
kubectl -n "$NS" exec "$DEPLOY" -c tdp-openmetadata -- cat /tmp/security.yaml > security.yaml
# edit security.yaml
kubectl -n "$NS" exec -i "$DEPLOY" -c tdp-openmetadata -- sh -c 'cat > /tmp/security.yaml' < security.yaml
kubectl -n "$NS" exec "$DEPLOY" -c tdp-openmetadata -- $OPS update-security-config -f /tmp/security.yaml --force
kubectl -n "$NS" exec "$DEPLOY" -c tdp-openmetadata -- rm -f /tmp/security.yaml
rm -f security.yaml
kubectl -n "$NS" rollout restart "$DEPLOY"
It worked when
get-security-config from the first step shows the new configuration.If the server does not start
The server exits at start when it cannot open the connection to the directory.
The log shows [LDAP] Issue in creating a LookUp Connection. Fix the values and apply again. Do not leave the faulty rollout running: every restart of the failing pod stores the faulty configuration again. The pods that were already running are not affected.
The faulty configuration is already stored, so fixing the values is not enough, and kubectl exec into the container that keeps restarting is not reliable. Fix the values and run the removal command in a copy of the pod with the server command replaced: kubectl debug --copy-to strips the labels and probes, so the copy receives no traffic and is not restarted.
POD=$(kubectl -n "$NS" get pods -l app.kubernetes.io/name=tdp-openmetadata \
--sort-by=.metadata.creationTimestamp -o name | tail -1)
kubectl -n "$NS" debug "$POD" --copy-to=openmetadata-ops \
--keep-init-containers=false --container=tdp-openmetadata -- sleep 1800
kubectl -n "$NS" wait pod/openmetadata-ops --for=condition=Ready --timeout=5m
kubectl -n "$NS" exec openmetadata-ops -c tdp-openmetadata -- $OPS remove-security-config --force
kubectl -n "$NS" delete pod openmetadata-ops
kubectl -n "$NS" rollout restart "$DEPLOY"
kubectl -n "$NS" rollout status "$DEPLOY"
When something goes wrong
Troubleshooting
Paste the error message or choose the symptom. The answer comes with the cause, what to do and the command.
- Server restarts: [LDAP] Issue in creating a LookUp Connection. Cause: The server did not open the connection pool to the directory: unreachable host, wrong bind password or a certificate that the truststore rejects (for example, JVMDefault with a certificate from a private CA). What to do: Fix the values and apply again. With synchronization off, that is not enough: follow scenario 6, "If the server does not start".
- Login rejected with the username. Cause: The OpenMetadata login asks for the email: the value of the attribute set in mailAttributeName, not the username. What to do: Log in with the email. In Active Directory, with mailAttributeName: userPrincipalName, use the full UPN (user@domain.tld).
- With LDAP, nobody can log in as administrator. Cause: The initial administrator is still created by initialAdmins, but with LDAP their login is validated in the directory, where they may not exist. What to do: Create that user in the directory or change initialAdmins to an account that exists there.
- A change made in the UI comes back after a restart. Cause: With synchronization on (default), the server reapplies the authentication from the values on every start. What to do: Make the change in the values file and apply it with helm upgrade.
- I changed the values and nothing changed. Cause: syncSecurityConfigFromValues: false: the server only reads the copy stored at the first installation. The helm upgrade output warns about this. What to do: Remove the stored copy and restart, or set synchronization back to true (scenario 6).
- Anyone in the directory can log in. Cause: There is no LDAP search filter: with self-signup on, every entry under userBaseDN with the email attribute and a valid password gets in. What to do: Point userBaseDN at an OU with only OpenMetadata users, restrict what the bind account reads, or turn off enableSelfSignup (scenario 5).
- A directory group does not give the expected role. Cause: The mapping key is not equal, character by character, to the group DN; the user is a member of a nested group only; the role does not exist in OpenMetadata; or the role is not in authReassignRoles. What to do: Check the group's exact DN, direct membership and the role names. A nonexistent role appears in the log and is ignored.
- Registration Job fails with an authentication error. Cause: The administrator password was changed in the UI, but datasourcesIntegration.openmetadata.auth still has the old one. What to do: Update the credentials or point passwordSecret to a Secret with the new password, and run helm upgrade with the same values (scenario 1).
Best practices
secretRef takes the bind password out of the values file and out of Git, but the server stores the value read from the Secret, in clear text, in the copy of the configuration in the metadata database. The same goes for the truststore password. Therefore:
- use a dedicated bind account that only reads the user and group entries OpenMetadata needs;
- treat the metadata database and its backups as holding this credential;
- delete the files generated by
get-security-configwhen you are done and do not version them; - use LDAPS (
sslEnabled: true) and neverTrustAll; - change the administrator's temporary password right after the installation and, for the registration Job, prefer the password in a Secret (
passwordSecret) over the password in the values file.
All parameters
The chart prefix is already filled in. Keys without a prefix sit at the root of the values file.
22 of 22 parameters
| Parameter | Description | Chart default |
|---|---|---|
tdp-openmetadata.syncSecurityConfigFromValuesAuthentication | Applies authentication/authorizer from the values on every server start, not only on the first installation | true |
tdp-openmetadata.openmetadata.config.authentication.providerAuthentication | Login mode: basic or ldap | basic |
tdp-openmetadata.openmetadata.config.authentication.enableSelfSignupAuthentication | Allows self-signup. With LDAP, every entry under userBaseDN gets a user on first login | true |
tdp-openmetadata.openmetadata.config.authorizer.initialAdminsAuthentication | Initial administrators, as user or user:password (the password only applies when the user is created) | ["admin:ChangeMe!T3c"] |
tdp-openmetadata.openmetadata.config.authorizer.principalDomainAuthentication | Domain appended to initialAdmins | open-metadata.org |
tdp-openmetadata.openmetadata.config.authentication.ldapConfiguration.hostLDAP | DNS name of the LDAP server, as in the certificate | not set |
tdp-openmetadata.openmetadata.config.authentication.ldapConfiguration.dnAdminPrincipalLDAP | Bind account DN | not set |
tdp-openmetadata.openmetadata.config.authentication.ldapConfiguration.dnAdminPasswordLDAP | Bind account password, through secretRef and secretKey | not set |
tdp-openmetadata.openmetadata.config.authentication.ldapConfiguration.userBaseDNLDAP | Where users are looked up | not set |
tdp-openmetadata.openmetadata.config.authentication.ldapConfiguration.mailAttributeNameLDAP | Attribute compared with the email typed at login | not set |
tdp-openmetadata.openmetadata.config.authentication.ldapConfiguration.sslEnabledLDAP | Turns on LDAPS. When off, passwords cross the network in clear text | not set |
tdp-openmetadata.openmetadata.config.authentication.ldapConfiguration.truststoreConfigTypeLDAP | JVMDefault (the JVM's default CAs) or CustomTrustStore (mounted truststore) | not set |
tdp-openmetadata.openmetadata.config.authentication.ldapConfiguration.groupBaseDNGroups and roles | Where groups are looked up | not set |
tdp-openmetadata.openmetadata.config.authentication.ldapConfiguration.allAttributeNameGroups and roles | Attributes returned by the search. * is also the marker for all roles in authReassignRoles | not set |
tdp-openmetadata.openmetadata.config.authentication.ldapConfiguration.authRolesMappingGroups and roles | JSON from group DN to list of roles | not set |
tdp-openmetadata.openmetadata.config.authentication.ldapConfiguration.authReassignRolesGroups and roles | Roles that the mapping sets and removes on each login | not set |
tdp-openmetadata.openmetadata.config.authentication.ldapConfiguration.roleAdminNameGroups and roles | Name that, in the mapping, turns on the administrator flag | not set |
tdp-openmetadata.extraVolumesVolumes | Extra server volumes. The list replaces the chart's (keep om-logs) | om-logs (emptyDir) |
tdp-openmetadata.extraVolumeMountsVolumes | Mount points of the extra volumes | om-logs at /opt/openmetadata/logs |
datasourcesIntegration.openmetadata.auth.usernameRegistration Job | User the Job uses to log in to the API. Shown in the Helm output with basic | admin@open-metadata.org |
datasourcesIntegration.openmetadata.auth.passwordRegistration Job | Password the Job uses to log in. Does not change any password in OpenMetadata | ChangeMe!T3c |
datasourcesIntegration.openmetadata.auth.passwordSecret.enabledRegistration Job | Reads the password from a Secret in the release namespace, with name and key | false |
Next steps
Configuration
OpenMetadata Configuration
First contact, metadata database, publishing at a URL and uninstallation.
Services in the catalog
Integrations - OpenMetadata
The registration Job and the block for each platform component.