StepSecurity API (Tenant Access)
This page covers API access for managing all organizations under your tenant. If you only need access for a single organization, refer to this page
The StepSecurity API page at the tenant level is where you manage tenant-scoped credentials, federation, and API reference for calling the StepSecurity API. It is available under Admin console > Integrations > StepSecurity API, with three tabs:
API keys, for managing administrative, read-only, registry, and fine-grained tenant API keys
OIDC (OpenID Connect) federation, for letting GitHub Actions workflows mint short-lived API tokens at the tenant scope without a stored secret
API reference, an interactive browser for the StepSecurity API endpoints
Tenant-level credentials are broader than organization-level ones: they can act across every organization under the tenant. For credentials scoped to a single organization, see StepSecurity API (Organization).
API keys
Four kinds of API credentials are available at the tenant level:
Tenant API Key, a single administrative key for tenant- and organization-level operations
Tenant Read-Only API Key, a single read-only key for tenant- and organization-level operations
Secure Registry API Key, a key for Secure Registry operations
Fine-grained API keys, scoped service credentials for tenant-level automation
Fine-grained keys are the recommended option for service-to-service automation. Use the administrative keys only when you need their broader access.

Tenant API Key
The Tenant API Key is an administrative API key for tenant- and organization-level operations. All tenant-level and organization-level APIs work with this key.
You can hold a Primary and a Secondary key at the same time and rotate between them. Use the Rotate button to mint a new value for the selected key. The Last rotated timestamp under each key shows when it was last regenerated.
This key is broad. Prefer a fine-grained API key for anything other than administrative use.
Tenant Read-Only API Key
The Tenant Read-Only API Key is a read-only API key for tenant- and organization-level operations. Only read operations will work with this key, which makes it a safer default for reporting, dashboards, and any integration that does not need to modify state.
Primary and Secondary slots are available for rotation, just like the Tenant API Key.
Secure Registry API Key
The Secure Registry API Key authenticates calls to Secure Registry operations. Use it from registry clients and any tooling that interacts with the Secure Registry. Primary and Secondary slots are available for rotation.
Fine-grained API keys
Fine-grained API keys are long-lived service credentials for tenant-level automation. They are the recommended way to authenticate backend services that call the StepSecurity API across the tenant.
Each key has the following properties:
Scoped to the tenant. The key can act across organizations under the tenant, subject to the permissions you grant
Fine-grained permissions, scoped to exactly what the integration needs
Configurable expiration, up to 1 year
Shown only once at creation
Creating a fine-grained API key
On the API keys tab, in the Fine-grained API keys section, click New key. If you have not created any keys yet, click Create your first key
Enter a Name. The name is required, helps you identify the key later, and cannot be changed after creation
Choose an Expiration: 7 days, 30 days, 90 days, or 1 year. You can also enter a Custom (days) value. The Expires at timestamp updates to reflect your choice
Select Permissions. Use Read all or Read & write all as shortcuts, or expand each category to pick specific permissions. Tenant-level permission categories typically include Harden Runner, Orchestrate Security, Workflow Run Policies, OSS Package Security, and Apps & PATs, with the exact list depending on what your tenant has enabled
Click Create key

Copy the raw key from the confirmation screen and store it somewhere safe
The raw key is shown only once, immediately after creation. If you close the screen without copying it, you will need to create a new key.
You can only grant permissions you already have. Keys cannot escalate beyond your effective access.
Rotating and revoking
Keys cannot be extended. To rotate, revoke the existing key and create a new one with the duration and permissions you need. Revocation takes effect immediately, and any service still using the old key will start receiving authentication errors on the next request.
To revoke a key, find it in the Fine-grained API keys list and remove it.
OIDC federation
OIDC federation lets GitHub Actions workflows mint short-lived StepSecurity API tokens at the tenant scope by exchanging their GitHub OIDC token, without storing a long-lived API key as a secret.
A trust policy is the rule that decides which workflow runs are allowed to exchange their OIDC token, and what permissions the minted StepSecurity token gets. You add one or more policies on the OIDC federation tab.
Tenant-scope policies differ from organization-scope policies in two important ways:
They are not pinned to a single organization. You can match any
repository_ownerunder your tenantThe minted token operates at the tenant scope, so it can act across organizations subject to the permissions you allow

