ash-security
Ash Security
Follow the operation's actor, tenant and accepted inputs from its actual entry point to the resource action. Reuse the application's trusted scope representation. A supplied tenant ID is not proof of membership; a browser state is not authorization.
Threat cases covers cross-tenant references, privilege changes, nested data, field exposure and background execution. Operator actions covers who an operator is, staff pages, release commands that change live data, the record they leave and development tools. Component session check covers LiveComponents, whose events skip the page's session re-check.
Explicit Ash options can replace scope-derived values: actor: nil may erase the
scope's actor. Inspect wrapper defaults and keyword merges. In callbacks, propagate
the supplied context using the installed API rather than stale request state.