Isolation and access
Isolation between organizations
Section titled “Isolation between organizations”Khala is multi-tenant. Each customer is an organization, and every row of customer data carries its organization.
- Every query filters by the organization of the session. The organization comes from the authenticated session on the server, never from a parameter the client sends.
- Asking for another organization’s resource answers
404, the same as a resource that does not exist. The API does not reveal that it exists. - Indexes start with the organization, so the filter is also the efficient path.
- Pull requests that add a query must add a test proving that another organization cannot see the data.
Isolation is enforced in the application layer. It is what separates customers in SaaS. In BYOC and on-premise you are the only organization in the database, and the boundary of your account or your network comes first.
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. What every Renaiss product shares about organizations and sign-in is in Accounts and access; the values below are Khala’s.
| 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 |
| New code | Invalidates the previous one |
| Request limits | 3 codes per email and 20 per IP address in 15 minutes, counted in the database |
The request endpoint answers the same for known and unknown addresses, so it cannot be used to find out who has an account.
Sessions
Section titled “Sessions”| Property | Value |
|---|---|
| Token | 256 random bits |
| 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; sent as a bearer token |
Single sign-on (optional)
Section titled “Single sign-on (optional)”Email codes are the default because they need nothing from you except a mail route. If you prefer members to sign in with their corporate credentials, Khala can hand sign-in to your identity provider instead.
| Option | Use it with |
|---|---|
| OpenID Connect | Microsoft Entra ID, Okta, Google Workspace, Keycloak and other providers that support it |
| SAML 2.0 | Identity providers that do not offer OpenID Connect |
| Other credential systems | Directories such as Active Directory or LDAP connect through your identity provider. If you use a different system, we look at connecting it with you |
Single sign-on changes who verifies the person. It does not change the rest of this page:
- Sessions keep the same token, lifetime, cookie and revocation rules.
- Roles are still Khala’s four roles. How groups in your directory map to them is set up during onboarding.
- You choose whether email codes stay as a fallback or are turned off.
- Removing someone from your directory stops them from signing in again.
Four roles: viewer, builder, admin and owner. The role is checked on the server for each operation. See Observe and govern.
Browser and API protections
Section titled “Browser and API protections”- Cross-origin requests are accepted only from an allowlist of origins. Never a wildcard.
- Responses carry
X-Content-Type-Options: nosniff,X-Frame-Options: DENY,Referrer-Policy: no-referrerand a restrictive Content Security Policy. - Request bodies are limited to 2 MiB and validated against the API contract.
- API responses are marked private and are not cached by intermediaries.
What the client keeps
Section titled “What the client keeps”Web. The session token is an HttpOnly cookie that scripts cannot read. To open quickly,
the panel keeps a cache of some lists in the browser (IndexedDB): the home screen, the agent
list and agent summaries, catalog lists and observability summaries. Specs, spec versions and
the session are not in it. The cache expires after 24 hours and is cleared on sign-out.
Desktop. The same cache, and the session token in the operating system’s keychain. The application has no general access to the file system or the shell, and it loads no remote scripts.
By deployment modality
Section titled “By deployment modality”| SaaS | BYOC | On-premise | |
|---|---|---|---|
| What separates you from other customers | The organization filter on every query, and one sandbox per build | Your cloud account. No other customer is in it | Your network. No other customer is in it |
| Where the panel and API are reachable | A public HTTPS endpoint. Private connectivity as agreed | Your choice: an internal load balancer, your VPN or a private link. Public only if you decide | Your internal network |
| Domain and TLS certificate | Renaiss’ | Yours | Yours, from your certificate authority |
| Who sends the sign-in email | Renaiss’ email provider | Your cloud’s email service or your provider | Your internal SMTP relay |
| Single sign-on (optional) | Your identity provider, reached over the internet | Your identity provider, inside or outside your account | Your identity provider, inside your network. Needs no internet |
| Where session records rest | Database operated by Renaiss | Your database | Your database |
| Allowed origins | Set by Renaiss | Set by you in KHALA_ALLOWED_ORIGINS |
Set by you in KHALA_ALLOWED_ORIGINS |
| Clients | Web and desktop | Web and desktop, built for your endpoint | Web and desktop, built for your endpoint |
Sign-in, sessions, roles and the browser protections on this page are the same code in all three.