Deployments

A deployment is a specific configuration of policy stores (such as 'production' or 'staging') that can be connected to a set of PDPs. Each new change to the underlying store(s) results in a new policy build that’s automatically delivered to the policy decision points (PDPs) if the tests are successful.

Source agnostic inputs

Populate a policy store from any Git provider, CI system, API, CLI, or direct upload, so your existing workflows remain intact.

Multi-store composition

Reference multiple stores in a deployment to separate ownership, for example security team versus product team, or to blend static Git-managed policies with dynamic API-driven rules.

End-to-end automation

Building, testing, and distribution of policies is fully managed by Cerbos Hub, giving you a consistent CI/CD style pipeline for authorization without the need for extra infrastructure.

Strong versioning

Every deployment attempt is attached to a set of immutable policy store versions, making it easy to audit exactly which policies were in effect at any given point in time and to revert any changes if needed.

Deployment overview

Each deployment page provides several tabs to manage and monitor your policy pipeline:

Builds

View the history of deployed versions, showing which policy bundles have been active and when. Each build shows the contributing policy stores and their versions.

Policies

Browse the current policies included in this deployment and view their contents.

Decision points

See the PDPs currently connected to this deployment. Each PDP shows its ID, the build it’s running, active sessions, Cerbos version, when it was last seen, and a link to its audit logs.

Embedded PDP rules

Configure embedded policy decision points for this deployment. Each rule defines policy filtering criteria (resources, actions, scopes, roles, versions), authentication requirements, and IP allowlists. Multiple rules can serve different clients or environments from the same deployment.

Client credentials

Manage API credentials scoped to this deployment for PDP connections, audit log collection, and authenticated ePDP bundle access.

Settings

Configure deployment options including which policy stores contribute to builds, freeze or unfreeze the deployment, and add a deployment check.

Deployed versions

The Builds tab lists builds in two tables. Upcoming versions shows builds that are newer than the live version and have not replaced it yet, with the status and start time of each build. While the deployment is frozen, these builds are not deployed. When the deployment has a deployment check, each upcoming version also shows whether the check has passed and what the version is waiting for before it can go live.

Deployed versions shows the history of policy bundles that have been deployed. Each row in the table shows:

Build reference

A unique identifier for the build. Select it to view detailed information about the build, including test results and bundle contents.

Active from

The timestamp when this build was activated and pushed to connected PDPs.

Active to

The timestamp when this build was replaced by a newer version, or a dash if it is the currently active build.

Sources

The number of policy stores that contributed to this build.

Expand a row in either table to list the policy stores that contributed to the build and the version of each one. Each store name links to the Policies tab of that store at the same version, so you can trace exactly which policies were in effect at any point in time.

Freezing and rolling back

Freezing a deployment holds the live version in place and stops new builds reaching connected PDPs. Rolling back replaces the live version with an earlier build.

Both actions require the Owner or Developer role in the workspace. See User management for details.

Freezing a deployment

Open the deployment’s Settings tab and choose Freeze deployment. The version that is currently live stays live, and policy changes pushed to the linked stores are no longer deployed to connected PDPs while the deployment is frozen.

Changes to the contributing stores are still compiled and tested while the deployment is frozen. Each resulting build is listed under Upcoming versions on the Builds tab, where you can review its test results before you unfreeze the deployment.

A frozen deployment is labelled Frozen in the workspace deployment list and on the deployment page itself.

Choose Unfreeze deployment on the same tab to resume. The latest version of your policies is built and deployed to connected PDPs, replacing whatever was live, including a version that was pinned by a rollback.

Rolling back to an earlier version

Each row in the deployed versions table other than the live one carries an action:

Roll back

Shown for versions older than the one that is currently live.

Promote

Shown for versions newer than the one that is currently live, which happens once a rollback has pinned the deployment to an older build.

Selecting either deploys that version to connected PDPs immediately and freezes the deployment. The version you picked stays live until you unfreeze it, so a rollback is not undone by the next policy change that lands in a contributing store.

