Skip to main content
Verified Technical Facts · Zero Fabricated Certifications

How RamaSites isolates tenant data, handles payments, and prepares for Indian DPDP rules.

Every statement below maps directly to inspected architecture across Next.js, FastAPI, PostgreSQL 16, Redis 7, Nginx, and backup scripts—distinguishing implemented controls from items pending legal review or production DNS/TLS rollout.

Evidence-Only Verification Principle

RamaSites does not claim external SOC 2, ISO 27001, PCI-DSS Level-1, or synthetic 99.99% uptime percentages without third-party audit certificates. Legal disclosures below constitute an internal legal-readiness review—not automated compliance certification.

Report Vulnerability: security@ramasites.in

11 Security & Operational Pillars

Architecture controls and honest engineering disclosures

1. Data Isolation & Multi-Tenancy

  • Workspaces scope stored sites, products, orders, CRM records, and wallets by `user_id`, `siteSlug`, `reseller_id`, and verified `assignedDomain` mappings.
  • Reseller Client Portals enforce `blockResellerRouteOnClientPortal: true` and a 5-stage precedence resolver (`Super Admin Kill Switch -> Plan Entitlement -> Reseller Package -> Merchant Toggle -> Integration Readiness`).
  • Open-Source Community Edition boots strictly with `ALLOW_MULTI_TENANCY="false"` and `ENABLE_RESELLER_PORTAL="false"` (`docker-compose.community.yml`).
Verified Boundary / Hardening Note:Live Next.js staging/preview routes persist state through an atomic file store synced to FastAPI (`platform_state_store`) alongside typed PostgreSQL 16 schemas. PostgreSQL Row-Level Security (RLS) policies are not yet enabled at the DB engine level—tenant isolation is enforced in API/ORM query predicates.

2. Authentication, Sessions & RBAC

  • Cloud workspaces support passwordless Google Sign-In verified server-side via `oauth2.googleapis.com/tokeninfo` (`email_verified === "true"`), issuing `HttpOnly`, `SameSite=Lax` HMAC-SHA256 signed cookies (`ramasites_session`, 7-day expiry).
  • FastAPI core API routes use `bcrypt` password hashing and HS256 JWT access tokens (30-minute expiry) + refresh tokens (7-day expiry) in `app/core/security.py`.
  • Permissions span 61 capability keys (`47` reseller-assignable operational toggles + `14` platform-managed billing/infrastructure controls), marking payment & courier credentials as `isSensitive`.
Verified Boundary / Hardening Note:Suspended users (`suspended: true`) are blocked immediately across session endpoints and Super Admin controls. Hardware MFA/Passkeys are not yet implemented.

3. Encryption & Cryptographic Signatures

  • Production domain deployments terminate HTTPS/TLS via Nginx + Certbot/Let’s Encrypt or Cloudflare edge (`nginx/builder-main.conf`).
  • Razorpay (`X-Razorpay-Signature`), Cashfree (`x-webhook-signature`), Stripe (`Stripe-Signature`), session cookies, and domain-locked Ultra 3D activation tokens verify with HMAC-SHA256.
  • Saved gateway `keySecret` and `webhookSecret` values are masked (`abcd••••wxyz`) on all dashboard GET/POST API responses (`/api/platform/payments`).
Verified Boundary / Hardening Note:Temporary IPv4 staging preview (`http://103.241.168.253/`) runs over HTTP until public DNS & SSL certificates are bound—custom domains should always operate over HTTPS. Storage encryption relies on host/volume controls rather than per-field envelope KMS encryption.

4. Data Retention & Audit Logs

  • Wallet ledger transactions (`appendImmutableWalletTx`) record opening balance, closing balance, timestamp, and optional `idempotencyKey` without destructive overwrites.
  • Lead deduplication stores a scoped SHA-256 hash (`project_id:phone_digits`) for 30 days to block duplicate billings.
  • PostgreSQL defines an indexed `audit_logs` table recording actor, action, resource, IP, and timestamp; Next.js state maintains the latest 200 Super Admin governance entries.
