Skip to main content

Overview

Moss implements multiple layers of data protection to ensure your information remains secure throughout its lifecycle.

Encryption

In Transit

All data transmitted to and from Moss is encrypted:
  • TLS 1.2+ - All API endpoints require HTTPS
  • Certificate Validation - Strict certificate verification
  • HSTS - HTTP Strict Transport Security headers enforced
HTTP requests are automatically redirected to HTTPS. Unencrypted connections are never accepted for API traffic.

At Rest

Data stored in Moss databases is protected:
  • Database Encryption - PostgreSQL with encryption at rest
  • Credential Hashing - All secrets stored as cryptographic hashes
  • Secure Key Storage - Encryption keys managed separately from data

Input Validation

All API inputs are validated before processing:

Schema Validation

Every API endpoint uses Pydantic schema validation:

Validation Rules

Rejection Behavior

Invalid requests receive clear error responses:

Sensitive Data Handling

Automatic Redaction

Moss automatically sanitizes sensitive data before logging: Redacted Fields:
  • api_key, apiKey
  • authorization
  • password
  • secret
  • token
  • x-api-key
How It Works:

Recursive Sanitization

Redaction applies to nested objects and arrays:

Credential Storage

API Keys

API keys are never stored in plaintext:

JWT Signing Keys

JWT secrets receive enhanced protection:

Password-Like Secrets

All password-equivalent credentials use:
  • Argon2id - Memory-hard hashing algorithm
  • Unique Salts - Per-credential random salts
  • Timing-Safe Comparison - Prevents timing attacks

Secure Defaults

Authentication is enforced on every SDK request in production; it cannot be disabled outside isolated development environments.

Domain Whitelisting

Restrict SDK usage to approved domains:

Configuration

Set allowed domains in the Dashboard under Settings > Security:

Enforcement

Remember to include all environments (production, staging, development) in your whitelist.

Data Minimization

Moss follows data minimization principles:

Collected Data

User Control

Users can control data collection via SDK configuration:
To apply the same settings after the SDK has loaded, pass them to window.MossSDK.boot(...):

Next Steps

Audit Logging

Track and review all system activity

Compliance

GDPR, data deletion, and certifications