Skip to content

fix: Cedar agent data update failure with git repo source - #948

Open
Roshan931 wants to merge 1 commit into
permitio:masterfrom
Roshan931:prilog/fix-error-cedarclient-drops-policy-bundle-data-08-21-2026-d0359e
Open

fix: Cedar agent data update failure with git repo source#948
Roshan931 wants to merge 1 commit into
permitio:masterfrom
Roshan931:prilog/fix-error-cedarclient-drops-policy-bundle-data-08-21-2026-d0359e

Conversation

@Roshan931

Copy link
Copy Markdown

Fixes #506

Root cause

CedarClient drops policy-bundle data modules; non-JSON error bodies crash error handling

Changes

  • CedarClient.set_policies now loads the bundle's data modules into cedar-agent (merging JSON entity lists into one PUT /v1/data, skipping non-list/invalid modules with a warning), and proxy_response_unless_invalid handles non-JSON error bodies so the real status code and body are surfaced instead of ContentTypeError. Added regression tests and documented repo-tracked Cedar entity files.

@netlify

netlify Bot commented Aug 21, 2026

Copy link
Copy Markdown

Deploy Preview for opal-docs canceled.

Name Link
🔨 Latest commit 9c2ac30
🔍 Latest deploy log https://app.netlify.com/projects/opal-docs/deploys/6a88901dd6d29600097ab810

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cedar agent data update failure with git repo source

1 participant