Skip to main content
Version 3.0

Who manages the policies
and with which account they sign in.

Four scenarios: changing the temporary passwords, login with LDAP or Active Directory accounts, LDAPS with a private CA, and importing users, groups, and roles. Each one covers: the chart default, what changes in the cluster, and the values file commented line by line.

ChartVersion3.0.3TypeapplicationAppVersion2.7.0
CompatibilityKubernetes1.32+OpenShift4.19+Rancher2.10.x+

Ranger starts with the local admin user and temporary passwords. You change passwords, enable login through the company directory (LDAP or Active Directory) and enable UserSync, which imports users and groups allowed to log in into Ranger. For UserSync and plugins, see UserSync and Ranger - Concepts.

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​

Admin and database passwords, in the values file or a Secret.

The chart sets the same temporary password for the UI admin user and the database ranger user. With bundled PostgreSQL, the database password also applies to its root and hive roles. Before any real use, change both to strong passwords. The admin password can be in the values file or a Secret you create.

Chart default

Temporary passwords in ranger.adminPassword and ranger.dbPassword. ranger.adminExistingSecret empty.

Strong password

With uppercase and lowercase letters, a number and a special character, meeting the chart's minimum length.

Integrations Job

With rangerIntegrations.configJob.enabled: true, ranger.adminPassword is still required in the values file, even with the Secret.

The Ranger admin password

Where the admin password comes from

Your choice changes the commands and passages below.

namespace <NAMESPACE>Who logs inlocal admin userRanger Adminlocal usersValues filetemporary passwords
  1. Who logs in. Without a directory, only local Ranger users, starting with admin. Chart default: local admin user. (tdp-ranger.ldap.enabled)
  2. Ranger Admin. Validates local user passwords. The admin user logs in with the password from ranger.adminPassword or the ranger.adminExistingSecret Secret. Chart default: local users. (tdp-ranger.ldap.enabled)
  3. Admin password. Admin and database user passwords are in ranger.adminPassword and ranger.dbPassword, with temporary values until you change them. Chart default: temporary passwords in the values file. (tdp-ranger.ranger.adminPassword · tdp-ranger.ranger.adminExistingSecret)

Where the admin password comes from: Values file (default)

namespace <NAMESPACE>Who logs inlocal admin userRanger Adminlocal usersValues filetemporary passwords
  1. Who logs in. Without a directory, only local Ranger users, starting with admin. Chart default: local admin user. (tdp-ranger.ldap.enabled)
  2. Ranger Admin. Validates local user passwords. The admin user logs in with the password from ranger.adminPassword or the ranger.adminExistingSecret Secret. Chart default: local users. (tdp-ranger.ldap.enabled)
  3. Admin password. Admin and database user passwords are in ranger.adminPassword and ranger.dbPassword, with temporary values until you change them. Chart default: temporary passwords in the values file. (tdp-ranger.ranger.adminPassword · tdp-ranger.ranger.adminExistingSecret)

Where the admin password comes from: Secret

namespace <NAMESPACE>Who logs inlocal admin userRanger Adminlocal usersAdmin Secretadmin password
  1. Who logs in. Without a directory, only local Ranger users, starting with admin. Chart default: local admin user. (tdp-ranger.ldap.enabled)
  2. Ranger Admin. Validates local user passwords. The admin user logs in with the password from ranger.adminPassword or the ranger.adminExistingSecret Secret. Chart default: local users. (tdp-ranger.ldap.enabled)
  3. Admin password. The admin password comes from a Secret you created, in the ranger.adminExistingSecretPasswordKey key. Release notes show the Secret name instead of the password. Chart default: temporary passwords in the values file. (tdp-ranger.ranger.adminPassword · tdp-ranger.ranger.adminExistingSecret)
Choose where the admin password comes from and see what changes. Click an element to see the corresponding default.

Values file. Both passwords are in your values file. Release notes show the admin password.

