Accounts
Administrator Account with the Sicura Console Image¶
The Sicura Console creates a built-in account named admin with full administrative rights when it sets up its database on first start. Its password is the value of the ADMIN_PASSWORD environment variable, or ChangeMe123! if that is not set; see Sicura Console Environment Variables. ADMIN_PASSWORD is read only on that first start. To change the password later, sign in as admin, open your account's edit page under Access Management -> Users, and use its Set password section.
For access to the REST API, create a personal API token under Settings -> API instead of a shared admin token.
Configuring the Administrator Account (Classic Console)¶
IMPORTANT: The options in this section are set in
/etc/sicura/sicura-console.yamland apply to the Classic Console only. The Sicura Console does not readsicura-console.yaml.
The Classic Console creates a built-in account named admin with full admin privileges. The account has no password until you set one with main.default_admin_password, so nobody can sign in to a new Classic Console until that option is set.
You can also change the account's user name, and set a default admin token to use the REST API from systems like Puppet.
Setting the Admin Password¶
The password is stored in the config file as a crypt(3)-style salted SHA-256 hash (the $5$ format), never as plain text. Generate the hash with openssl, which prompts for the password:
Then add the output to /etc/sicura/sicura-console.yaml:
With the container, pass the option through SICURA_CONFIG or SICURA_CONFIG_FILE; see Config.
The Console applies this password to the admin account every time it starts. A password changed for that account in the Console lasts only until the next restart, so change the password by changing the hash here.
Changing the Default Username¶
It is also best practice to change the default admin user name to something site specific:
Setting the Default Admin Token¶
The default admin token lets a script use the REST API as the built-in admin account without signing in. Send it in the Auth-Token-Signature request header.
Note: No default admin token exists until you set one.