Security
This page is the overview. The normative rules for implementers are in the Specification: Security. The settings you apply are in Production notes.
Accounts are isolated in the database
Every principal belongs to an account, and a principal in one account cannot see or change another account’s conversations. PostgreSQL row level security enforces it, not only the application code. The gateway checks at startup that its application role cannot bypass row level security, and it refuses to start if it can.
Who you are
- Tokens. Every connection is authenticated before the server accepts
initialize. A bearer token maps to one principal. Tokens are read from a file you control, must be at least 8 characters, and should be long and random. - Sign-in. Signing in through an OpenID Connect provider is experimental. Local development keeps the token file.
- Discovery. The discovery document needs no authentication and never reveals a secret.
What you may do
- In a conversation. The server decides from the journal, never from what a client says about itself. A non-participant gets
not_participant, an observer who sends a message getsnot_authorized, only owners invite members and add agents, and only responders answer an approval. - In an account. A role (owner, maintainer, developer, reporter, operator) holds named permissions, and a refusal names the missing one. See Permissions.
- In production. Production changes only through an approved promotion. Nobody approves a promotion they requested, and an environment can require more approvals or limit approvers to certain roles.
Agents ask first
An approval records that a responder saw a specific operation and answered it. The answer is bound to a digest of the exact details shown, and only the first valid answer counts. A server does not run an operation that requires approval until it is answered ACCEPTED.
Fleets pull, and hold narrow credentials
- A fleet agent connects out to the control plane. Nothing connects into the cluster, and the control plane holds no credentials for any data plane.
- The fleet’s credential lives only in its own cluster. The control plane stores its SHA-256.
- Mutual TLS is optional. The client certificate carries the fleet in a URI SAN,
spiffe://robotelos.io/fleet/<id>, and the coordinator checks it against the fleet the credential belongs to. - In the installation charts, the operator and the agent have a Role in their own namespace only, and a network policy admits traffic from that namespace only.
Privacy
Events carry participant IDs and display names only. Phone numbers, messaging-app IDs and e-mail addresses stay in the account’s party directory and never appear in conversation events.
Every change is recorded
A change of desired state writes an audit entry in the same transaction as the change: who, what, when and the trace id. See Observability.
What you must do yourself
- Terminate TLS in front of every binding.
- Keep tokens and database passwords out of version control.
- Use the right database roles, and never allow the unsafe role override outside local experiments.
Report a vulnerability
The project does not yet publish a security policy. Do not open a public issue for a vulnerability. Contact a maintainer listed in MAINTAINERS.md directly.
Next steps
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.