If someone else changes the same deployment while you have the page open, your action is rejected and the page refreshes so you can check the current state before trying again.

Deployment checks

By default, every successful build goes live on a deployment’s PDPs as soon as it is ready. A deployment check holds each new build back until it has been approved, so a person signs off on every change to the policies a deployment serves before it reaches connected PDPs.

A check is set per deployment. You can require sign-off on a production deployment while a staging deployment that uses the same policy stores keeps deploying automatically.

Deployment checks complement pull request review in Git. A pull request review decides whether a change to one repository is correct. A deployment check decides whether the complete build, which can combine several policy stores into one bundle, should go live in a particular environment. A check also applies to policy stores that are updated through the API or the Cerbos Hub UI rather than from Git.

Adding a deployment check

Open the deployment’s Settings tab and choose Add check in the Deployment checks section. Set the following:

Type

The kind of check. Sign off is the only type available. It requires workspace members to approve each new version.

Name

A label that identifies the check, for example Security team approval. It is shown on every build that is waiting for the check.

Approvals required

The number of different people who must approve each new version, from one to five.

A deployment can have one check. A single sign-off check can require approvals from several people, set by Approvals required. Use the same section to edit the check or delete it. Once the check is deleted, new and pending versions no longer wait for it.

Adding, editing and deleting the check requires the Owner or Developer role in the workspace. See User management for details.

Approving a build

Builds compile and run their tests as usual. A build that succeeds waits for the deployment check instead of going live. It is listed under Upcoming versions on the Builds tab, and the workspace deployment list shows that the deployment has a version waiting.

Open the build details page to review the build, including its test results and bundle contents. The Deployment checks panel shows the check, how many of the required approvals it has, and who approved and when. Choose Approve to add your approval. Each person can approve a build once, and approving requires the Owner or Developer role in the workspace.

When the last required approval is recorded, the build goes live on connected PDPs straight away. If the deployment is frozen, the approved build waits until you unfreeze it.

How the check interacts with other changes

New policy changes

When a contributing policy store changes again before a waiting build is approved, the new build replaces it. Approvers only review the latest build, and approvals given to the replaced build do not carry over.

Rolling back and promoting

Rolling back or promoting a version that has been live before does not need new approvals. It deploys the version immediately and freezes the deployment, as usual.

Unfreezing

When you unfreeze a deployment that has a check, the latest build still needs its approvals before it goes live.

The build details page of each deployed version keeps the record of the check that applied to it, who approved it and when. You can use this record as evidence of change approval for audits.

Browsing policies

The Policies tab shows the policies included in the deployment’s current build. A Source / Effect matrix toggle at the top of the tab switches between two ways of viewing them.

Source view

The source view lists the policy files in the bundle and lets you open any file to read its contents exactly as it was compiled. Use the bundle selector to switch between builds when you need to inspect an earlier version.

Effect matrix view

The effect matrix presents a resource’s permissions as a grid instead of as policy source. You choose the resource, policy version, and scope to view, and roles and actions are laid out on the axes, with each cell showing the effect that applies to that role-and-action combination in the compiled bundle:

Allow

The action is permitted for the role.

Deny

The action is denied for the role.

Conditional

The effect depends on a condition that is evaluated at request time against the principal and resource attributes.

This gives you an at-a-glance view of a resource’s effective permissions without reading through every policy file, which is useful for reviewing changes and explaining access to others.

Cells also indicate where a wildcard rule widens a match. A rule written against * or a pattern such as foo:* can apply to more specific actions or roles, and the matrix flags the cells that are influenced by such a rule so the broader grant is visible rather than hidden. This is an indication of which rules match a cell, not a full partial evaluation of the policy.

Derived roles and the custom roles defined by role policies each appear as their own rows rather than being folded into the roles they build on. A role policy narrows access rather than granting it, allowing an action only when it is permitted by both the role policy and a matching resource policy rule.

