Disabling the Admin Interface
This guide is a combination of the upstream documentation and how we implemented it.
Modify the Host Secret
Section titled “Modify the Host Secret”To start with the deactivation, you must first modify the secret on the host’s shell. Execute the following command:
k3s kubectl patch secret vaultwarden-vaultwardensecret -n ix-vaultwarden --type='json' -p='[{"op": "remove", "path": "/data/ADMIN_TOKEN"}]'
Update Container Config
Section titled “Update Container Config”Next, while inside the Vaultwarden container, run the command below to modify the config.json
file:
sed -i.bak '/admin_token/d' /data/config.json
Adjust the App Configuration
Section titled “Adjust the App Configuration”Finally, head to the Vaultwarden app’s configuration:
- Find and disable the admin interface option (if it is still enabled).
- Click “Save” at the bottom to apply the changes.