Accounts and access
Sign-in, sessions and the way organizations are kept apart are the same in Khala and OverMind. Roles are not: each product has its own, because the work in each is different.
Organizations and members
Section titled “Organizations and members”A customer is an organization. Everything a product stores for you belongs to your organization, and every query filters by the organization of the authenticated session, which the server decides. A request cannot name a different one.
Members belong to an organization with one role. In OverMind a person can be a member of several organizations and switch between them; each keeps its own role for that person.
Signing in
Section titled “Signing in”Sign-in uses a one-time code sent by email. There are no passwords to store, leak or reuse.
| Property | Value |
|---|---|
| Code | 6 digits from a cryptographic random source |
| Validity | 10 minutes, single use |
| Attempts | 5 per code |
| Storage | HMAC-SHA256 of the code; compared in constant time |
| Request limits | 3 codes per email and 20 per IP address in 15 minutes |
The request answers the same for known and unknown addresses, so it cannot be used to find out who has an account. Because the code travels by email, every installation needs a mail route.
Sessions
Section titled “Sessions”| Property | Value |
|---|---|
| Storage on the server | SHA-256 of the token. The token itself is not stored |
| Lifetime | 30 days absolute, 7 days idle |
| Revocation | On sign-out, immediately |
| Web | Cookie with HttpOnly, Secure and SameSite=Lax, plus an origin check on every request that changes data |
| Desktop | The operating system’s keychain |
Single sign-on
Section titled “Single sign-on”Email codes are the default because they need nothing from you except a mail route. Both products can hand sign-in to your identity provider instead. Single sign-on changes who verifies the person; sessions and roles stay as described here. The protocols Khala accepts are listed in Isolation and access.
Both products have four roles, checked on the server for every operation. A button hidden in the panel is a convenience, not the control.
| Khala | OverMind | |
|---|---|---|
| Reads everything | Viewer | Viewer |
| Does the daily work | Builder: defines agents, builds them and deploys to staging | Member: connects agents, uploads runs, assigns and acknowledges findings and alerts |
| Decides and approves | Admin: approves production, manages the catalog, stops environments | Admin: accepts risks, sets baselines, raises deploy criteria, manages API keys and members |
| Owns the organization | Owner: everything an admin does, plus managing members | Owner: also changes the organization’s name and evidence retention, and manages other owners |
The full lists are in Observe and govern for Khala and Roles and API keys for OverMind.
Machine access
Section titled “Machine access”OverMind’s CLI, CI jobs and integrations call the API with API keys. A key has no role: it can call only what its scopes allow.