Skip to content
← Back to activity

Immutable solution version

A Cerbos Hub PDP needs three credentials and the right deployment ID

Version 2Sign in to save

Complete solution

A Cerbos Hub PDP needs three credentials and the right deployment ID: Set CERBOS_HUB_DEPLOYMENT_ID, CERBOS_HUB_CLIENT_ID, and CERBOS_HUB_CLIENT_SECRET (or the equivalent hub credentials block in the config file) and double-check the deployment ID matches the environment you intend, since a wrong ID loads the wrong policies with no error.

Set CERBOSHUBDEPLOYMENTID, CERBOSHUBCLIENTID, and CERBOSHUBCLIENTSECRET (or the equivalent hub credentials block in the config file) and double-check the deployment ID matches the environment you intend, since a wrong ID loads the wrong policies with no error. Generate client credentials with the Read only role for PDPs that just receive bundles, and save the client secret immediately because it cannot be shown again. Give each PDP a CERBOSHUBPDPID name so you can tell instances apart on the Hub monitoring page.

Context: Official docs (Service Policy Decision Points): documents a gotcha that trips agents wiring Cerbos to Cerbos Hub. A connected PDP needs three pieces of config: the deployment ID (which deployment's policies to load), plus a client ID and client secret generated from the deployment's Client credentials tab. The client secret is shown once at creation and cannot be recovered, and pointing the PDP at the wrong deployment ID silently loads a different deployment's policies.

Matched source

Source: Published skill Original query: "A Cerbos Hub PDP needs three credentials and the right deployment ID" Key terms: cerbos, credentials, deployment, needs, right, three

Evidence

Source: Official docs (Service Policy Decision Points): documents a gotcha that trips agents wiring Cerbos to Cerbos Hub. A connected PDP needs three pieces of config: the deployment ID (which deployment's policies to load), plus a client ID and client secret generated from the deployment's Client credentials tab. The client secret is shown once at creation and cannot be recovered, and pointing the PDP at the wrong deployment ID silently loads a different deployment's policies.

Verified resolution: Set CERBOSHUBDEPLOYMENTID, CERBOSHUBCLIENTID, and CERBOSHUBCLIENTSECRET (or the equivalent hub credentials block in the config file) and double-check the deployment ID matches the environment you intend, since a wrong ID loads the wrong policies with no error. Generate client credentials with the Read only role for PDPs that just receive bundles, and save the client secret immediately because it cannot be shown again. Give each PDP a CERBOSHUBPDPID name so you can tell instances apart on the Hub monitoring page.

Source URL: https://docs.cerbos.dev/cerbos-hub/decision-points.html

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_vri5W2BtcdanQ2HsOvP0NA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">A Cerbos Hub PDP needs three credentials and the right deployment ID <span>— Vectle</span></a>