How GitHub Actions uses the federation
Workflows must request a specific audience when minting their OIDC token, or the exchange will fail with audience-mismatch. The required audience is shown on the OIDC federation tab and follows this pattern:
For example, a tenant named acme-corp would use acme-corp.api.stepsecurity.io.
The OIDC federation tab includes a Show ready-to-paste workflow snippet expandable that contains a complete GitHub Actions example. Copy this into your workflow as a starting point.
Creating an OIDC trust policy
On the OIDC federation tab, click New policy. If you have not created any policies yet, click Create your first policy
Enter a Name. The name must be unique within this scope
(Optional) Add a Description to explain what the policy is for
Fill in the Required claims. Every non-empty field must equal the corresponding JWT (JSON Web Token) claim from the GitHub OIDC token. Empty fields are wildcards. At least one of Repo owner or Repository is required:
Repo owner (
repository_owner), for exampleacme. Free text at the tenant level, so you can match any owner under your tenantRepository (
repository), for exampleacme/infraWorkflow ref (
job_workflow_ref), for exampleacme/infra/.github/workflows/deploy.yml@refs/heads/mainRef, for example
refs/heads/mainEnvironment, for example
production
Set Max session duration. This caps the lifetime of tokens minted through this policy. The maximum allowed is 1 hour (3600 seconds). Set to 0 to use the server default
Select Permissions. This is an allowlist applied to tokens minted through this policy and must be a subset of your effective permissions. Use Read all as a shortcut, or expand each category to pick specific permissions
Click Create policy

Designing claim rules
Tenant policies can match across organizations, which makes narrow claim rules even more important. A few patterns:
For a workflow that should only run from main on a specific repo, fill in Repository, Workflow ref, and Ref. Leave Repo owner empty if the repository value already pins the owner
For a policy that covers multiple repos under the same owner, fill in Repo owner and leave Repository empty
For a policy that should match any workflow under your tenant, leave Repo owner empty. Combine this with a specific Workflow ref or Environment so the match still has at least one strong constraint
Prefer Workflow ref over Ref when you want to pin to a specific workflow file, because Workflow ref includes the file path
Empty fields act as wildcards. A policy with only a permissive permission set and no specific claim values would match almost any workflow in any org. Add at least one strong claim in production.
API reference
The API reference tab is an interactive browser for the StepSecurity API, rendered from the OpenAPI specification.
You can:
Browse endpoints grouped by feature area (Overview, Harden Runner, and others)
Download the raw OpenAPI specification using the Download OpenAPI Spec button, for use in code generators, Postman, or other tooling
Try requests directly from the browser by clicking Authorize and pasting a valid token
The production server is https://agent.api.stepsecurity.io/v1.

Authorizing in-browser requests
Click Authorize, paste a token, and you can call endpoints directly from the reference. Any of the following token types will work, as long as they have the permissions the endpoint requires:
A short-lived per-user token from the personal access tokens page
A fine-grained API key from any API keys tab
A Tenant, Tenant Read-Only, Secure Registry, or Organization API key
For exploratory or interactive use, a short-lived token is recommended.
Choosing the right credential
Use this rule of thumb:
Short-lived token, for interactive work from your own machine: MCP (Model Context Protocol) clients, scripts, CLIs, debugging. Max 12 hours, tied to your user
OIDC federation, for GitHub Actions workflows that need to call the StepSecurity API. No stored secret, tokens are minted on demand
Fine-grained API key, for service-to-service automation outside GitHub Actions that needs to outlive 12 hours. Up to 1 year. Choose the tenant-level page when the integration needs to act across organizations, and the organization-level page when it should be pinned to one
Tenant Read-Only API Key, for reporting and dashboards that only need read access
Secure Registry API Key, only for Secure Registry operations
Tenant API Key, only for administrative operations that need broad access. Rotate it on a schedule
Security best practices
Prefer OIDC federation over any stored API key when calling from GitHub Actions
Prefer fine-grained keys over the Tenant API Key for everything else, and use the Tenant Read-Only API Key when write access is not needed
Pin tenant fine-grained keys and OIDC policies as narrowly as possible. Tenant-scope credentials can act across organizations, so loose configuration has a larger blast radius than at the org level
Pick the shortest expiration that fits the integration
Grant only the permissions the integration actually needs. Avoid Read & write all unless required
Store raw keys in a secure credential store (secret manager, CI secret). Do not commit them to source control
Rotate keys before they expire to avoid downtime. Treat any key that may have been exposed as compromised and revoke it immediately
Last updated
Was this helpful?