Verified Boundary / Hardening Note:Automated DPDP scheduled data-purge workflows for closed merchant accounts are currently manual export/delete operations overseen by operators and are scheduled for automated cron enforcement ahead of May 2027 DPDP enforcement.

5. Backups & Disaster Recovery

  • Repository automation includes `scripts/backup-builder.sh` for daily `pg_dump` (PostgreSQL), `redis-cli --rdb` snapshots, rsync project assets, manifest metadata, and S3 sync (`BACKUP_S3_BUCKET`).
  • Backup scripts enforce 7-day local rotation and 30-day remote object lifecycle pruning, paired with weekly restore-header verification in `scripts/verify-backup.sh`.
  • Managed White-Label Cloud includes daily automated DR snapshots; Enterprise BYOI (`₹1,99,999/yr`) & Community operators supply their own S3/storage targets.
Verified Boundary / Hardening Note:Inspection of the staging VPS shows cron automation for `backup-builder.sh` is not yet registered in active `crontab` while running on staging preview—cron scheduling and restore drills must activate at production launch.

6. Incident Response & Kill Switches

  • Security vulnerabilities may be reported privately to `security@ramasites.in` with a documented 24-hour triage acknowledgement target (`/open-source`).
  • Super Admin operators can immediately suspend accounts (`suspended`), pause compromised storefronts (`paused`), toggle global Master Kill Switches across all 61 capabilities, and pause high-risk WhatsApp senders.
Verified Boundary / Hardening Note:Formal 6-hour CERT-In (April 2022 Directions) cybersecurity reporting playbooks and MeitY DPDP Data Protection Board breach-notification templates require legal sign-off prior to general availability.

7. Third-Party Processor Boundaries

  • Identity & Analytics: Google OAuth (`tokeninfo`), Google Analytics 4 / Microsoft Clarity (loaded strictly after explicit visitor consent & honoring Do-Not-Track / GPC signals).
  • Commerce & Messaging: Official Meta WhatsApp Business Cloud API (`WABA`), Razorpay / Cashfree / PhonePe / Stripe / Direct UPI, and Shiprocket courier integration using merchant-supplied credentials.
  • AI Copy & Support: OpenWebUI / Gemini / OpenAI configured via Super Admin or BYOI keys (`apiKeys`). Public Docs Assistant cites curated KB guides only.
Verified Boundary / Hardening Note:Third-party usage charges (payment gateway MDR, Meta WhatsApp conversation fees, courier shipping labels) remain separate direct commercial contracts with those providers.

8. Payment Gateway & Settlement Responsibilities

  • RamaSites does NOT pool, hold, or escrow buyer payments: storefront UPI, Card, Netbanking, and ₹99 Partial COD advances settle directly to the Merchant or Reseller gateway account configured per domain.
  • RamaSites SaaS platform charges apply solely to subscription fees (`₹999`/`₹2,499` or annual enterprise) and prepaid `RamaWallet` credits (verified lead fees & 1.5%–2.5% Starter online order fees), backed by itemized SAC `998314` 18% GST receipts.
Verified Boundary / Hardening Note:Merchants are responsible for completing KYC directly with their chosen RBI-authorised Payment Aggregator (Razorpay, Cashfree, PhonePe) or card processor.

9. Customer Data Management & Portability

  • Clear role demarcation: Merchants act as Data Fiduciary for their storefront shoppers, bookings, CRM deals, and Udhaar ledgers; RamaSites acts as Data Processor.
  • Merchants and agencies can export CSV wallet ledgers (`/dashboard/wallet`), GSTR-1/3B accounting CSVs (`/dashboard/books`), and site snapshot JSONs, plus migrate between Community OSS, Agency client, and self-serve Cloud accounts.
Verified Boundary / Hardening Note:Generated merchant legal templates (`templateGenerators.ts`) inject Privacy, Terms, Refund, Shipping, and Cookie drafts for every published storefront—merchants must customize Grievance Officer contact details before publishing.

10. Open-Source Security Responsibilities

  • RamaSites Community Edition (`docker-compose.community.yml`) runs single-store containers directly on customer infrastructure.
  • Operators are solely responsible for replacing default passwords/keys in `.env` (`POSTGRES_PASSWORD`, `SECRET_KEY`, `JWT_SECRET`), terminating HTTPS TLS, restricting ports `5432`/`6379`, patching Ubuntu/Docker hosts, and taking regular `pg_dump` backups.
