Skip to content

Re-land Boundaries on Cedar (#2880) after 1.2.10 - #2904

Merged
davidmckayv merged 2 commits into
mainfrom
david/cedar-reland
Dec 4, 2026
Merged

davidmckayv merged 2 commits into
mainfrom
david/cedar-reland

Conversation

@davidmckayv

@davidmckayv davidmckayv commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Re-lands #2880 (Boundaries on Cedar) unchanged.

#2880 merged during the 1.2.10 freeze and was reverted in the release PR (#2903): its server half, openbot-backend #1139, and migration 0219 weren't in the 1.2.10 images. 1.2.10 has published and #1139 is on backend main, so this brings the app half back.

Changelog

Before upgrading.

  • One migration and no downtime. The database goes from 0218_ai_connections_cloudflare, where
    1.2.10 left it, to 0219_action_policy_rules, which adds one nullable column to Boundaries for
    each rule's Cedar form. No earlier release reads or writes it, and this release keeps writing
    every rule's CEL form too, so 1.2.10's server keeps working against the database and servers
    roll one by one. It takes its lock for a moment only and gives up after five seconds rather than
    stall reads. As for every upgrade that changes the database, take a backup first: recovery is
    restoring it.
  • Deprecated. Each still works, answers with Deprecation and Sunset headers, and is removed no earlier than its sunset, and only once nothing uses it.
    • PUT /api/v2/organizations/{organizationId}/boundaries body deny: send rules instead. Sunset 2028-01-03.
    • PUT /api/v2/organizations/{organizationId}/boundaries body allow: send rules instead. Sunset 2028-01-03.
    • PUT /api/v2/organizations/{organizationId}/boundaries body labels: send rules instead. Sunset 2028-01-03.
    • POST /api/v2/organizations/{organizationId}/boundaries/replay body boundaries.deny: send boundaries.rules instead. Sunset 2028-01-03.
    • POST /api/v2/organizations/{organizationId}/boundaries/replay body boundaries.allow: send boundaries.rules instead. Sunset 2028-01-03.
    • POST /api/v2/organizations/{organizationId}/boundaries/replay body boundaries.labels: send boundaries.rules instead. Sunset 2028-01-03.
    • GET /api/v2/organizations/{organizationId}/boundaries response deny: read rules instead. Sunset 2028-01-03.
    • GET /api/v2/organizations/{organizationId}/boundaries response allow: read rules instead. Sunset 2028-01-03.
    • GET /api/v2/organizations/{organizationId}/boundaries response labels: read rules instead. Sunset 2028-01-03.
    • PUT /api/v2/organizations/{organizationId}/boundaries response deny: read rules instead. Sunset 2028-01-03.
    • PUT /api/v2/organizations/{organizationId}/boundaries response allow: read rules instead. Sunset 2028-01-03.
    • PUT /api/v2/organizations/{organizationId}/boundaries response labels: read rules instead. Sunset 2028-01-03.

Admin.

  • Boundaries read in words, and say which rules still need rewriting. Each rule shows the English it was written from first and its Cedar second. A rule OpenBot couldn't move to Cedar with the same result is marked "Rewrite this", and one press rewrites it from its English, replays it and saves it in Cedar. New rules and templates are written in Cedar. A rule typed in CEL is still accepted and moved on save.
  • Activity records each rule moved to Cedar. Each row says whether the rule moved and how it was checked, with the old and new text.

Configuration.

  • AGENT_COMPUTER_POLICY takes Cedar. Any rule in deny or allow may be a Cedar policy instead of a CEL expression; one that doesn't validate against OpenBot's schema, or sits in the wrong list, stops the start. CEL rules keep working.

API.

  • Added: Boundaries rules in Cedar. Boundaries carry a rules list, each rule in Cedar or, until it is moved, in CEL. translateBoundary can write a rule in Cedar.

#2880 was reverted in the 1.2.10 release PR (#2903) because it merged during the freeze and its server half (openbot-backend #1139) wasn't in the 1.2.10 images. #1139 is now on backend main, so this brings the app half back unchanged, with release-policy.json at 0219_action_policy_rules.
@davidmckayv
davidmckayv added this pull request to the merge queue Dec 4, 2026
Merged via the queue into main with commit 89046b1 Dec 4, 2026
60 of 79 checks passed
@davidmckayv
davidmckayv deleted the david/cedar-reland branch December 4, 2026 01:53
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.

1 participant