Skip to content

Error codes ​

What the command, the editor or a migration reports ends with its code: line 4: folder.owner: unknown type 'person' [AZ201]. An error the app meets at run time carries its code in its HINT instead: rowstile help AZ709. rowstile help AZ201 prints a code's page in the terminal.

Reading the policy ​

  • AZ101: A line the language doesn't read
  • AZ102: An expression that doesn't parse
  • AZ103: A relation written wrongly
  • AZ104: A permission written wrongly
  • AZ105: A rule written wrongly
  • AZ106: A test or an invariant written wrongly
  • AZ107: A name the policy can't use
  • AZ108: An included file that can't be read
  • AZ109: Declared twice
  • AZ110: A dollar-quote tag in a condition
  • AZ111: No app role
  • AZ112: this where there is no row
  • AZ113: A name rowstile keeps for itself
  • AZ114: A quote that goes on to the next line

Types and relations ​

  • AZ201: Unknown type
  • AZ202: No user type
  • AZ203: A relation or permission that isn't there
  • AZ204: anyone, link and type:*
  • AZ205: A source that can't hold these subjects
  • AZ206: A key written wrongly, or of the wrong shape
  • AZ207: Sharing needs a permission
  • AZ208: A relation nothing uses
  • AZ209: A group made only of itself
  • AZ210: Custom roles written where they can't be
  • AZ211: Custom roles from a relation that can't name their owner
  • AZ212: A subject shared two ways

Permissions and inheritance ​

  • AZ301: Following a relation that can't be followed
  • AZ302: A permission that depends on itself
  • AZ303: Inheritance with no starting point
  • AZ304: Inheritance limited by something other than a condition
  • AZ305: A condition inheritance can't store
  • AZ306: A deny that doesn't fit its inheritance
  • AZ307: A permission the runtime asks for, where it doesn't

Rules, masks and scopes ​

  • AZ401: Rules for a table no type maps to
  • AZ402: Masks need a view
  • AZ403: An update refinement without an update rule
  • AZ404: A scope written wrongly

Tests ​

  • AZ501: A $name used before it is given
  • AZ502: A test acting as a type that doesn't sign in
  • AZ503: A test names a scope the policy doesn't have

Applying and deploying ​

  • AZ601: A table or column that isn't there
  • AZ602: A key of another type
  • AZ603: An inheritance condition that isn't the same for everyone at any time
  • AZ604: An inheritance condition reading a view
  • AZ605: Links used for inheritance can't expire
  • AZ606: authz.uid() returns another type
  • AZ607: The database holds the migration already, or isn't where it starts
  • AZ608: A tree swapped in that wasn't built
  • AZ609: No policy is applied
  • AZ610: Not a development database
  • AZ611: Masked columns still readable
  • AZ612: A schema on the search path others may create in
  • AZ613: A condition that doesn't run
  • AZ614: Something uses a function this policy no longer makes
  • AZ615: A migration run outside a transaction
  • AZ616: An older command, a newer database
  • AZ617: Something is built on a masked view that can't be replaced in place
  • AZ618: The owner may not switch to the app role
  • AZ619: A lock file rowstile can't read
  • AZ620: No tables to draft a policy from
  • AZ621: Which table holds the users?
  • AZ622: A user table the draft can't use
  • AZ623: Too many people for a snapshot
  • AZ624: The app role is the policy's owner
  • AZ625: A cascade line that names no foreign key
  • AZ626: A policy applied by another version of rowstile
  • AZ627: Shares whose ids the key can't read
  • AZ628: A condition calls the app's code where its text doesn't show it
  • AZ629: A key of a type that isn't Postgres's own
  • AZ630: A key compared by a collation that isn't deterministic

What apps see ​

  • AZ701: Nobody signed in
  • AZ702: Who is signed in was changed
  • AZ703: Login refused
  • AZ704: A read-only session
  • AZ705: Not allowed
  • AZ706: The policy doesn't allow this share
  • AZ707: Not in the policy
  • AZ708: No such thing
  • AZ709: A write refused by a rule
  • AZ710: A missing or wrong argument
  • AZ711: The audit trail can't be changed
  • AZ712: The change feed was trimmed
  • AZ713: Moved inside itself
  • AZ714: Sign in first
  • AZ715: For users only
  • AZ716: Signed in as someone else already
  • AZ717: A share of yours is in the way
  • AZ718: The review's deadline passed
  • AZ719: A key set with no key to check tokens with
  • AZ720: SCIM settings that don't hold
  • AZ721: A SCIM request the endpoint doesn't serve
  • AZ722: SCIM settings that no longer hold
  • AZ723: The policy was applied while a write ran

The sync index (a preview) ​

  • AZ801: A sync line that names nothing to sync
  • AZ802: Sync lines and no sync role, or a sync role and nothing synced
  • AZ803: The sync role is the app role
  • AZ804: A synced permission reads the clock
  • AZ805: A synced permission reads who asks
  • AZ806: A synced permission reads other rows
  • AZ807: A nested group the sync index can't hold
  • AZ808: The sync role isn't one of its own
  • AZ809: The sync role may read a masked column
  • AZ810: A sync line keyed by a type it can't be keyed by
  • AZ811: A mirrored sync line that can't be mirrored

These pages are written from core/authzlib/errors.py; edit it, then python3 core/tests/unit_test.py --update.