Skip to main content
HydroGo
Run · Security Model

Security enforced by the database, verified by hydro doctor.

Application-layer WHERE tenant_id = ? filters eventually fail on a forgotten query. HydroGo backs authorization with PostgreSQL forced Row-Level Security, Argon2id password hashing, and hash-chained audit logs.

01 · DATABASE RLS

Forced PostgreSQL RLS

Production roles run as NOSUPERUSER NOBYPASSRLS. Every request sets transaction-local tenant/actor context so PostgreSQL itself blocks cross-tenant reads or writes.

02 · AUDIT CHAIN

SHA-256 Tamper-Evident Audit Chain

Sensitive admin and MCP mutations link chronologically via SHA-256 hashes. Verify integrity anytime from the CLI via hydro audit verify or via MCP tools.

03 · STATIC HYGIENE

Secret Hygiene & CI Scanners

HydroGo rejects ambiguous dual-source DSN secrets before serving traffic, enforces HTTP-only session cookies, CSRF origin validation, and runs gosec + govulncheck on every commit.

04 · DIAGNOSTICS

Built-in Diagnostic Guard (hydro doctor)

Inspects SQLite WAL/FK health, Postgres RLS role flags, media directory permissions, backup tool availability, and memory queue sizing before cutover.