Click the markers to understand each line.

1tdp-ranger:
2ranger:
3 adminPassword: "<ADMIN_PASSWORD>"
4 dbPassword: "<DATABASE_PASSWORD>"

The password for the UI admin user. Also used by the integrations Job.

  1. Admin password (linha 3). The password for the UI admin user. Also used by the integrations Job.
  2. Database password (linha 4). The password for the database ranger user. With bundled PostgreSQL, also the password for its root and hive roles.
Passwords in the values file

Secret. The admin password comes from a Secret you create beforehand, and release notes show the Secret name and key instead of the password. The database password stays in ranger.dbPassword.

Click the markers to understand each line.

1tdp-ranger:
2ranger:
3 adminExistingSecret: "ranger-admin-credentials"
4 adminExistingSecretPasswordKey: "password"
5 dbPassword: "<DATABASE_PASSWORD>"

The Secret name holding the admin password, in the Ranger namespace. When set, the chart does not use adminPassword for login.

  1. Admin Secret (linha 3). The Secret name holding the admin password, in the Ranger namespace. When set, the chart does not use adminPassword for login.
  2. Key (linha 4). The Secret key holding the password. The chart default is password.
  3. Database password (linha 5). Still in the values file.
Admin password in a Secret

Create the Secret in the Ranger namespace before installing:

Terminal input
kubectl create secret generic ranger-admin-credentials \
--from-literal=password='<ADMIN_PASSWORD>' -n <NAMESPACE>

Install with the values file

The new passwords take effect with the release.

Terminal input
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-ranger \
--version 3.0.3 \
-n <NAMESPACE> \
-f <VALUES_FILE>

Success criteria

The Ranger UI accepts the admin user with the new password. Release notes show the password, or the Secret and key it comes from:

Terminal input
helm get notes <RELEASE_NAME> -n <NAMESPACE>

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. Installation rejected: searchFilter is empty. Cause: With LDAP enabled, the chart rejects installation when ldap.user.searchFilter, usersync.ldap.userSearchFilter or usersync.ldap.groupSearchFilter is empty. What to do: Fill in all three filters, restricted to groups allowed to use Ranger (scenario 2).
  2. Directory user cannot log in. Cause: To log in, users must pass ldap.user.searchFilter and have already been imported by UserSync, through usersync.ldap filters. What to do: Check whether the user belongs to the filter groups and whether UserSync has already imported them (scenario 4).
  3. UserSync shows Connection refused right after installation. Cause: The first synchronization attempted the Ranger Admin API before it was ready. UserSync schedules the next attempt only after the minimum interval enforced by Ranger. What to do: Once Ranger Admin responds to API calls, restart the UserSync pod without waiting for the interval (scenario 4).
  4. LDAPS fails with a server signed by a private CA. Cause: The LDAP server is signed by a private CA that is not in truststore.pem, or ldap.tls.enabled is still false. What to do: Create the Secret with the CA in truststore.pem and enable ldap.tls.enabled (scenario 3).

Best practices​

  • Change temporary passwords to strong passwords before any real use.
  • Store passwords in Secrets, such as the LDAP bind password and, optionally, the admin password.
  • Restrict all three LDAP filters to groups allowed to use Ranger.

All parameters​

Filter by name or group. Keys are under the chart prefix.

39 of 39 parameters

