Skip to content

Security: RatLoopz/sahidawa-india

SECURITY.md

Security Policy

Supported Versions

The following versions of SahiDawa currently receive security updates:

Version Supported
main (latest) ✅ Active support
Older branches ❌ No support

SahiDawa is currently in active development (pre-release). We recommend always using the latest code from the main branch.


Reporting a Vulnerability

We take security seriously — especially given that SahiDawa handles sensitive health and medicine data for many citizens.

Public disclosure before a fix is available may put users at unnecessary risk.

How to Report

  1. Preferred method: Use GitHub's Private Security Disclosure to submit a confidential report.
  2. Alternative: If GitHub Private Security Advisories are unavailable, contact the project maintainers through the official contact methods listed in the repository.

What to Include in Your Report

Please provide as much of the following as possible to help us understand and reproduce the issue:

  • A clear description of the vulnerability
  • Steps to reproduce (proof of concept if available)
  • The potential impact (data exposure, authentication bypass, etc.)
  • Affected component (frontend, API, ML service, database, etc.)
  • Any suggested mitigation or fix
  • The affected version or commit (if known)
  • Any relevant logs, screenshots, or supporting evidence

What to Expect

Stage Timeline
Initial acknowledgement Within 48–72 hours
Status update Within 7 days
Patch / resolution Depends on severity (critical: ASAP, others: within 30 days)

We will keep you informed throughout the process and credit you in the release notes (unless you prefer to remain anonymous).


Scope

The following are in scope for security reports:

  • Authentication or authorization flaws
  • SQL injection, XSS, or other injection vulnerabilities
  • Exposure of sensitive medicine or health data
  • Insecure API endpoints (e.g., unauthenticated access to drug data)
  • Dependency vulnerabilities with a direct exploit path
  • Broken access control in Supabase RLS policies

The following are out of scope:

  • Rate limiting on non-sensitive endpoints
  • Issues on third-party services (Supabase, Vercel, Railway) that are not within our control
  • Theoretical vulnerabilities with no practical exploit
  • Issues in development/local-only environments

Security Best Practices in SahiDawa

SahiDawa is built with the following security principles:

  • No sensitive data sold or shared — SahiDawa is 100% ad-free and never monetizes user health data
  • Supabase Row Level Security (RLS) — Database access is scoped per user/role
  • Environment variables — All secrets (API keys, DB URLs) are stored in .env and never committed (see .env.example)
  • Input validation — All user-submitted medicine scan data and symptom reports are validated server-side
  • Minimal data collection — We collect only what is necessary to provide the service
  • Open source transparency — All code is public and auditable by the community

Disclosure Policy

We follow Coordinated Disclosure:

  1. Reporter submits the vulnerability privately
  2. We confirm, investigate, and develop a fix
  3. We release the fix and notify the reporter
  4. A public disclosure (GitHub Security Advisory) is published after the patch is live

We kindly ask reporters to follow coordinated disclosure by allowing maintainers a reasonable amount of time to investigate, validate, and release a fix before publicly disclosing the vulnerability.


Contact

For general security-related questions, you may also contact the maintainers through SahiDawa Discord in the #security channel.


Thank you for helping keep SahiDawa secure🇮🇳.

There aren't any published security advisories