Skip to main content
A policy limits what a credential can do. It’s a list of allow statements, each pairing one action with one resource, and everything it doesn’t list is denied. Start with a policy example or use the action tables below to build your own.

Where policies apply

API keys and workload identity rules use the same statement format: Every resource in a policy must be inside its credential’s boundary. A few operations stay closed to federation rules and service account API keys whatever their policy grants. See what a service account can’t do. For a CI job, cloud service, or Kubernetes pod, put the policy on a federation rule instead of a stored key. See API authentication to choose.

Resources

Choose kind from the following resource types: Use IDs, not display names, in policy resources, even when an endpoint accepts either. Kernel checks that each object ID exists within the credential’s boundary when you create or update a key or rule. Existing project-owned resources without a project are treated as belonging to the default project. Creation actions need a container selector ending in /*, rather than an existing object’s ID. Project creation and creation of organization-owned resources need organizations/{org_id}/*. Audit log access also uses an organization container. Configuration registry actions use a project or organization container rather than individual analysis IDs.
A policy narrows your key’s access; it doesn’t change its organization or project boundary. Use an organization-scoped key for organization administration, credential providers, wallet provider configurations, audit logs, and telemetry destination management. A project-scoped key can rename its own project, but project creation, deletion, status changes, and limit changes require an organization-scoped credential.

Action wildcards

When you create an API key or replace its policy, you can write * in place of a whole part of an action: Kernel expands the wildcard when it saves the policy, keeping the statement’s resource and condition, and stores only the matching actions. The key doesn’t gain actions Kernel adds later, and a scoped issuer must hold every expanded action. On a project container, a wildcard skips organization actions; on one object, it keeps only that object’s actions.
  • A wildcard never includes api_keys:issue_beyond_expiry. List it explicitly.
  • Partial wildcards such as brow*:use, a bare *, unknown names, and wildcards matching nothing on their resource return 400.
  • Federation rules and app runtime policies accept only exact actions.

Conditions

A statement can carry one condition that narrows it to matching requests:
How conditions evaluate:
  • A condition only narrows its own statement. To restrict a whole credential, add the same condition to every statement.
  • Requests from outside every listed network get 403 with insufficient_scope, recorded in your audit logs with the client IP.
  • A scoped key can’t delegate a wider condition than it holds: a delegated key can narrow its parent’s IP rules, never loosen them.
  • You can add or change IP rules on an existing key without rotating its credential. See Limit a key to your IP ranges.

Actions

Organizations and projects

Browsers

Profiles

Vaults

Proxies

Extensions

Telemetry destinations

Scoped keys resolve destinations within the request’s project. Reading and selecting a destination are separate permissions. Creating, updating, and deleting destinations also requires an organization-scoped credential.

Browser pools

Tasks and reports

Reports use their parent task’s permissions; they don’t have separate policy selectors or actions. Linking a browser, including through a report, requires browsers:use on that browser, but not permissions on its attachments: linking doesn’t control it. Reading a linked browser ID doesn’t grant browser access. Retrieving a report type or version by name requires no additional policy action.

Apps, deployments, and invocations

Apps are authorized through their deployments. An invocation belongs to its deployment’s project. See app runtime policy for the permissions your app uses when it runs.
Machine OAuth clients and service accounts can’t deploy or invoke apps, even with these actions.

Credentials and auth connections

A read grant returns connection metadata. To receive hosted login or live view URLs, you also need auth_connections:use and the referenced-resource permissions needed to run that login.

Credential providers and wallet provider configurations

API keys

See Delegate a narrower key for policy and expiry requirements. Native OAuth tokens can’t manage API keys. This applies to human sign-ins (including requests for identity scopes only), machine tokens, and exchanged tokens. OAuth rejects requests for api_keys: permissions. Use a personal API key with the required permissions instead.

Audit logs and export destinations

Configuration registry

Operations that need more than one action

Browsers and pools

Browsers used for managed auth logins, reauthentication, or health checks additionally require auth_connections:use and the current connection’s profile, credential, and provider permissions. This applies to browser lists and direct access. If the source connection is unavailable, those browsers remain hidden and inaccessible to scoped keys.

Auth connections and vaults

Connection updates check the resulting configuration. Turning off credential saving also checks the existing configuration, because an already-running login can still save values. Background health checks and reauthentication continue using the connection’s saved configuration after the configuring API key is revoked; update or delete the connection to change that behavior.

Apps and services

Lists and authentication

Resource lists, such as browsers, profiles, pools, and API keys, filter permissions before pagination. A key with no grant for those resources receives an empty list. GET /auth/context describes the calling credential and needs no additional policy action; the key must still be valid and unexpired. Payment-authenticated browser creation, card-capture tokens, and managed auth handoff-code exchange keep their own authentication protocols. An API key policy doesn’t replace those credentials.