/security
Security enforced by the
Defense in depth enforced outside your application code—across customer traffic, support operations, and platform configuration changes.
/isolation
Fail-closed edge and per-organization policies.
Every customer request terminates at the gateway. Services never parse JWTs, look up memberships, or implement CIDR checks—so an application bug cannot bypass access or organization boundaries.
Credential stripping & anti-enumeration
Customer JWTs and API keys stop at the gateway and are stripped before forwarding. Undeclared routes return 404, and missing vs. unauthorized nodes return byte-identical 403 responses so callers cannot enumerate organizations or projects.
Per-organization security policies
Enforce required_idp_claims (such as MFA/AMR or SSO issuer), organization and API-key allowed_cidrs, allow_personal_keys and allow_member_keys opt-outs, scoped-credential blocking on /user/* and user_credential: true routes, and immediate suspension invalidation per root organization.
Cryptographic hop & transport integrity
Sign gateway-to-service headers with Ed25519 (X-Plat5-Signature) so upstreams verify authenticity on any network, trust private CAs via SSL_CERT_FILE, connect to Valkey over rediss:// TLS, and parse client IPs right-to-left with TRUSTED_PROXIES.
Deterministic RBAC or AuthZEN 1.0
Built-in additive hierarchical RBAC evaluates ancestor, node, group, and custom role bindings with zero code in services. When you need record-level ReBAC or ABAC, attach an OpenID AuthZEN 1.0 PDP (Topaz, Cerbos, OpenFGA) that fails closed on errors.
Gateway security contract →Access model & AuthZEN →Forwarded & signed headers →
/audit
Tamper-resistant audit and SIEM export.
Audit durability is enforced in both the gateway and PostgreSQL, with a commit-ordered pull feed for external archival and bounded monthly retention.
# Pull finalized events in strict commit order for SIEM / WORM archival
GET /internal/events?after=40&limit=100
→ { "audit_events": [{ "seq": "41", "outcome": "responded", … }],
"has_more": false }
# Drop expired monthly partitions as the schema owner (never live/future months)
$ audit prune --older-than 12m/operator
Governed operator access, off the customer plane.
Internal support and platform operations never share a gateway, identity provider, or audit database with customers.
Separate IdP and audit database
operator-gateway authenticates employees through your company SSO—never customer credentials—and writes every action to an isolated operator-audit Postgres database with its own Owner/Writer role separation, export feed, and partition prune.
AuthZEN 1.0 policy authorization
Set authorizer.mode: authzen to authorize every operator route through an external PDP with verified JWT policy_claims, control-plane plat5_permissions, and client context. Fails closed (503) if unreachable and records policy_reason in 403 responses and audit.
Mandatory justification & impersonation trails
Require X-Plat5-Operator-Reason (ticket or incident reference) on sensitive support routes, and attribute both the employee and target member whenever X-Plat5-As-Member is used.
Live control-plane discovery & atomic reload
operator-gateway discovers customer routes live from the control plane and reloads configuration over POST /reload—rejecting invalid changes with 422 while preserving the last known-good routing state.
/change-control
Zero-secret configuration change control.
Every hierarchy, route, role, and policy lives in plat5.yml and moves through reviewed pull requests—authenticated by short-lived OIDC tokens, not static shared secrets.
issuers:
- name: github-actions
issuer: https://token.actions.githubusercontent.com
audiences: [https://control-plane.acme.internal]
max_token_lifetime: 15m
rules:
- access: read
claims:
repository: ["acme/platform"]
- access: apply
claims:
repository: ["acme/platform"]
ref: ["refs/heads/main"]
- name: okta
issuer: https://acme.okta.com/oauth2/default
audiences: [plat5-control-plane]
cli: { client_id: 0oa1abc… }
rules:
- access: apply
claims:
groups: ["platform-admins"]/supply-chain
Verifiable supply chain and GDPR lifecycle.
Audit every container image you deploy, and propagate deletions cleanly across every downstream service.
Signed, inspectable releases
Erasure without dangling data
Lifecycle & deletion contract →All repositories & licenses →
/control-mapping
Shared responsibility, mapped to frameworks.
Plat5 provides architectural security controls; your organization owns infrastructure hardening, IdP governance, and compliance attestation. Here is where the line sits.
| Framework & control | Enforced by Plat5 | Owned by your team |
|---|---|---|
| SOC 2 CC6 — Logical access | Edge JWT/API-key verification, credential stripping, anti-enumeration 403s, per-org CIDR & IdP claim policies, built-in RBAC or AuthZEN 1.0 PDP, and an isolated operator plane. | Customer IdP configuration, employee SSO offboarding, network firewalls, and domain state checks inside services. |
| SOC 2 CC7 — System operations & monitoring | Fail-closed AUDIT_MODE=sync, Postgres Owner/Writer DB isolation, commit-ordered GET /internal/events SIEM export, monthly partition prune, JSON logs, Prometheus /metrics, and OTLP traces. | SIEM ingestion, alerting thresholds, WORM retention storage, and periodic log review. |
| SOC 2 CC8 — Change management | Declarative plat5.yml config as code, multi-issuer OIDC control-plane auth (read on PRs, apply on protected main), per-revision actor + --reason/--ref attribution, and deterministic rollback. | Git branch protection, code review approvals, and deployment pipeline policies. |
| ISO 27001 A.5 & A.8 — Access, logging & supply chain | Least-privilege scoped API keys, operator justification headers, tamper-resistant audit separation, Cosign-signed multi-arch images, Syft SPDX SBOMs, and SLSA build provenance. | Signature verification in deployment pipelines, vulnerability remediation SLAs, and ISMS governance. |
| GDPR Art. 5, 17, 25 & 32 — Erasure & privacy by design | Transactional user.deleted and node.purged lifecycle events, configurable deletion_grace windows, permanent slug tombstoning on purge, and structural organization isolation at the gateway. | Consuming lifecycle events to erase or anonymize domain tables, backups retention, and data processing agreements. |
Verify the contract
Every security invariant on this page is backed by open-source code, JSON schemas, and reproducible playbooks.