Skip to content

feat(rest): add policy management APIs - #829

Open
plusplusjiajia wants to merge 1 commit into
apache:mainfrom
plusplusjiajia:rest-policy-management
Open

feat(rest): add policy management APIs#829
plusplusjiajia wants to merge 1 commit into
apache:mainfrom
plusplusjiajia:rest-policy-management

Conversation

@plusplusjiajia

@plusplusjiajia plusplusjiajia commented Sep 14, 2026

Copy link
Copy Markdown
Member

Purpose

Ports the data-policy half of the experimental REST management API added in apache/paimon#9400 to Rust: the row filters and column masks a REST catalog stores per principal and applies at read time.

What it adds

GET  /v1/{prefix}/databases/{db}/tables/{table}/policies?type&principal&column&maxResults&pageToken
POST /v1/{prefix}/databases/{db}/tables/{table}/policies
POST /v1/{prefix}/databases/{db}/tables/{table}/policies/drop

api/management.rs gains PolicyType, RowFilter, ColumnMask, DataPolicy and ListPoliciesRequest, mirroring org.apache.paimon.management, and RESTApi gains list_policies, create_policy and drop_policy, with thin delegates on RESTCatalog. Wire names, query parameters and client-side validation follow Java. No new dependencies.

@plusplusjiajia
plusplusjiajia marked this pull request as draft September 14, 2026 11:22
@plusplusjiajia
plusplusjiajia marked this pull request as ready for review September 14, 2026 13:00
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