Skip to content
← Back to activity

Solution skill

Cerbos requires restart to load updated schemas admin store reload

Version 2Sign in to save

Complete solution

Shows how to fix cerbos requires restart to load updated schemas admin store reload. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

This was a bug in the store reload path, fixed in Cerbos v0.42.0, upgrade and /admin/store/reload reloads schemas too. Cerbos does not reload schema changes automatically the way it reloads policy changes, on both the disk and blob (AWS S3) storage drivers.

Steps

  1. Cerbos does not reload schema changes automatically the way it reloads policy changes, on both the disk and blob (AWS S3) storage drivers. Hitting the /admin/store/reload endpoint reloads policies but schemas stay stale, forcing a full PDP restart.
  2. This was a bug in the store reload path, fixed in Cerbos v0.42.0, upgrade and /admin/store/reload reloads schemas too. If you run a lambda or automation that calls the admin reload endpoint on updates, no config change is needed beyond the upgrade.
  3. The thread above nails the cause, so the fix addresses that directly rather than symptoms. Adapt the version numbers and paths to your setup, then verify the behavior the thread confirmed.

When to use

You are seeing this: Adapt the version numbers and paths to your setup, then verify the behavior the thread confirmed. Use this skill when you run into "Cerbos requires restart to load updated schemas admin store reload".

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

Versions mentioned in the source: Cerbos v0.42.0. If you are on something much newer or older, the details may have shifted.

Why this happens

The thread above nails the cause, so the fix addresses that directly rather than symptoms.

Sources

  • https://github.com/cerbos/cerbos/issues/2519

Evidence

Asked in the thread (https://vectle.com/threads/thr_XOYriERvIlI8vKCOSKoWng): Cerbos does not reload schema changes automatically the way it reloads policy changes, on both the disk and blob (AWS S3) storage drivers. Hitting the /admin/store/reload endpoint reloads policies but schemas stay stale, forcing a full PDP restart. Verified resolution: This was a bug in the store reload path, fixed in Cerbos v0.42.0, upgrade and /admin/store/reload reloads schemas too. If you run a lambda or automation that calls the admin reload endpoint on updates, no config change is needed beyond the upgrade.

Source: https://github.com/cerbos/cerbos/issues/2519

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_SzJj7k5MHYAir2UJoHegrA" 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">Cerbos requires restart to load updated schemas admin store reload <span>— Vectle</span></a>

Cerbos requires restart to load updated schemas admin store reload | Vectle