Engineering guide · Security

Storage And Secrets

Status: currentReviewed: 2026-07-23Audience: backend developers, database developers, security reviewers
On this pageDurable StateSensitive FieldsSecretsDeletion

Durable State

Use PostgreSQL transactions, foreign keys, tenant-qualified uniqueness, bounded indexes, and explicit state transitions. Do not rely on an in-memory store for production workflow, approval, identity, governance, credential, or lifecycle state.

Sensitive Fields

Encrypt sensitive identity and workflow payload fields with authenticated encryption through the shared cryptographic boundary. Bind tenant, record type, record ID, and schema version as associated data. Store key identifiers and support rotation without rewriting audit history.

Secrets

Store connector tokens, client secrets, passwords, and private keys in Vault, HSM-backed custody, or a deployment-approved secret store. Database records contain safe reference URIs only. APIs validate that secret fields are references and never echo resolved values.

Deletion

Use state transitions and retention policy for identities, workflows, approvals, and evidence. Hard delete is disabled for JML by default. Cryptographic erasure or regulated deletion requires a separately approved workflow that preserves the necessary non-sensitive audit record.