Security
Security, explained by how the system is built
- Tenant isolation
- Organisation resolved from the session or API key on every request — never from the request body.
- Access control
- 5 roles, 29 permissions, and an own-leads scope for sales reps.
- Credentials
- Encrypted at rest and write-only through the API. Only the last four characters are ever shown.
- Sessions
- httpOnly cookies, 12-hour expiry and CSRF protection on every change.
- Audit trail
- Sign-ins, role changes, exports, credential changes and handovers, with actor and IP.
- Certifications
- None claimed. Controls are described as built, and we answer your questionnaire directly.
On this page
01
Tenant isolation
Every customer organisation is a tenant. Isolation is enforced in the data layer on every request, not by convention in individual screens.
- 01
Request
Arrives with a session cookie or a Bearer API key. Bodies and query strings carry no tenant id.
- 02
Authenticate
The token is hashed and matched. Expired, revoked or disabled access is refused.
- 03
Request context
Organisation, role and permissions are resolved on the server from that session or key.
- 04
Scoped query
Every tenant table is filtered by organisation id through one shared helper.
- 05
Response
Another organisation’s record returns 404, so its existence is never confirmed.
- One scoping path
- Every tenant table carries an organisation id, and queries go through a shared helper that applies the organisation filter. A query without it fails review instead of leaking silently.
- Organisation from credentials only
- The organisation comes from the session or API key. Request bodies and query strings cannot select a tenant, and switching organisation re-checks membership on the server.
- 404, not 403
- A request for another organisation’s record returns “not found”, so the API never confirms that the record exists elsewhere.
- Inbound events matched by configuration
- Provider webhooks are routed to a tenant by the configured account — for WhatsApp, the phone number id — never by identifiers inside the payload.
# backend/app/db/tenant.py (simplified excerpt)
def scoped(db, model, ctx):
"""select(Model) restricted to the caller's organization."""
return select(model).where(model.organization_id == ctx.organization_id)
def get_scoped_or_404(db, model, id, ctx):
"""Fetch by id inside the caller's organization, or raise NotFound."""
stmt = scoped(db, model, ctx).where(model.id == id)
...02
Roles & permissions
Five roles map to 29 granular permissions, checked by the API on every endpoint. API keys carry scopes drawn from the same permissions and can never exceed the access of the person who created them.
- Super Adminsuper_admin
- RevenueOS platform operations. Cannot be granted from inside a customer organisation.
- Data scopePlatform
- Organization Adminorg_admin
- Owners and administrators of a customer workspace.
- Data scopeAll organisation data
- Sales Managersales_manager
- Team leads who run pipeline, agents, campaigns and workflows.
- Data scopeAll organisation data
- Sales Representativesales_rep
- Reps working their own pipeline and conversations.
- Data scopeLeads assigned to them, plus unassigned leads
- Viewerviewer
- Leadership, finance or auditors who need visibility without edit rights.
- Data scopeRead-only across the organisation; no call recordings
| Role | Intended for | Data scope |
|---|---|---|
| Super Adminsuper_admin | RevenueOS platform operations. Cannot be granted from inside a customer organisation. | Platform |
| Organization Adminorg_admin | Owners and administrators of a customer workspace. | All organisation data |
| Sales Managersales_manager | Team leads who run pipeline, agents, campaigns and workflows. | All organisation data |
| Sales Representativesales_rep | Reps working their own pipeline and conversations. | Leads assigned to them, plus unassigned leads |
| Viewerviewer | Leadership, finance or auditors who need visibility without edit rights. | Read-only across the organisation; no call recordings |
| Capability | Super Admin | Org Admin | Manager | Rep | Viewer |
|---|---|---|---|---|---|
| View leads | Yes | Yes | Yes | Own | Read |
| Create and edit leads, notes and follow-ups | Yes | Yes | Yes | Own | No |
| Delete, assign, import and export leads | Yes | Yes | Yes | No | No |
| Reply in conversations and hand over | Yes | Yes | Yes | Yes | No |
| Book and update appointments | Yes | Yes | Yes | Yes | No |
| Build voice agents, campaigns and workflows | Yes | Yes | Yes | Read | Read |
| Manage WhatsApp templates and auto-replies | Yes | Yes | Yes | No | No |
| Listen to call recordings | Yes | Yes | Yes | No | No |
| View analytics | Yes | Yes | Yes | Yes | Yes |
| Manage teams | Yes | Yes | Yes | No | No |
| Connect integrations and manage credentials | Yes | Yes | Read | Read | Read |
| Invite members and change roles | Yes | Yes | No | No | No |
| Create and revoke API keys | Yes | Yes | No | No | No |
| View the audit log | Yes | Yes | No | No | Yes |
| View billing and usage | Yes | Yes | Yes | No | Yes |
| Platform administration | Yes | No | No | No | No |
Own = leads assigned to the rep, plus unassigned leads. Read = can view, cannot change. Enforced by the API on every request; the interface hides what a role cannot do.
03
Sessions & authentication
Sign-in is built on opaque, server-side sessions. Nothing sensitive lives in the browser beyond a cookie that page scripts cannot read.
- Password storage
- Passwords are hashed with Argon2, a memory-hard algorithm, and re-hashed automatically when parameters are strengthened. They are never stored or logged in plain text.
- Opaque session cookies
- A random session token in an httpOnly, SameSite=Lax cookie, marked Secure in production. The database stores only its SHA-256 hash.
- Expiry and revocation
- Sessions expire after 12 hours and are revoked on sign-out. Signing in again from the same browser revokes the previous session.
- CSRF protection
- Every state-changing request authenticated by cookie must echo a separate CSRF token (double-submit), so another site cannot act on a user’s behalf.
- Brute-force limits
- Sign-in is limited to 10 attempts a minute per account and IP, and 30 a minute per IP. Failed sign-ins are written to the audit log.
- Scoped API keys
- Keys use a
ros_live_prefix, are shown once, stored as hashes and revocable. They cannot hold member, billing, integration, organisation or key-management scopes. - Security headers
- API responses send HSTS in production, deny framing, disable MIME sniffing and use a strict referrer policy.
- Single sign-on
- Not available today. If SAML or OIDC sign-in is a requirement, tell us during evaluation.
04
Encryption & secrets
Credentials for WhatsApp, LiveKit, OpenAI, Google and your webhooks are the most sensitive data RevenueOS holds. They are encrypted before they reach the database and never sent back in full.
- Provider credentials and webhook signing secrets
- Encrypted at rest with Fernet (AES-128-CBC with HMAC-SHA256). Keys come from the environment and rotate without downtime: the newest key encrypts, older keys still decrypt. Production refuses to store secrets without a configured key.
- Credentials in the API and interface
- Write-only. Responses show the last four characters, never the value.
- Passwords
- Argon2 hashes.
- Session tokens and API keys
- Stored as SHA-256 hashes. API keys are displayed once; session tokens live only in the httpOnly cookie.
- Call recordings
- Played through signed links that expire after five minutes and are bound to the call, the organisation and the recording. Requires recording permission and recorded consent.
- Data in transit
- HTTPS, with HSTS in production. The browser calls the API on the same origin and provider calls are made server-side, so no keys ship in the web bundle.
- Application logs
- Structured JSON with emails and phone numbers masked, and fields such as password, token, secret and authorization removed.
| Data | Protection |
|---|---|
| Provider credentials and webhook signing secrets | Encrypted at rest with Fernet (AES-128-CBC with HMAC-SHA256). Keys come from the environment and rotate without downtime: the newest key encrypts, older keys still decrypt. Production refuses to store secrets without a configured key. |
| Credentials in the API and interface | Write-only. Responses show the last four characters, never the value. |
| Passwords | Argon2 hashes. |
| Session tokens and API keys | Stored as SHA-256 hashes. API keys are displayed once; session tokens live only in the httpOnly cookie. |
| Call recordings | Played through signed links that expire after five minutes and are bound to the call, the organisation and the recording. Requires recording permission and recorded consent. |
| Data in transit | HTTPS, with HSTS in production. The browser calls the API on the same origin and provider calls are made server-side, so no keys ship in the web bundle. |
| Application logs | Structured JSON with emails and phone numbers masked, and fields such as password, token, secret and authorization removed. |
Disk-level encryption of databases and backups is a property of the hosting environment. We confirm it, with the provider and region, for your deployment in the security overview.
05
Audit logs
Important changes are written in the same database transaction as the change itself, with the actor, IP address and a redacted record of what changed.
- What is recorded
- Sign-ins and failed sign-ins, organisation switches including denied ones, member invitations and role changes, API keys, integration changes and tests, lead edits, deletions, assignments and exports, and conversation handovers.
- What each entry holds
- Actor, action, entity, IP address, user agent and changed fields with sensitive values redacted. Stored in UTC; shown in IST or the viewer’s own time zone.
- Who can read it
- Organisation Admins and Viewers. Entries filter by action — including prefixes such as lead.* — and by entity type.
| Time | Actor | Action | Details | IP |
|---|---|---|---|---|
| 14:32 | Priya Nair | Integration tested integration.tested | WhatsApp Cloud API · connected | 49.36.x.x |
| 14:30 | Priya Nair | Integration configured integration.configured | WhatsApp Cloud API | 49.36.x.x |
| 13:05 | Arjun Mehta | Leads exported leads.exported | Qualified leads · CSV | 103.21.x.x |
| 12:41 | Karan Rao | Organization switch denied auth.organization_switch_denied | Not a member of the requested organization | 157.48.x.x |
| 11:18 | Priya Nair | Member role changed member.role_changed | Sneha Iyer · Sales Rep → Sales Manager | 49.36.x.x |
| 10:02 | Arjun Mehta | API key created api_key.created | “Warehouse sync” · leads:read | 103.21.x.x |
| 09:47 | Unknown | Sign-in failed auth.login_failed | s•••@example.com | 185.220.x.x |
06
Consent, opt-out & retention
RevenueOS treats consent as data the system enforces, not a checkbox the team has to remember.
Before automated contact
Consent is re-checked on every attempt
Each automated WhatsApp message or call checks consent for that channel. Without it, the attempt is not made and the reason is logged on the workflow run.
Before every WhatsApp send
Opt-outs and the 24-hour window
Opted-out numbers are blocked. Outside the 24-hour customer-service window, only Meta-approved templates can be sent.
On inbound replies
STOP means stop
Replies such as STOP, UNSUBSCRIBE and OPT OUT are recorded as opt-outs automatically, with source and time.
Before a recording plays
Permission and consent, or nothing
Recordings require recording permission and consent recorded for that call. No file, no playback — recordings are never fabricated.
- Consent starts switched off
- New leads have no WhatsApp or call consent. Website forms record it only when the visitor ticks the box; imports and API calls must set it explicitly.
- Consent history
- Opt-ins and opt-outs are stored per phone number and channel with their source and time, so you can show when and how consent was given.
- Retention period
- Admins can set a retention period of 30 to 3,650 days. Automated deletion against that setting is in progress; today, authorised roles delete records directly.
- Deletion
- Deleting a lead needs the leads:delete permission (Admins and Sales Managers), asks for confirmation and is written to the audit log.
07
Webhook verification
Every webhook that crosses the boundary is authenticated, in both directions.
Inbound · WhatsApp
Meta signature verified
Each delivery’s X-Hub-Signature-256 HMAC is checked against your app secret before processing. Subscription handshakes require your verify token.
Inbound · LiveKit
Signed, fresh and untampered
Webhook tokens are verified for HS256 signature, expiry, issuer and a SHA-256 hash of the exact body, so altered or expired events are rejected.
Outbound · your systems
HMAC-signed deliveries
Signed over the timestamp and raw body. HTTPS is required in production, redirects are not followed, and private or loopback destinations are refused.
Website forms post to an unguessable, rotatable token with per-IP and per-form rate limits and a 64 KB body limit. Implementation details and a verification sample are in the webhooks reference.
08
Infrastructure & operations
A conventional, inspectable stack, chosen so your security team can reason about it quickly.
- Application
- Python FastAPI services with typed request validation on every endpoint, and a Next.js web app that holds no secrets.
- Data stores
- PostgreSQL 16 for application data and Redis for rate limiting and job queues. Timestamps are stored in UTC.
- Background work
- Workers run workflows, provider calls and retries with per-step logs and bounded retry policies.
- Abuse controls
- Sign-in, sign-up, public forms, demo requests and CSV imports are rate limited. Imports are capped at 5 MB with header validation.
- Observability
- Structured JSON logs with request ids, PII masking and secret redaction. Errors return one consistent envelope without internal details.
- Deployment
- Containerised and region-agnostic, so production can run in an Indian cloud region close to your teams and customers.
- Confirmed per deployment
- Hosting provider and region, backup schedule, recovery objectives and disk encryption are documented for your environment in the security overview.
- Certifications
- None claimed. We have not completed third-party audits such as SOC 2 or ISO 27001; this page describes controls as built.
09
Responsible AI
AI does real work in RevenueOS — qualifying leads, summarising calls, answering enquiries. These are the boundaries it works within.
Explainable scoring
Scores come from your weighted rules, not an opaque model. Every score shows points per criterion, the information still missing and the recommended next action.
Evidence for extracted signals
When AI reads a conversation for budget, timeline or intent, each signal carries the verbatim quote it came from and is shown as AI-extracted — never silently written to the lead.
Human handover, always
Any conversation can be handed to a person. Voice agents follow your escalation rules and transfer numbers, and handover rate is reported in analytics.
No autonomous claims
Agents act only within the instructions, knowledge and working hours you configure, and contact only leads with consent. We publish no accuracy figures we have not measured on your data.
Your provider, your key
AI features call OpenAI with the key your organisation connects in Integrations; rule-based scoring works without it. RevenueOS does not train models on your data.
Qualified at 50+ · Highly qualified at 75+
- Budget fit₹1.1–1.3 Cr vs project range ₹1.18–1.6 Cr25/25
- Purchase timelineWants to finalise within 30 days20/20
- Requirement clarity3 BHK, 1,400+ sq ft, ready by 202715/15
- Location matchPrefers Balewadi; project is 2 km away in Baner12/15
- Decision authorityJoint decision; spouse not yet spoken to8/15
- EngagementAnswered first call; replied to 2 of 3 messages6/10
- Home loan pre-approval
- Preferred floor and facing
Schedule a site visit within 48 hours with Priya Sharma (Baner team).
Book site visitEach criterion shows its points and the evidence behind them.
10
Policies & disclosure
The documents behind this page, and how to reach us about a security concern.
Privacy policy
What we collect, why, who processes it and your rights under India’s DPDP Act. Draft, subject to legal review.
Read the privacy policyTerms of service
Responsibilities on both sides, including consent and messaging obligations. Draft, subject to legal review.
Read the termsReport a vulnerability
Found a security issue? Contact us through the form and mention “security”. Please leave exploit details out of the first message; we will reply with a secure channel.
Contact the team