Authorization
Nullplatform uses role-based access control (RBAC).
π‘ The key idea is simple: a role defines what actions are allowed, and a grant attaches that role to a user at a specific resource.
How authorization worksβ
- Users β Every action is initiated by a user (a person or a machine user).
- Actions β Each API endpoint maps to an action (for example,
scope:read). - Roles β A role is a bundle of actions assigned to a user.
- Grants β A grant attaches a role to a user at a specific resource (NRN). Without a grant, the role doesnβt apply.
Rolesβ
Every user has one or more roles that regulate which actions that user can execute. We have roles for managers, developers, operations, security, CI, and more.
You can read more about this in the Roles docs.
Grants and permissionsβ
Grants are what turn roles into actual access. A single user can hold multiple grants, each tied to a specific NRN. Grants also apply to child resources under the NRN.
For more information on how to manage grants, see Grants and permissions.
API keys for machine usersβ
If you have a system that will interact with nullplatform programmatically (for example, a CI workflow), you need to create an API key with the appropriate roles. See:
- Manage your API keys using the API to create and manage your API keys programmatically.
- Configure API keys with IaC if you prefer to configure your API keys using infrastructure-as-code (IaC) tools.
Access tokensβ
Most API endpoints require an access token sent in the HTTP header:
Authorization: Bearer <your-access-token>
The way you obtain the token depends on the type of user.
Human usersβ
To retrieve your personal access token:
- Log in to nullplatform.
- Click your user menu (the circle with your initials/user avatar) in the top-right corner.
- From the dropdown menu, select Copy personal access token.
The legacy Chrome extension used to retrieve the token is deprecated and no longer maintained or supported.
Machine usersβ
Machine users (scripts, automations, or integrations) must authenticate using an API key and obtain access tokens from it.
See the API keys docs to learn how to generate and use API keys.