Skip to content

Security Overview

Rack Gateway was designed from the ground up with security and compliance in mind. This section covers the security architecture, access controls, and compliance features.

Rack Gateway provides multiple layers of security:

Authentication

Google Workspace OAuth 2.0 with PKCE flow, domain restrictions, and secure session management.

Learn more →

RBAC

Four hierarchical roles for people and a CI/CD role for API tokens, with granular permissions and per-permission MFA requirements.

Learn more →

Audit Logging

Immutable audit trail with automatic secret redaction and optional S3 WORM storage.

Learn more →

Compliance

Built for SOC 2 compliance with proper access controls, logging, and data retention.

Learn more →

Multiple independent security controls ensure that a failure in one layer doesn’t compromise the system:

LayerProtectionIf Bypassed
NetworkPrivate network accessAuthentication blocks
AuthenticationOAuth + session tokensMFA blocks
MFASecond factor verificationRBAC limits scope
RBACPermission restrictionsAudit logs provide evidence
AuditComplete activity recordForensic investigation

Users receive only the permissions they need:

  • Viewer: Read-only access to non-sensitive data
  • Ops: Operational access without deployment capabilities
  • Deployer: Deployment access without administrative powers
  • Admin: Full access for administrators only
  • CI/CD: API tokens that request deploy approvals and deploy once approved

Rack Gateway ships with secure defaults:

  • MFA required for every user
  • Sessions expire after inactivity
  • HTTPS required in production
  • Env var values redacted from audit logs unless an app lists them as visible
  • Nothing happens unless its audit entry was written first
  • CSRF protection, a strict Content Security Policy and secure cookies
  • Test-only bypasses compiled out of the published image

Rack Gateway protects against common threats:

ThreatProtection
Credential theftOAuth (no passwords stored), MFA
Session hijackingSecure cookies, session validation
Privilege escalationStrict RBAC enforcement
Insider threatsAudit logging, RBAC separation
Token leakageShort-lived sessions, API token scoping
Replay attacksToken validation, session tracking
Man-in-the-middleHTTPS to the gateway; the gateway reaches the rack API over the rack’s private network

Best practices for hardening your Rack Gateway deployment.

Before going to production, verify:

  • HTTPS configured with valid certificates
  • Gateway on private network (Tailscale/VPN recommended)
  • Google OAuth configured with domain restrictions
  • MFA enforcement enabled for all users
  • Audit logging configured with S3 WORM storage
  • Session timeout configured appropriately
  • API tokens scoped with minimal permissions
  • Protected environment variables configured
  • Security notifications enabled
  • Regular access reviews scheduled

See Production Checklist for complete deployment verification.

If you discover a security vulnerability in Rack Gateway:

  1. Do not open a public GitHub issue
  2. Report it privately: report a vulnerability on GitHub, or email security@docspring.com
  3. Include the version, what an attacker can do, and steps that reproduce it
  4. Allow time for a fix before public disclosure

Only the latest release gets security fixes. See the repository’s security policy for details. We credit reporters in the release notes.