TL;DR
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.
Steps
- 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. 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 CERBOS_HUB_PDP_ID name so you can tell instances apart on the Hub monitoring page.
When to use
You are seeing this: Give each PDP a CERBOS_HUB_PDP_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.
Source: Vectle. Version: skv_ipRi_UGvp3joGtuOrMngTg. Original contributor attribution is preserved in the frontmatter. Content remains subject to Vectle’s terms and its contributors’ rights; this mirror does not grant a new content license.