Security & Trust Center

Our Commitment to Traveler Security

At 2wards, safeguarding your itineraries, collaborative notes, expenses, and personal information is foundational to how we build. Every layer—from authentication to database storage—is engineered with defense-in-depth principles.

PostgreSQL Row-Level Security (RLS)
TLS / HTTPS In-Transit Encryption
Self-Service Permanent Data Deletion

1. Strict Database Row-Level Security (RLS)

We employ PostgreSQL Row-Level Security at the database kernel. Queries issued by the application are cryptographically bound to the authenticated user ID (`auth.uid()`).

  • •Trip Isolation: Private trips and itineraries can only be read or modified by their verified creator.
  • •Collaborative Authorization: Only accepted companions listed in trip members can append messages, expenses, or packing items.
  • •Ownership Tamper Guards: Database triggers reject any attempt by unauthorized actors to modify foreign key references or trip owners.

2. Identity & Recipient-Bound Invitations

Authentication is handled through industry-standard Google OAuth and Supabase Auth with strict token validation:

  • •Verified Recipient Check: Invitations directed to a specific email strictly require the recipient to verify email ownership before gaining access.
  • •Privilege Escalation Defenses: Administrative roles are strictly protected by server-side permission matrices and HMAC-bound Owner OTP verification.
  • •Rate Limiting: Authentication, password resets, and OTP requests are gated by shared database counters to prevent credential stuffing.

3. Server-Side Execution & Secret Protection

All interactions with external AI providers and backends are isolated to secure server-side routes:

  • •Zero Secret Exposure: API credentials (such as Google Gemini and Supabase service role keys) are never exposed to browser clients.
  • •Advisory Locking: AI quota reservations use transaction-level locks (`pg_advisory_xact_lock`) to prevent race condition overruns.
  • •Webhook HMAC Verification: External message webhooks require cryptographically verified HMAC signatures using raw byte buffers.

4. Data Sovereignty & Right to Erasure

You own your travel information. We provide transparent and accessible controls over your personal data:

  • •One-Click Self-Service Deletion: You can permanently delete your account directly from Settings at any time.
  • •Deep Sanitization: Deletion safely cleans up your profile, private trips, bookings, expenses, messages, and collaborative history across all shared groups.
  • •Fail-Closed Guarantee: If any table cleanup fails, the deletion fails closed, alerting our security monitors.

Responsible Disclosure & Security Contact

We welcome reports from travelers, researchers, and engineers. If you believe you have discovered a vulnerability or security defect in 2wards, please contact our security team immediately.