ParameterDescriptionChart default
tdp-ranger.ranger.adminUserPasswordsUI administrator useradmin
tdp-ranger.ranger.adminPasswordPasswordsAdmin password (temporary). Required with the integrations JobChangeMe!T3c
tdp-ranger.ranger.adminExistingSecretPasswordsSecret with the admin password instead of adminPassword""
tdp-ranger.ranger.adminExistingSecretPasswordKeyPasswordsThe key in that Secretpassword
tdp-ranger.ranger.dbUserPasswordsDatabase userranger
tdp-ranger.ranger.dbPasswordPasswordsDatabase password (temporary). With bundled PostgreSQL, also the password for root and hive rolesChangeMe!T3c
tdp-ranger.ldap.enabledLDAPLogin through LDAP or Active Directoryfalse
tdp-ranger.ldap.connection.urlLDAPServer URL. ldaps:// for TLSldap://<ldap-host>:389
tdp-ranger.ldap.connection.referralLDAPfollow, ignore ou throwignore
tdp-ranger.ldap.bind.dnLDAPService account that searches the directorycn=<ldap-bind-user>,dc=<example>,dc=com
tdp-ranger.ldap.bind.passwordSecret.nameLDAPSecret with the bind passwordtdp-ranger-ldap-secret
tdp-ranger.ldap.bind.passwordSecret.keyLDAPThe key in that Secretbind-password
tdp-ranger.ldap.baseDnLDAPDirectory base DNdc=<example>,dc=com
tdp-ranger.ldap.user.searchBaseLDAPUser search baseou=users,dc=<example>,dc=com
tdp-ranger.ldap.user.searchFilterLDAPWho can authenticate (0 is the login name). Required with LDAP(&(objectClass=person)(uid=0)(memberOf=cn=<ranger-users-group>,ou=groups,dc=<example>,dc=com))
tdp-ranger.ldap.user.dnPatternLDAPDN pattern for direct bind, as an alternative to searching""
tdp-ranger.ldap.user.searchScopeLDAPsub, one ou basesub
tdp-ranger.ldap.user.objectClassLDAPUser class (person in Active Directory)person
tdp-ranger.ldap.user.nameAttributeLDAPLogin name attribute (sAMAccountName in Active Directory)uid
tdp-ranger.ldap.group.searchBaseLDAPGroup search baseou=groups,dc=<example>,dc=com
tdp-ranger.ldap.group.searchFilterLDAPGroup filter ((objectClass=group) in Active Directory)(objectClass=groupOfNames)
tdp-ranger.ldap.group.searchScopeLDAPsub, one ou basesub
tdp-ranger.ldap.group.objectClassLDAPGroup class (group in Active Directory)groupOfNames
tdp-ranger.ldap.group.nameAttributeLDAPGroup name attributecn
tdp-ranger.ldap.group.memberAttributeLDAPGroup members attributemember
tdp-ranger.ldap.tls.enabledLDAPSTrusts CAs from the Secret below, in addition to the Java default CAs, in Ranger Admin and UserSyncfalse
tdp-ranger.ldap.tls.truststore.secretNameLDAPSSecret with LDAP server CAstdp-ranger-ldap-certs
tdp-ranger.ldap.tls.truststore.keyLDAPSSecret key with CAs, in PEMtruststore.pem
tdp-ranger.usersync.enabledUserSyncEnables UserSyncfalse
tdp-ranger.usersync.syncSourceUserSyncUser source (ldap with the directory)unix
tdp-ranger.usersync.syncIntervalUserSyncSynchronization interval. Ranger enforces its own minimum360
tdp-ranger.usersync.ldap.userSearchFilterUserSyncUsers imported by UserSync. Required with LDAP""
tdp-ranger.usersync.ldap.groupSearchFilterUserSyncGroups imported by UserSync. Required with LDAP""
tdp-ranger.usersync.roleAssignment.enabledUserSyncGrants Ranger roles to directory users and groups when UserSync imports themnot set
tdp-ranger.usersync.roleAssignment.rulesUserSyncRole rules: each with role, users and groupsnot set
tdp-ranger.usersync.resources.requests.cpuUserSyncCPU requested for the UserSync pod100m
tdp-ranger.usersync.resources.requests.memoryUserSyncMemory requested for the UserSync pod256Mi
tdp-ranger.usersync.resources.limits.cpuUserSyncUserSync pod CPU limit500m
tdp-ranger.usersync.resources.limits.memoryUserSyncUserSync pod memory limit1Gi

Next steps​