Skip to content
Community forum

Access rules to set before going live

TipSupero Platform teamSupero team posted

Common question, written up by the Supero team.

Before you go live, check access rules for every schema. A role with no policy for an entity gets full access to it; viewer gets read-only. What we check in go-live reviews:

  1. Rules for each role that shouldn't have full access.
  2. Owner scoping where users should only see their own rows, with filter_field plus filter_match (for example $user.uuid).
  3. readonly_fields on status, price and payment fields, and hidden_fields for anything that shouldn't come back in reads.
  4. Namespace-qualified entity names in rules (billing:invoice), so a name that exists in two namespaces is never ambiguous.
  5. A test as each role. GET /api/v1/crud/{domain}/access-policy/me shows what the signed-in user gets.

tenant_admin is subject to policies too.

Link

0 replies

Your reply

Access rules to set before going live | Supero Community