Section 094
Platform Security
How the platform is built to limit the blast radius of any single fault or compromise.
OpenHedge is split into services that each hold only what they need.
- Service isolation. Web interface, signal reader, model engine, executor, funding service, treasury, history indexer and alerting run as separate processes with separate OS users. Secrets are delivered per service; the signal reader holds none.
- Least-privilege database. PostgreSQL with one role per service. Each role has grants only on the tables and columns it uses, and tests check every query against those grants.
- Separated signing. The trading service signs orders through a delegated trading signer that has no withdrawal permission. Withdrawals are signed by a different service with its own limits (5,000 USD per withdrawal, 20,000 USD per 24 h).
- Authentication. Google sign-in. Session cookies are HttpOnly, Secure, SameSite=Strict, HMAC-signed and expire after 24 hours of inactivity. Sessions are rows in the database, so they can be revoked.
- Request integrity. State-changing requests must be JSON, come from the same Origin and carry a matching Sec-Fetch-Site header. Sensitive endpoints are rate limited.
- Admin access. A separate sign-in flow with an allowlist and short-lived tokens. Administrative tools cannot move a user's funds.
Security reports are welcome through the support channel in the interface; please include steps to reproduce and do not test against other users' accounts.