AlgoViz

API authorization

medium 24 min

Authorization decides what a known caller may do, to which object, right now.

Where it shows up

The same pattern appears across everyday software.

  • Kubernetes

    Its RBAC objects bind roles to users and service accounts, per namespace or for the whole cluster.

  • AWS IAM

    Policies combine actions, resources and conditions such as source address. Requests are denied by default, and an explicit deny wins.

  • Google Zanzibar

    A published design that stores relationships such as "editor of document" and answers checks for many Google products.

  • GitHub

    Combines roles per repository, team membership, and OAuth scopes for other apps.

  • PostgreSQL row-level security

    Policies in the database filter rows per user, as a second line behind the application's own checks.

  • Library seat booking

    Students cancel their own bookings, staff cancel any in their branch, and a partner app may only read free seats.