Skip to content

Login, roles, and audit

The first admin logs in with a password, created with KELPIE_INITIAL_ADMIN_PASSWORD or kelpie create-admin. Admins add more people who log in with a password under Access → Users; a new user has no role, so they see nothing until one is given under Roles. Admins reset local users’ passwords on the same page, or with kelpie set-password <username>.

Sessions end after KELPIE_SESSION_IDLE_TIMEOUT (8 hours) without requests, and after KELPIE_SESSION_MAX_AGE (7 days) regardless.

Add a provider under Access → Login providers. The page shows the redirect URI to register with the provider. Behind a proxy, set KELPIE_PUBLIC_URL (for example https://kelpie.example.com) so the redirect URI uses the external address.

Users from a provider start without roles. Map values of the provider’s groups claim to Kelpie groups, then give the groups a role, either on everything or on single stacks:

Role Can
viewer See stacks, services, logs, and history.
operator Also deploy, approve, roll back, restart, and open terminals.
editor Also edit files and secrets, and see services’ environment variables.
admin Everything, including repositories and access.

Roles are checked on every request, including WebSocket connections for logs and terminals.

Set KELPIE_SEPARATE_APPROVER=true to stop people from approving their own changes on stacks in approve mode. See Approvals.

Scripts authenticate with API tokens. See API.

Logins, changes, secret reveals, terminal sessions, and refused attempts end up in the audit log, with the client’s IP address. Behind a proxy, set KELPIE_TRUSTED_PROXIES so that address comes from X-Forwarded-For.

Audit entries are kept for a year (KELPIE_AUDIT_RETENTION, 0d keeps everything). Finished deployments and unused revisions are deleted after 90 days, keeping at least the newest 20 per stack (KELPIE_DEPLOYMENT_RETENTION, KELPIE_KEEP_DEPLOYMENTS).