# Basic authentication
# Add more users
# Docker-compose
The default user and the password are test .
If you need multiple users in local authentication run the following code substituting <username> with the actual username of the new user to add:
The command will prompt you to choose a password for that user.
sudo docker run --rm -it -v "$PWD/default-secrets/identity:/mnt" registry.gitlab.com/ontopic/suite/identity-service:v2025.1.1 htpasswd /mnt/password-file-db <username>
The list of generated users is stored in ./default-secrets/identity/password-file-db .
Restart the identity-service to apply the changes:
sudo docker compose restart identity-service
# Kubernetes
Edit the list of users in the values.yaml file:
users:
list:
- username: test
password: "test"
email: test@email.it
fullname: Test
groups: []
roles:
- ots-admin
# Disable basic authentication
Basic authentication is enabled by default.
# Docker-compose
Edit the .env file emptying the variable IDENTITY_SERVICE_PROVIDER_PASSWORD.
Replace the line:
IDENTITY_SERVICE_PROVIDER_PASSWORD=password-file
by
IDENTITY_SERVICE_PROVIDER_PASSWORD=
# Kubernetes
Edit the values.yaml file to disable users:
users:
enabled: false