To focus on part of a large matrix, filter by role or action, and select a cell to drill into the underlying rules — including any conditions — that produce its effect.

Limitations

The matrix highlights the rules that match each cell rather than fully evaluating the policy, so keep these limitations in mind when reading it:

Scope

Effects reflect the selected scope only. Because scoped policies can override the effects defined higher in the scope hierarchy, switch scopes to review each one in turn.

Derived roles

Derived role rules are shown only in their own cells. They are not reflected in the cells of the parent roles they extend.

Custom roles

Role policy rules are shown only in their own cells. They are not reflected in the other cells whose effects they restrict.

Downloading policies

The Policies tab also has a Download policies button, which gives you the policy files from the build as a zip archive. Inside the archive, files are grouped into a folder per contributing store and keep the paths they have within that store, so you can tell where each policy came from when a deployment draws on more than one.

The download follows the bundle selector, so switch to an earlier build to download exactly the files that build was running. Use this to review a build away from Hub, compare it against your policy repository, or keep a record of what was deployed.

Build life cycle

Whenever Cerbos Hub detects a change in any policy store connected to a deployment, it launches a new policy build.

  1. In progress: The policy build is queued and begins processing.

  2. Compilation: Policies from all contributing stores are compiled together. If compilation fails, the error is surfaced so you can diagnose it quickly.

  3. Test execution: After successful compilation, Cerbos Hub runs all policy tests found across the contributing stores. Failures are displayed with full logs for debugging.

  4. Bundle generation: When compilation and tests pass, the bundle is generated and all PDPs assigned to this deployment receive a push notification to download and activate the new bundle immediately. If the deployment has a deployment check, the bundle waits for its approvals first.

While a deployment is frozen, changes to the contributing policy stores are not deployed and the version that is currently live stays in place. Unfreezing the deployment builds and deploys the latest version of your policies.

Workspace issues

Cerbos Hub continuously checks your workspace for problems that need attention and surfaces them in the issues bar shown across every page. When something needs looking at, the issues bar highlights it, and each issue links through to the relevant page so you can resolve it. The following conditions raise an issue:

Blocked API keys

One or more of the API keys used to connect PDPs or collect audit logs have been blocked and need to be rotated or re-enabled.

Stalled deployment

A deployment has been mapped to a new policy store but no new build has been activated for it in the last 15 minutes, so connected PDPs may still be serving an older bundle.

Store sync failures

A GitHub-connected policy store is failing to sync, so recent changes in the repository are not being picked up.

See Troubleshooting for guidance on resolving these conditions.

Build details

Click on any build reference to view detailed information about that specific build. To experiment with the policies in the build, click Open in playground. See Create from a build.

Build summary

The top of the page displays key metrics at a glance:

  • Status: Whether the build succeeded or failed

  • Build completed: When the build finished

  • Build time: How long the build took to complete

  • Test results: Total tests run, passed, skipped, and failed

Compile and test stages

Expandable sections show the results of each build stage:

  • Compile: Shows whether policy compilation succeeded. Expand to see any compilation errors or warnings.

  • Test: Shows whether all policy tests passed. Expand to see detailed test results, including any failures with full output for debugging. A test suite that fails to load is listed with its file and the load error.

Bundle file explorer

The file explorer displays the contents of the generated policy bundle. Browse the directory structure organized by contributing policy store, and click any file to view its contents. This lets you verify exactly which policies were included in the bundle and inspect their contents without leaving Cerbos Hub.

Use the file explorer to:

  • Confirm the correct policy versions were bundled

  • Debug unexpected authorization behavior by examining the active policies

  • Audit which policies contributed to a specific deployment

For details on creating policy stores and connecting PDPs to receive bundles, see the related guides:

Best practices

Use meaningful names

Name deployments after their purpose such as application, environment, or team, for example payments-service-production.

Automate testing

Include comprehensive test cases with each policy store to catch regressions before they reach production PDPs.

Validate in staging

Use staging deployments to verify policy changes in a pre-production environment before promoting to production.