Repository navigation
feat(authz): write_data allows commits without updates; a commit to astaged table needs modify - #2230
Conversation
… staged table needs modify A commit request without updates counts as a data commit, so `write_data` allows it. Spark sends such a commit before each mergeSchema write. A commit to a staged table, which finishes a staged create, always needs the permission to commit changes of any kind (`modify` in OpenFGA). A transaction that includes such a table is refused as a whole without it. Batch-check gives the same answer for a commit on a staged table.
|
No actionable comments were generated in the recent review. WalkthroughThis change updates commit authorization for empty requests and staged tables. Applied empty commits on established tables can use ChangesCommit authorization
Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant tables
participant commit_action
participant OpenFGA
tables->>commit_action: Build action from table updates
commit_action-->>tables: Return commit action and complete update listing
tables->>OpenFGA: Check requested action and any_commit for staged tables
OpenFGA-->>tables: Return authorization result
Possibly related PRs
Suggested reviewers: Merge Risk:
|
✅ PR Title Formatted CorrectlyThe title of this PR match the correct format. Thank you! |
A commit request without updates counts as a data commit, so
write_dataallows it. Spark sends such a commit before each mergeSchema write. A commit to a staged table, which finishes a staged create, always needs the permission to commit changes of any kind (modifyin OpenFGA). A transaction that includes such a table is refused as a whole without it. Batch-check gives the same answer for a commit on a staged table.Summary by CodeRabbit
Authorization
write_dataon established tables when no schema or property changes occur.modifyregardless of their contents. Only the user who created a staged table can complete its creation.Documentation