Skip to main content
Version 3.0

Who gets into Superset
and with which role.

Four scenarios: replacing the credentials the chart ships with, login through LDAP, login through Active Directory, and directory groups converted into Superset roles. Each one covers: the chart default, what changes, and the values file commented line by line.

ChartVersion3.0.3TypeapplicationAppVersion5.0.0
CompatibilityKubernetes1.32+OpenShift4.19+Rancher2.10.x+

The tdp-superset chart starts Superset with local login and temporary secrets, identical in every installation. Security starts with replacing these secrets and continues, where applicable, with company account login through LDAP or Active Directory, choosing who can sign in and which role each person receives.

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​

Secret key, admin password and embedded PostgreSQL passwords, each at the right time.

Before Superset moves beyond testing, three secrets need your own values. The secret key, which Superset uses to encrypt stored data source credentials; the admin password, for the first user, created during installation; and the embedded PostgreSQL passwords. All three ship with temporary values, identical in every installation, and each has its own timing: the key and database passwords apply from the first installation, while the admin password only applies when the user is created.

Secret key

extraSecretEnv.SUPERSET_SECRET_KEY contains an example value. Replace it with a long random value before the first installation.

Admin

User admin with the temporary password from init.adminUser.password. It only applies when the user is created. Afterwards, change the password through the Superset interface.

Embedded PostgreSQL

Temporary password for the superset user in postgresql.auth.password, matching supersetNode.connections.db_pass, and for the administrator in postgresql.auth.postgresPassword. The volume remains in the cluster after helm uninstall, with the old passwords.

The three secrets with temporary values

namespace <NAMESPACE>Who signs inSuperset userSupersetlocal login · adminSecret keySUPERSET_SECRET_KEYEmbedded PostgreSQLsuperset user
  1. Who signs in. Only users registered in Superset itself can sign in. The first is admin, created by the init Job. Chart default: Superset's own users.
  2. Superset. Without LDAP, Superset uses its own users. The admin is created on first installation, with the password from init.adminUser.password; afterwards, change the password through the interface. Chart default: local login; admin with a temporary password. (tdp-superset.init.adminUser.password)
  3. Secret key. Superset uses it to encrypt data source credentials stored in the metadata database. The default is an example value: replace it before the first installation. Chart default: SUPERSET_SECRET_KEY (example value). (tdp-superset.extraSecretEnv.SUPERSET_SECRET_KEY)
  4. Embedded PostgreSQL passwords. The superset user's password is set in postgresql.auth.password and supersetNode.connections.db_pass, with matching values. The administrator's password is set in postgresql.auth.postgresPassword. The volume remains in the cluster after helm uninstall, with the old passwords. Chart default: temporary passwords. (tdp-superset.postgresql.auth)
The three secrets with temporary values. Click an element to see where each is set.

The values file

All three secrets in a single private values file, outside version control. Each key's default values are in All parameters.

Click the markers to understand each line.

1tdp-superset:
2extraSecretEnv:
3 SUPERSET_SECRET_KEY: "<SECRET_KEY>"
4init:
5 adminUser:
6 password: "<PASSWORD>"
7postgresql:
8 auth:
9 postgresPassword: "<POSTGRES_PASSWORD>"
10 password: "<DATABASE_PASSWORD>"
11supersetNode:
12 connections:
13 db_pass: "<DATABASE_PASSWORD>"

Everything belonging to Superset goes under the subchart key. Without this prefix, Helm does not apply the block.

  1. Chart prefix (linha 1). Everything belonging to Superset goes under the subchart key. Without this prefix, Helm does not apply the block.
  2. Secret key (linha 3). Encrypts data source credentials stored in the metadata database. Set it before the first installation.
  3. Admin password (linha 6). Only applies when creating the admin user, on first installation.
  4. PostgreSQL administrator (linha 9). Embedded PostgreSQL administrator password.
  5. superset user (linha 10). Password Superset uses to connect to the metadata database.
  6. Same password (linha 13). Matches line 10. Both must be the same.
Secret key and passwords

With external PostgreSQL, remove the postgresql.auth passwords from the file, set postgresql.enabled to false and leave db_pass empty: the database user's password is generated by the database creation Job and reaches Superset through the DB_PASS entry of extraEnvRaw, in the Metadata database configuration scenario.

Generate the secret key

A long random value.

Terminal input
openssl rand -base64 42

Write the values file

Replace the placeholders with the generated key and your passwords.

Keep this file outside version control: it stores the key and passwords in plaintext.

Install with the file

On first installation, all three secrets already apply.

Terminal input
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-superset \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace --timeout 10m \
-f <VALUES_FILE>

