/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.

/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.

  • Fail-closed AUDIT_MODE=sync. Mutating requests record audit intent before reaching your service; if audit storage is unreachable, the gateway rejects with 503 instead of dropping records.
  • Postgres Owner / Writer separation. audit migrate runs as the schema owner, while audit serve runs under an append-only writer role with no DELETE, TRUNCATE, or DDL rights—and refuses to boot if granted owner or delete privileges.
  • Commit-ordered SIEM pull export. Stream finalized records viaGET /internal/events with a monotonic finalized_seq cursor into Splunk, Datadog, or WORM object storage with no gaps across concurrent writes.
  • Bounded monthly retention. Drop expired monthly partitions cleanly with audit prune as the schema owner, guarded against dropping current or future partitions.
SIEM export & partition 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.

  • Multi-issuer OIDC (AUTH_CONFIG_FILE). Pair CI workload identities (GitHub Actions, GitLab CI) with human SSO (Okta, Entra ID)—grantingread to pull requests for plat5 plan and restrictingapply to protected main builds and platform admins.
  • Fail-closed policy validation. Rejects wildcard *audiences, bare * claim globs, and unbounded token lifetimes. Verify policies in CI with plat5 validate --auth-config.
  • Attributed revisions & instant rollback. Every apply records the verified OIDC actor plus X-Plat5-Change-Reason(--reason) and X-Plat5-Change-Ref (--ref) on an immutable revision—and rolls back deterministically withplat5 config pull --revision.
control-plane-auth.yml
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.

supply chain

Signed, inspectable releases

  • Multi-arch OCI images signed with Sigstore Cosign
  • Syft SPDX SBOMs and SLSA build provenance attached per release
  • Automated Trivy vulnerability scans and documented SECURITY.md
  • Apache-2.0 core runtime and MIT tooling—no opaque binaries
data lifecycle

Erasure without dangling data

  • Transactional user.deleted and node.purged events on identity's GET /internal/events feed
  • Configurable deletion_grace windows before hard purge
  • Purged root slugs are permanently tombstoned so deleted organization namespaces can never be re-claimed
  • Services subscribe once to erase or anonymize domain tables reliably

/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 & controlEnforced by Plat5Owned by your team
SOC 2 CC6 — Logical accessEdge 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 & monitoringFail-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 managementDeclarative 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 chainLeast-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 designTransactional 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 yourself.

Every security invariant on this page is backed by open-source code, JSON schemas, and reproducible playbooks.