Security

How Robotelos keeps accounts apart, who can do what, how approvals and fleets are protected, and what you must configure yourself.

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.

Where Robotelos draws its security lines A client authenticates with a bearer token at the gateway. The gateway reads PostgreSQL as an application role bound by row level security, so accounts never share rows. A fleet agent dials out to the control plane and nothing connects into the cluster. POSTGRESQL · ROW LEVEL SECURITY FLEET CLUSTER Clientbearer token Gatewayauthenticates everyconnection ROBOTELOS_APPAccount Arows of A only ROBOTELOS_APPAccount Brows of B only Control planedesired state Fleet agentcredential in itsown cluster token app role dials out Accounts never share rows. A fleet never accepts inbound connections.
Where the lines are drawn: a token at the gateway, row level security between accounts, and an outbound-only fleet link.

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 gets not_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