Skip to content

fix(multitenancy): let the global policy modify endpoint accept own-team policies - #115

Merged
oleksandrd-flamingo merged 1 commit into
mainfrom
fix/openframe-global-policy-modify
Aug 18, 2026
Merged

fix(multitenancy): let the global policy modify endpoint accept own-team policies#115
oleksandrd-flamingo merged 1 commit into
mainfrom
fix/openframe-global-policy-modify

Conversation

@oleksandrd-flamingo

Copy link
Copy Markdown

Updating a policy from the tenant UI (PATCH /fleet/policies/{id}) returned
400 "policy does not belong to team/global": creation re-homes "global"
policies to the pinned team, but modifyPolicy still required team_id NULL
on the global endpoint.

Extend the existing DeleteGlobalPolicies allowance to modifyPolicy: under a
pin, an own-team policy is accepted by the global modify endpoint. Foreign
policies never reach the check (the fenced ds.Policy 404s them); unpinned /
flag-off behavior is byte-identical to upstream.

🤖 Generated with Claude Code

…eam policies

Creation re-homes a tenant's "global" policies to the pinned team, but
modifyPolicy still required team NULL on the global endpoint, so every policy
update from the tenant UI failed with 400 "policy does not belong to
team/global". Apply the same own-pinned-team allowance as DeleteGlobalPolicies.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@oleksandrd-flamingo
oleksandrd-flamingo force-pushed the fix/openframe-global-policy-modify branch from 3a7f5e2 to 8484f27 Compare August 18, 2026 12:49
@oleksandrd-flamingo
oleksandrd-flamingo enabled auto-merge (squash) August 18, 2026 12:54
@oleksandrd-flamingo
oleksandrd-flamingo merged commit cc5d85f into main Aug 18, 2026
5 checks passed
@oleksandrd-flamingo
oleksandrd-flamingo deleted the fix/openframe-global-policy-modify branch August 18, 2026 13:06
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.

2 participants