Skip to content

Password Security 🟑 BETA

Confirm that passwords and resets are owned by the directory service, and that General Bots stores no internal password database.

Admin guide Β· password control runbook

When to use Before you start Steps Verify Roll back
Reviewing authentication, changing an admin password Directory service reachable, admin session Inspect auth path, change password, retest Old password refused, no secret in repo Restore directory config from snapshot

When to use

Use this runbook when a password policy or reset flow is questioned, or when an administrator password must be changed.

Before you start

  • The directory service (Zitadel) owns user accounts and password policy. The server does not keep an internal password store and does not decide a password policy of its own.
  • Login verifies the password through the directory v2 session check (or the documented development fallback with a matching password). An unverified crm_contacts row is never sufficient.
  • Desktop editions use the wizard's admin-credentials.json in the stack for the first administrator and write no plain-text ~/.gb-setup-credentials.
  • MFA and session policy belong to the directory service; configure them there, not in config.csv.

Steps

# 1. Confirm the directory service is running.
sudo incus exec directory -- pgrep -a zitadel

# 2. Confirm no local password store is consulted by the auth path.
grep -RIn "password" botserver/crates/botsecurity-auth/src --include='*.rs' | head -30

# 3. Change the administrator password through the documented endpoint.
#    POST /api/auth/password with the current and new password; do not print
#    either value to a log or store them in a file in the repository.

# 4. Confirm no credential was written into the tree.
grep -RIn "password" botbook/src 09-security 2>/dev/null | head -5

Verify

Check Surface Pass condition
Password owner directory service configuration policies set in the directory
No internal store auth source no local password table consulted
Reset POST /api/auth/password old password rejected, new accepted
Bootstrap wizard record admin credential in the stack only
Secrets repository no credential value present
Logs botserver.log no token or password printed

Roll back

πŸ”΄ Restore directory_config.json from a snapshot if a policy change broke sign-in, then re-run the table. Keep the incident evidence under /tmp and never in the repository; follow incident response for a suspected credential leak.