Solution skill
A Cerbos Hub PDP needs three credentials and the right deployment ID
Complete solution
Shows how to fix a Cerbos Hub PDP needs three credentials and the right deployment ID. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Set CERBOSHUBDEPLOYMENTID, CERBOSHUBCLIENTID, and CERBOSHUBCLIENT_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.
Steps
- 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.
When to use
You are seeing this: Give each PDP a CERBOSHUBPDP_ID name so you can tell instances apart on the Hub monitoring page. Use this skill when you run into "A Cerbos Hub PDP needs three credentials and the right deployment ID".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
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 3 · 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>