Disable the local admin account after SSO setup
After configuring single sign-on (SSO) for vCluster Platform, disabling the local admin account is a recommended security practice for enterprise environments. This prevents unauthorized access through the default credentials and ensures all authentication flows through your identity provider.
Prerequisites​
Before disabling the local admin account:
- SSO is configured and tested successfully
- At least one SSO user has global admin permissions
- You have verified SSO login works with the expected permissions
- You have kubectl access to the cluster running vCluster Platform
Ensure you can log in using SSO with global admin permissions before disabling the local admin. Locking yourself out requires recovery steps.
Disable the admin account​
There are two steps to fully disable the local admin:
- Lock the admin user in the UI
- Prevent the admin from being recreated on startup
Lock the admin user​
Log in to vCluster Platform using your SSO credentials with global admin permissions.
Go to Platform > Users & Roles.
In the admin user row, click the actions menu and select Lock User.
The admin account is now locked. The user cannot log in and any access keys generated for the admin will stop working.
Prevent admin recreation on startup​
To prevent the platform from recreating a missing admin when an instance becomes leader, update the values file that manages your platform release:
admin:
create: false
Apply the configuration:
helm upgrade vcluster-platform loft/vcluster-platform \
--namespace vcluster-platform \
--values vcluster-platform-values.yaml
If the values file contains admin credentials, remove them after you lock the account. Keep all other custom release values in the file. Leaving stale credentials in configuration files is a security risk.
Recovery​
Admin password recovery doesn't unlock a locked account. If SSO becomes unavailable, restore it or use an existing authenticated global admin session. Then complete these steps:
-
Go to Platform > Users & Roles.
-
In the admin user row, click the actions menu and select Unlock User.
-
Re-enable password authentication if it was disabled. Generate a new configuration with password login enabled:
kubectl get secrets/loft-manager-config -n vcluster-platform \-o jsonpath="{.data.config}" | base64 -d | \yq "del(.auth.password.disabled)" | base64Copy the output, then edit the secret:
kubectl edit secret loft-manager-config -n vcluster-platformReplace
.data.configwith the new value and restart the vCluster Platform pods. -
Reset the admin password using one of the available methods.
-
Log in with the reset password.
After regaining access, investigate the SSO issue, and fix it before re-locking the admin account.