Skip to content

Enterprise SSO & Audit

Configure DNS-verified OIDC (PKCE) and SAML 2.0 Single Sign-On, JIT role mapping, SHA-256 hash-chained Audit Logs, and live SIEM webhook streaming.

Domain discovery & DNS verification

On /login, typing a corporate email triggers POST /api/auth/discover. Automatic IdP discovery and enforcement activate only after domain ownership is verified via DNS TXT record:

Required DNS TXT record
Type:  TXT
Host:  _mtakit-sso.acme.com
Value: mtakit-sso-verify=<connection_verification_token>
POST/api/v1/sso/{id}/verify-domainRequires sso:manage

OIDC & SAML 2.0 setup

MTAKit supports Okta, Microsoft Entra ID, Google Workspace, Ping, and any standards-compliant OIDC or SAML 2.0 identity provider from Dashboard → Security & SSO.

ProtocolEndpointSecurity
OIDC/api/auth/sso/oidc/{id}/callbackAuthorization Code + PKCE (S256), Redis single-use nonce, JWKS RS/ES/EdDSA check
SAML 2.0 ACS/api/auth/sso/saml/{id}/acsSigned XML assertion verification, RelayState AES-256-GCM + replay nonce guard
SAML Metadata/api/auth/sso/saml/{id}/metadataAuto-generated SP Entity ID & ACS XML metadata

JIT provisioning & Break-Glass

With Just-in-Time provisioning enabled, verified logins automatically create workspace users and assign the highest-privileged MTAKit role matching your groupRoleMapping (owner > admin > developer > viewer), falling back to defaultRole.

Immutable SHA-256 Audit Log

Security events (logins, SSO updates, API keys, nodes, provider routes, and email.inspected previews) are written append-only in PostgreSQL under per-tenant advisory locks with sequential SHA-256 hash chaining (entry_hash = SHA256(prev_hash + "\n" + canonicalJson)).

GET/api/v1/audit/verifyRequires audit:read

NDJSON export & SIEM streaming

Download compliance archives on demand via GET /api/v1/audit/export or configure persistent HTTPS collectors in Dashboard → Audit Log:

POST/api/v1/audit/siemRequires audit:manage

The worker ships chronological application/x-ndjson batches with encrypted Authorization headers, SSRF DNS-rebinding guards, and watermark cursor tracking.