You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(openfga): rename the write privilege to write_data - #2228
The OpenFGA privilege for changing a table's data without changing its structure (#2115, not yet released) is now called write_data. write suggested any change to a table.
Model v4.15 replaces the unreleased v4.14. Stores provisioned with v4.14 from a main build migrate to v4.15; grant write again as write_data there.
The write privilege is now named write_data. It grants data-changing access without allowing structural changes; modify continues to include effective data-writing access.
write_data can be granted and delegated across projects, warehouses, namespaces, and tables. Views do not support this privilege.
Breaking Changes
Existing write grants do not carry over during migration to the new authorization model. Regrant access using write_data.
Documentation
Updated authorization guides and API descriptions to reflect the renamed privilege and its scope.
The OpenFGA data-writing privilege is renamed from write to write_data across authorization models, Rust mappings, API schemas, tests, and documentation. The current model version advances to v4.15. Updated tests and guides retain the described data-access scope and structural-operation restrictions.
Resource models replace write relations with write_data relations and rename related grant/revoke actions. The v4.14 schema is removed.
Rust authorization mappings and model version crates/authz-openfga/src/relations.rs, crates/authz-openfga/src/migration.rs, crates/authz-openfga/src/grant.rs
Assignment, relation, and action mappings use the new names. The current model version and schema reference change to v4.15.
Fixtures and authorization tests authz/openfga/v4.15/store.fga.yaml, crates/authz-openfga/src/authorizer.rs, crates/lakekeeper-integration-tests/tests/*, authz/opa-bridge/tests/trino/write_test.rego
Fixtures and test references use write_data. Assertions continue to cover data access, delegation, and restrictions on structural operations.
API schemas and documentation docs/docs/api/management-open-api.yaml, docs/docs/authorization-openfga.md, docs/docs/opa.md, docs/docs/concepts.md, authz/openfga/README.md
API names and documentation use write_data. The changelog describes the v4.15 migration and notes that prior write grants do not carry over.
lakekeeper/lakekeeper#2115: Introduced the write privilege and its data-only commit behavior, which this change renames.
lakekeeper/lakekeeper#2215: Changes the Trino authorization path for the write-only behavior; this change updates related test terminology.
lakekeeper/lakekeeper#2214: Validates OpenFGA model versions and relation names at startup; this change updates the active model and relation names.
Suggested reviewers: brgr-s
Merge Risk: Minimal · up to 91de9
No material merge-blocking risk is established. The remaining wording change is optional editorial cleanup.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 11.11% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta…
Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed checks: 4 passed
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title "feat(openfga): rename the write privilege to write_data" matches the main change in the changeset. The PR renames the OpenFGA table-data privilege from write to write_data across the v4…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "feat(openfga): rename the write privilege to write_data" matches the main change in the changeset. The PR renames the OpenFGA table-data privilege from write to write_data across the v4.15 authorization models, the Rust enum variants in crates/authz-openfga, the Management API schemas, the tests, and the docs. The title names the scope (openfga) and the action (rename). It is concise and specific, and it does not use vague terms. It does not mention the v4.14 to v4.15 model bump or the migration impact, but the title does not need to cover every detail.
Full details: Docstring Coverage
Explanation
Docstring coverage is 11.11% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 45 functions across 6 files. (1 skipped: 1 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
A rabbit checks the grants at dawn write_data hops where write was drawn The models turn to four-fifteen The tests keep boundaries clear and clean One carrot for each renamed relation Then off to burrowed documentation
CodeRabbit Verify
Run CodeRabbit Verify to test the changes in this pull request.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 6ad876ac-dfe5-4cff-809d-04bc6158bcad
Commits
Reviewing files that changed from the base of the PR and between 5e4ff6b and 91de92e.
Files selected for processing: 1
authz/openfga/README.md
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The OpenFGA privilege for changing a table's data without changing its structure (#2115, not yet released) is now called
write_data.writesuggested any change to a table.v4.15replaces the unreleasedv4.14. Stores provisioned withv4.14from amainbuild migrate tov4.15; grantwriteagain aswrite_datathere.write→write_data, actionsgrant_write→grant_write_data.write_datacan set branch and tag retention, which snapshot expiry follows.Downstream follow-up
lakekeeper-authz-openfga: enum variantsWrite,CanGrantWrite,CanRevokeWrite,GrantWrite→WriteData,CanGrantWriteData,CanRevokeWriteData,GrantWriteData; OpenAPI schemas*AssignmentWrite→*AssignmentWriteData.Summary by CodeRabbit
writeprivilege is now namedwrite_data. It grants data-changing access without allowing structural changes;modifycontinues to include effective data-writing access.write_datacan be granted and delegated across projects, warehouses, namespaces, and tables. Views do not support this privilege.writegrants do not carry over during migration to the new authorization model. Regrant access usingwrite_data.