Sign-in:
- Google, GitHub, Microsoft and any OpenID Connect provider, set up in the
admin panel (secrets are write-only). PocketBase talks to the provider,
and docwell-server keeps the state and PKCE verifier. Accounts a
provider creates follow the sign-up switch and the domain list; refused
ones are removed again.
- Two-step sign-in with an authenticator app (TOTP), set up under "Your
account", with ten single-use recovery codes. After any first factor
(password, email code, provider) the session is held behind a
five-minute challenge: five tries, each code works once. Turning it off
needs a code. Managers can reset it for someone who lost their phone.
Both the web app and the admin panel ask for the code.
Integrations:
- Personal API tokens ("dw_…") that act as their owner, read-only or
read-write, with optional expiry. Only a hash is stored, and the token is
shown once. Tokens cannot manage tokens or two-step sign-in. Admins see
and can revoke their organization's tokens.
- Workspace webhooks for page, comment and space events. Deliveries are
HMAC-SHA256 signed and retried (10 s, 1 min, 5 min), with a 30-day log
and a test button. Loopback and link-local addresses are refused
(DOCWELL_WEBHOOKS_ALLOW_LOCAL is for development).
Audit log: sign-ins (including failures and second steps, filed under the
account's organization) and every successful change request, by route and
path ids, never bodies. Superadmins see everything and org admins their
organization. It is searchable and exportable as CSV in the admin panel's
new Security page, and kept for DOCWELL_AUDIT_RETENTION_DAYS (365).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2.9 KiB
Admin panel
The admin panel is at /admin/ on the API server (or on the web app's address in the all-in-one setup).
Superadmins and organization admins can sign in; organization admins see only their organization.
| Section | What it is for |
|---|---|
| Overview | Number of users, workspaces, spaces, pages and files, storage used, pages open right now, and (for superadmins) version, uptime and database health. |
| Users | Find, create, edit, disable and delete accounts; invite people by email; send a password-reset email; turn off someone's two-step sign-in when they lost their phone. |
| Organizations | Create, rename and delete organizations (superadmins), or manage your own. |
| Authentication | Turn self-service sign-up on or off, limit it to email domains, enable sign-in links by email, and add sign-in with Google, GitHub, Microsoft or any OpenID Connect provider. |
| Branding | The server's name, accent colour and logo, shown on sign-in pages and in emails. |
| The SMTP server for all emails, with a test button. | |
| Storage | Keep uploaded files on docwell-db's disk or in an S3-compatible bucket, with a test button. |
| Security | The audit log (sign-ins and every change, with who, when and from where; searchable, exportable as CSV) and everyone's API tokens. |
| Maintenance | Create, download and delete backups; see the background jobs (search indexing) and run them by hand. |
Everything except Users, Organizations and Security is for superadmins only. Organization admins see their own organization's people, audit log and tokens.
Sign-in providers
Under Authentication → Sign-in providers, turn a provider on and enter the client ID and secret you get when you
register Docwell with it. Register the callback address shown on that page (DOCWELL_WEB_URL/oauth/callback). For
OpenID Connect (Keycloak, Authentik, Okta, Entra ID and others), also enter the authorization, token and user info
URLs from the provider's discovery document (/.well-known/openid-configuration).
New accounts made through a provider follow the sign-up rules above: with sign-up off or the email's domain not allowed, the sign-in is refused. People can turn on two-step sign-in with an authenticator app under Your account; it applies to every way of signing in.
Sign-in links
With Sign-in links by email on, the sign-in page offers Email me a sign-in link. The email holds a link and an 8-digit code; both work once, for 15 minutes. Email must be set up first.
Moving to S3
Switching storage does not move files that were uploaded before: copy them from pb_data/storage to the bucket
with your usual tools (for example rclone), keeping the folder structure, before switching.
Rebuilding the search index
Search follows edits within a few seconds. If results ever look wrong, run search.rebuild in Maintenance.