Harden a deployment

Configure the host's trust boundaries before exposing its routes or enabling provider effects. Start with the security model and apply the steps for the capabilities you actually compose.

Restrict database authority

Use the selected installation's role bindings and grants from database provisioning. Keep migration/admin credentials on their direct connection and restricted runtime credentials on request and scheduler-lock connections, following connection separation. Do not substitute an owner login for missing runtime grants.

Supply verified actor claims to the gateway's actor lane and use its service lane for service work; the gateway sets claims and selected roles transaction-locally. Keep role-free lanes scoped to their named capability rather than using them for generic service work.

Keep secrets on the server

Pass database credentials, session-signing keys and provider secrets only to server bindings, as described in host configuration. Keep them out of browser build inputs, source, fixtures, persisted diagnostics and logs. Use the configuration reference and each selected adapter's inputs when separating browser-public values from server settings.

Admit outbound effects

Put each new mail network sender behind createGuardedEmailTransport with an explicit host policy selecting credential, effective recipient and environment. The email admission implementation refuses unavailable, invalid or blocked decisions before sender entry; raw transports passed through the guard return email_egress_unadmitted. Follow provider adapter composition for suppression and refusal handling.

Verify webhook callbacks before interpreting events

Bind callback routes to the selected adapter's signature verifier and preserve the original request bytes, following provider verification. Do not verify a reserialized parsed object: the raw-body helper cannot reconstruct the wire bytes from it. Bind the receiver environment and apply the selected protocol's signature and timestamp policy before lookup or writes. Keep explicit body and deadline policies for stream-first handlers; HTTP admission explains raw-stream handling.

Configure origins and HTTP policy

Supply the Node host's security-header policy, content security policy and route authorization through HTTP composition. Configure magic-link origins explicitly and retain same-origin JSON admission on direct operator challenge requests and redemption. The operator handlers reject a mismatched Origin or content type with FORBIDDEN. Use Identity for redirect policy and live authorization rather than trusting browser-supplied roles.

Preserve audit and retention

Keep diagnostic reads behind the authorized, atomic access-audit boundary; an audit failure returns UPSTREAM_UNAVAILABLE with reason audit_unavailable. Enable retained collection only with its retention drain and inspect deletion outcomes. Leave deletion enabled after collection stops so stored history can expire. Register each personal-data owner and its retention policy; identity erasure does not delete every retained resource.

Limits

  • Managed identity erasure refuses with MANAGED_PRIVACY_ERASURE_UNAVAILABLE; the shipped managed store supplies export only, as Personal data explains.
  • There is no bug bounty or guaranteed security-response timeline; consult the response posture and use the private reporting route.