Verified Boundary / Hardening Note:Multi-tenant SaaS reselling and proprietary Three.js 3D WebGL modules remain outside Community Edition rights under Commercial / Enterprise licensing.

11. Availability, Support & Non-Claims

  • Support paths match active platform tiers: self-serve `/docs` + source-cited Rama AI for all plans, Agency Client Support Chat inside Partner workspaces, and Super Admin B2B Priority + Reseller Live Chat (`/super-admin/support`) for licensed partners.
  • Zero Unverified Claims Policy: RamaSites does NOT currently hold external SOC 2 Type II or ISO 27001 certifications and does NOT publish synthetic uptime percentage guarantees for self-serve plans.
Verified Boundary / Hardening Note:Bespoke availability SLAs are offered only via executed Managed White-Label Cloud (`₹3,33,333/yr`) or Enterprise agreements.

Indian Statutory & Data Protection Review

DPDP Rules, 2025 rollout & legal review checklist

India's Ministry of Electronics and Information Technology (MeitY) notified the DPDP Rules, 2025 (`G.S.R. 846(E)`) on November 13, 2025 with staggered commencement dates. Treating this as an ongoing legal-counsel compliance requirement—not an automated software badge—RamaSites tracks these exact obligations:

DPDP Act, 2023 & DPDP Rules, 2025 (G.S.R. 846(E), notified Nov 13, 2025)

Phase 1: Nov 13, 2025 (DPBI setup) · Phase 2: Nov 13, 2026 (Rule 4 Consent Managers) · Phase 3: May 13, 2027 (Rules 3, 5–16, 22–23 Fiduciary Duties)

Legal Readiness Review Required Before May 2027 Full Enforcement
  • Consent & Analytics: Public analytics strictly defer GA4/Clarity behind explicit opt-in consent and respect Do-Not-Track / GPC signals (`src/lib/analytics.ts`).
  • Missing Platform Legal Pages: Public storefront sites generate Privacy/Terms drafts, but the core RamaSites SaaS marketing site requires lawyer-reviewed Platform Privacy Policy, Data Processing Addendum (DPA), and SaaS Terms + Cancellation Policy.
  • Grievance Officer & Automated Erasure: Named statutory Grievance Officer contact (`email` + postal address), bilingual/accessible itemized consent notices under Rule 3, and automated retention-purge jobs (Rule 8) must be finalized prior to May 13, 2027.

Information Technology Act, 2000 (Sec. 43A & SPDI Rules, 2011) + CERT-In Directions (2022)

Currently In Force

Operational Controls Active · Legal Sign-Off Recommended
  • Reasonable Security Practices: Bcrypt password hashing, HMAC-SHA256 webhooks/sessions, role-scoped RBAC, and masked gateway credentials reduce exposure risk.
  • Pending Hardening: Enable PostgreSQL RLS policies, enforce TLS-only cookies (`Secure`) behind HTTPS DNS cutover, encrypt payment gateway `keySecret`/`webhookSecret` fields with KMS/Fernet at rest, and document 6-hour CERT-In log retention & incident reporting SOP.

RBI Payment Aggregator Guidelines & GST Rule-46 Billing

Currently In Force

Clear Fiduciary Boundary · Formal MSA Schedules Recommended
  • Direct Settlement Model: RamaSites avoids holding customer settlement funds by connecting each merchant directly to RBI-regulated gateways (Razorpay, Cashfree, PhonePe) or Direct UPI.
  • GST & Prepaid Wallet Clarifications: Wallet top-ups calculate 18% GST (`SAC 998314`, CGST+SGST / IGST); legal counsel should confirm HSN/SAC classification and subscription refund/proration schedules before commercial card billing begins.
Transparent Architecture + Commercial Clarity

Inspect full pricing terms or book a security & BYOI walkthrough

Compare self-hosted Community vs Cloud vs Enterprise BYOI security responsibilities and commercial terms upfront.