Skip to content

Add DeleteOrganizationResources - #12

Open
vitramir wants to merge 1 commit into
mainfrom
delete-organization-resources
Open

Add DeleteOrganizationResources#12
vitramir wants to merge 1 commit into
mainfrom
delete-organization-resources

Conversation

@vitramir

@vitramir vitramir commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Step 7 of the organization teardown: the groups an organization owns, deleted after the private-resource grants that named them as principals are gone.

Reuses the delete path DeleteGroup already had — admin and membership tuples first, then the row, then the events — rather than adding a second one that skips those steps. DeleteGroup keeps its requireOrganizationOwner check and both now call the same deleteGroup helper.

The RPC is internal: no OpenFGA check and no caller identity, gated by a new Istio AuthorizationPolicy that admits only the organizations ServiceAccount.

Idempotent — listing then deleting means a retried step finds nothing and succeeds, which is what lets the cascade retry a step it is unsure finished.

Also adds the DeleteOrganizationResources stub to the identity fake client, since identity.proto gained the same RPC.

Chart bumped to 0.3.0 for the new template.

Part of organization settings and deletion.

Step 7 of the organization teardown: the groups an organization owns, after
the private-resource grants that named them as principals are gone.

The delete path is the one DeleteGroup already used -- tuples first, then the
row, then the events -- so a group leaves through the same door however it is
removed. The handler is internal and has no permission check; the Istio policy
settles that Organizations is the only caller.

Listing then deleting makes it idempotent: a retried step finds nothing and
succeeds, which is what lets the cascade retry a step it is unsure finished.
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