Without --version, Helm installs the latest published version.

Success criteria

The interface accepts the admin user with the password you set, and no longer accepts the temporary password.
If Superset was already installed

The admin password does not change with helm upgrade: change it through the Superset interface. Embedded PostgreSQL passwords remain on the database volume. A new installation in the same namespace finds the old ones unless you delete the data-<RELEASE_NAME>-postgresql-0 volume after helm uninstall.

When something goes wrong​

Troubleshooting

Paste the error message or choose a symptom. The answer includes the cause, what to do and the command.

  1. AD: every login is rejected, with no log error. Cause: The email attribute was empty for the account. Many AD directories do not populate mail, and with an empty email, self-registration does not create the user. What to do: Use email: "userPrincipalName" in ldap.userAttributes (Active Directory scenario).
  2. Any directory account can sign in. Cause: The (objectClass=person) filter accepts every account under the search base, and self-registration creates a user for each one. What to do: Require group membership in the filter (memberOf) or disable self-registration (LDAP login scenario).
  3. Pod does not start after enabling LDAP. Cause: The Secret tdp-superset-ldap-secret does not exist in the namespace, and the pod cannot find the AUTH_LDAP_BIND_PASSWORD variable. What to do: Create the Secret before helm upgrade --install (LDAP login scenario).
  4. The new admin password does not work. Cause: init.adminUser.password only applies when the admin user is created, on first installation. What to do: Change the admin password through the Superset interface.
  5. New installation does not accept new database passwords. Cause: The embedded PostgreSQL volume remains in the cluster after helm uninstall, and a new installation in the same namespace finds the old database and its passwords. What to do: To start from scratch, delete the volume after helm uninstall.
  6. Other problem. Cause: Start with pod status and namespace events. What to do: Events in chronological order show what prevents the pod from starting.

Best practices​

  • Set the secret key and passwords in a private values file before the first installation.
  • Store the bind password only in the Secret: it is the only LDAP setting read from the environment.
  • Decide who can sign in: require a group in the search filter or disable self-registration and register users beforehand.

All parameters​

Filter by name or group. The chart prefix is already filled in.

22 of 22 parameters

ParameterDescriptionChart default
tdp-superset.extraSecretEnv.SUPERSET_SECRET_KEYCredentialsSecret key that encrypts stored credentials. Replace before the first installationSUPERSET_SECRET_KEY
tdp-superset.init.adminUser.usernameCredentialsAdmin user created by the init Jobadmin
tdp-superset.init.adminUser.passwordCredentialsTemporary admin password. Only applies when creating the userChangeMe!T3c
tdp-superset.postgresql.auth.passwordCredentialsTemporary password for the embedded PostgreSQL superset user. Matches supersetNode.connections.db_passChangeMe!T3c
tdp-superset.postgresql.auth.postgresPasswordCredentialsTemporary embedded PostgreSQL administrator passwordChangeMe!T3c
tdp-superset.supersetNode.connections.db_passCredentialsMetadata database connection passwordChangeMe!T3c
tdp-superset.ldap.enabledLDAPEnables LDAP or AD loginfalse
tdp-superset.ldap.server.urlLDAPLDAP server URLldap://<ldap-host>:389
tdp-superset.ldap.server.useTlsLDAPUses TLS for the directory connection"False"
tdp-superset.ldap.bind.userLDAPBind account DNcn=admin,dc=<domain>,dc=local
tdp-superset.ldap.search.baseLDAPUser search baseou=users,dc=<domain>,dc=local
tdp-superset.ldap.search.filterLDAPFilter deciding who can sign in(objectClass=person)
tdp-superset.ldap.search.uidFieldLDAPLogin attributeuid
tdp-superset.ldap.userAttributes.firstnameLDAPFirst name attributegivenName
tdp-superset.ldap.userAttributes.lastnameLDAPLast name attributesn
tdp-superset.ldap.userAttributes.emailLDAPEmail attribute. In AD, userPrincipalNamemail
tdp-superset.extraEnvRawLDAPList of environment variables. With LDAP, carries AUTH_LDAP_BIND_PASSWORD from Secret tdp-superset-ldap-secret, key bind-passwordempty
tdp-superset.ldap.registration.enabledRolesCreates the Superset user at first login"True"
tdp-superset.ldap.registration.defaultRoleRolesRole for the user created at loginPublic
tdp-superset.ldap.roleMappingRolesDirectory group DN → list of Superset roles{}
tdp-superset.ldap.groupFieldRolesAttribute containing the account's groupsmemberOf
tdp-superset.ldap.roleSyncAtLoginRolesRecalculates roles at each login"True"

Next steps​