Default Admin User
Manage the default admin user credentials and access settings.
During installation, Connectware creates a default administrator user to ensure immediate system access. This user is named admin and has the connectware-admin role assigned to provide comprehensive permissions.
We strongly recommend changing the initial admin username and password after the first login. The configuration parameters described below only set the password during initial installation and cannot be used to change it afterwards. See Changing Usernames and Changing User Passwords.
Admin User Parameters
The following configuration parameters are available for configuring the admin user.
Parameters differ between Kubernetes and Docker deployments. An important difference is that Kubernetes Helm installations generate a random password when initialPassword is not set, whereas Docker installations use the static default password admin.
Admin User Parameters (Kubernetes)
global.authentication.adminUser.initialPassword
Sets the initial password for the admin user. Must be a plain-text string.
Random Password
global.authentication.adminUser.existingSecret
Name of an existing Kubernetes Secret containing the initial password. The Secret must have a key named initialPassword with a Base64-encoded password value. See Using an Existing Kubernetes Secret for the Initial Admin Password.
Not set
global.authentication.adminUser.enabled
Enables/disables the admin user. Accepts a boolean value (true or false). See Disabling the Default Admin User.
true
Admin User Parameters (Docker)
CYBUS_INITIAL_ADMIN_USER_PASSWORD
Sets the initial password for the admin user. Must be a Base64-encoded string.
admin
CYBUS_ADMIN_USER_ENABLED
Enables/disables the admin user. Accepts a boolean value (true or false). See Disabling the Default Admin User.
true
Disabling the Default Admin User
Before disabling the default admin user, ensure you have created at least one other user with full administrative permissions. Otherwise, you may lose administrative access to your Connectware installation.
You can disable the default admin user after creating custom users that have admin permissions.
If the global.authentication.adminUser.enabled Helm value (Kubernetes) or the CYBUS_ADMIN_USER_ENABLED environment variable (Docker) is not set, or if it has a value other than false, the default admin user is enabled and can log in with suitable credentials.
Disabling the Default Admin User (Kubernetes)
Open the
values.yamlfile.Set the
global.authentication.adminUser.enabledHelm value tofalse.
global:
authentication:
adminUser:
enabled: falseUpgrade your Helm chart to apply the Helm configuration changes. For details, see Applying Helm Configuration Changes.
helm upgrade -n ${NAMESPACE} ${INSTALLATION_NAME} oci://repo.cybus.io/charts/connectware -f values.yamlTry logging in with the admin user credentials to verify that the account has been disabled. You should receive a "wrong password" error.
Disabling the Default Admin User (Docker)
Navigate to your Connectware installation directory. If you have used the default values during installation, this is the installation folder:
/opt/connectware. The directory contains an.envfile that is loaded when starting Connectware.Open the
.envfile.Set the
CYBUS_ADMIN_USER_ENABLEDenvironment variable tofalse.
environment:
- CYBUS_ADMIN_USER_ENABLED=falseStart or restart Connectware. For more information, see Restarting Connectware.
Try logging in with the admin user credentials to verify that the account has been disabled. You should receive a "wrong password" error.
Using an Existing Kubernetes Secret for the Initial Admin Password (Kubernetes only)
As an alternative to providing the initial admin password using the global.authentication.adminUser.initialPassword Helm value, you can specify the name of an existing Kubernetes Secret in the global.authentication.adminUser.existingSecret Helm value.
The Secret must contain a key named initialPassword. Unlike the global.authentication.adminUser.initialPassword Helm value which accepts plain-text passwords, the Secret value must be Base64-encoded. We recommend using an immutable Secret, as the password is only read during initial installation. Changing the Secret later will not update the admin user's password.
Create the Kubernetes Secret using your preferred method. The following example creates a Secret with the password
Super_S3cret_Password, usingecho -n ${MY_PASSWORD} | base64to encode the password before storing it in the Secret:
Open the
values.yamlfile.Set the
global.authentication.adminUser.existingSecretHelm value to the name of the Kubernetes Secret you created.
Install Connectware using the Helm chart. For more information, see Install Connectware on Kubernetes.
Try logging in with the admin user credentials to verify that your initial admin user password was applied.
Last updated
Was this helpful?

