Skip to content
Learn › Manage your workspace: open the docs menu

How Mammoth secures your data: access and compliance

SSO, enforced MFA and IP allowlist are set up by Mammoth on request · Updated 8 Nov 2026

Mammoth secures your data with managed sign-in, role-based access control, encrypted credential storage and an activity log. Customer data is stored in AWS Ireland by default, and Mammoth is SOC 2 Type II and ISO 27001 certified. You set personal 2FA in Profile Settings; SSO, workspace-wide 2FA and IP allowlisting are set up by Mammoth on request. For sign-in, passwords and 2FA, see Sign in, reset your password and set up 2FA.

Security at a glance

LayerStandard
Credential storageRSA public-key encryption
AuthenticationKeycloak: email/password, TOTP 2FA, API tokens; SSO set up by Mammoth on request
Access controlRole-based access control with Workspace and Project role tiers
Data locationAWS (Ireland)
Certifications and complianceSOC 2 Type II, ISO 27001, GDPR, HIPAA

How API requests are authenticated

Mammoth has two token types for programmatic access.

JWT tokens for user sessions

JWT tokens are issued on sign-in and used for user-scoped API access. They inherit the user's permissions and are checked on every request.

  • Expiration: 48 hours; renewed automatically while the session is active.
  • Use for: user-driven API calls, and scripts that authenticate as a user.
  • Anti-CSRF: all state-changing requests need a matching anti-CSRF token.
  • Workspace: each request is scoped to one workspace through the X-WORKSPACE-ID header.
Authorization: Bearer <your-jwt-token>

API tokens for integrations

API tokens are long-lived credentials for one workspace, designed for service accounts and integrations. A token can also be limited to one project; Mammoth then blocks it from every other project before any operation goes ahead. The token is shown once when created and can't be retrieved afterwards.

The API tokens card in Workspace Settings, with the Generate key button and the list of keys
Authorization: Bearer mm_<your-token>

The token belongs to one workspace, so no workspace header is needed. API token requests are excluded from CSRF checks. The older X-API-KEY / X-API-SECRET headers are deprecated; new tokens have no secret. To create one, see Create an API token. For the base URL, request examples, and the SDK and CLI login, see API authentication.

Keep tokens safe:

  • Store tokens in a secrets manager (such as AWS Secrets Manager or HashiCorp Vault), never in source code.
  • Use separate tokens for each environment (development, staging, production).
  • Rotate tokens quarterly, or at once if you suspect a compromise.
  • Delete tokens you no longer use.

How sessions are protected

  • Sessions use cryptographically secure tokens generated with secrets.token_urlsafe().
  • Each session includes an anti-CSRF token checked on all state-changing operations.
  • HTTP-only, Secure and SameSite=None cookie flags stop JavaScript reading the cookie and mean it is only sent over HTTPS.
  • Sessions expire after 48 hours of inactivity and are renewed on each authenticated request.
  • Sessions end when you sign out.
  • Each user's last sign-in date and last activity time are tracked for security auditing.

How Mammoth enforces access

Every request passes two checks before it reaches the application:

  1. Authentication: Mammoth checks the session token or API token and sets the user, workspace and session type.
  2. Authorization: Mammoth checks the required permission against the user's role on the target resource. If the check fails, the request is rejected.

Authorization also checks the resource hierarchy, for example that a project in a request belongs to the workspace in the request. A user can't reach a resource in another workspace, even if they know its ID. For every role's permissions, see Roles and permissions.

Workspaces are kept apart

Workspaces are the main tenant boundary.

  • Database: every major resource (projects, datasets, views, pipelines, connectors, invitations, API keys) belongs to one workspace. Lookups are scoped to the workspace, so a query can't return another workspace's data.
  • Session: each request carries one workspace context, and Mammoth checks it matches the workspace in the request. A user can't act for a workspace they don't belong to.
  • API key: each key is bound to one workspace when created, and the workspace is checked on every request.

Users can belong to several workspaces. Each membership is a separate role record, so roles in one workspace have no effect in another.

Projects are kept apart

  • Datasets, views, pipelines and Live Connections belong to exactly one project.
  • Workspace Members must be added to a project to open it.
  • Workspace Owners can view all project names, delete any project, and add users to projects they're not part of.
  • Mammoth checks both workspace membership and project role before giving access to project resources.
  • Live Connections are project-scoped. The same database can have separate connections in two projects, each with its own credentials. Users in one project can't use or discover another project's connections.

How credentials and data are protected

AreaHow it's protected
Connector credentialsDatabase passwords and API secrets you give Mammoth are encrypted with RSA public-key encryption (PKCS1-OAEP). The private key is stored separately from the encrypted values
Export destinationsWorkspace Owners can limit which hosts custom exports may send data to. See Limit where exports can send data

Ports your data sources must allow

For Mammoth to connect, each data source must be reachable on its standard port:

TrafficPort
Mammoth services (HTTPS)443
PostgreSQL5432
MySQL3306
SQL Server1433

If your database listens on a different port, allow that port instead. For the full list, see Allow Mammoth through your firewall.

Compliance: SOC 2, ISO 27001, GDPR and HIPAA

CertificationScope
SOC 2 Type IISecurity controls attested by an independent audit
ISO 27001Information security management system
  • GDPR: customer data is stored in AWS Ireland (EU). Your organisation is the data controller and Mammoth is the data processor. Mammoth also handles GDPR deauthorisation requests for third-party platform integrations (for example, Shopify) through webhooks when an end customer revokes consent.
  • HIPAA: Mammoth supports HIPAA compliance for healthcare customers. Contact your account manager or support@mammoth.io to discuss your requirements.
  • Audit trail: the Activity Log records who did what and when across your workspace. See Audit logs.

To request security or compliance documentation, contact your account manager or support@mammoth.io.

Was this page helpful?

Something wrong? support@mammoth.io