Repository navigation
feat(authz): Add specific Task Actions - #1379
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughIntroduces OpenFGA authorization model v4.1 with new types and task-specific permissions, updates migrations to apply v4.0 then v4.1, extends authz enums/mappings for task actions, updates task management API to use new permissions, and updates OpenAPI and README. Adds schema files, module manifest, seed store tuples/tests, and JSON schema for v4.1. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Client
participant API as Management API
participant Authz as AuthZ (OpenFGA)
participant Catalog as Catalog
Client->>API: Request: list/control tasks (table/view)
API->>Authz: Check CanGetTasks/CanControlTasks (resource)
alt allowed
API->>Catalog: Perform task operation
Catalog-->>API: Result
API-->>Client: 200 OK / result
else denied
API-->>Client: 403 Forbidden
end
sequenceDiagram
autonumber
participant Migr as Migration Runner
participant FGA as OpenFGA Store
Migr->>FGA: Apply model v4.0 (add_model_v4_0)
FGA-->>Migr: v4.0 model id
Migr->>FGA: Apply model v4.1 current (add_model_v4_current)
FGA-->>Migr: v4.1 model id
note over Migr,FGA: ACTIVE_MODEL_VERSION = 4.1
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
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. Comment |
mooori
left a comment
There was a problem hiding this comment.
Rust changes LGTM.
Regarding the failing test: The default TupleModelManager now has two models: v4.0 and v4.1. So I think just changing this assert to assert_eq!(models.len(), 2) should fix it.
|
@CodeRabbit review |
✅ Actions performedReview triggered.
|
There was a problem hiding this comment.
Actionable comments posted: 2
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (6)
crates/lakekeeper/src/service/authz/implementations/openfga/relations.rs (2)
357-365: Bug: CatalogServerAction::CanListUsers maps to the wrong relation
CatalogServerAction::CanListUsersshould map toServerRelation::CanListUsers, notCanListAllProjects. This will gate List Users checks on the wrong permission.Apply this diff:
- CatalogServerAction::CanListUsers => ServerRelation::CanListAllProjects, + CatalogServerAction::CanListUsers => ServerRelation::CanListUsers,
1178-1180: Schema/title mismatch for TableAssignment::ModifySchema title says "TableAssignmentCreate" but the variant is Modify. This is misleading in the OpenAPI schema.
- #[schema(title = "TableAssignmentCreate")] + #[schema(title = "TableAssignmentModify")] Modify(UserOrRole),crates/lakekeeper/src/api/management/v1/tasks.rs (1)
525-533: Use CanGetAllTasks for warehouse‑wide task listingNow that v4.1 introduces
CanGetAllTasks, list_tasks should use it instead ofCanListEverything. Otherwise, users with the new permission can’t list tasks across the warehouse.- let can_list_everything = authorizer + let can_list_everything = authorizer .require_warehouse_action( request_metadata, warehouse_id, - CatalogWarehouseAction::CanListEverything, + CatalogWarehouseAction::CanGetAllTasks, ) .await - .map_err(|e| e.append_detail("Not authorized to see all objects in the Warehouse. Add the `entity` filter to query tasks for specific entities.")); + .map_err(|e| e.append_detail("Not authorized to get all tasks in the Warehouse. Add the `entity` filter to query tasks for specific entities.")); ... - } else { + } else { can_list_everything?; }Also applies to: 603-607
crates/lakekeeper/src/service/authz/implementations/openfga/migration.rs (1)
113-127: Bug: get_active_auth_model_id ignores CONFIGURED_MODEL_VERSION.You compute model_version but still pass ACTIVE_MODEL_VERSION to the manager. This breaks cases where a different model is configured.
Apply this diff:
let mut manager = get_model_manager(client, store_name); - let model_version = super::CONFIGURED_MODEL_VERSION.unwrap_or(*ACTIVE_MODEL_VERSION); + let model_version = super::CONFIGURED_MODEL_VERSION.unwrap_or(*ACTIVE_MODEL_VERSION); tracing::info!("Getting active OpenFGA Authorization Model ID for version {model_version}."); manager - .get_authorization_model_id(*ACTIVE_MODEL_VERSION) + .get_authorization_model_id(model_version) .await .inspect_err(|e| { tracing::error!( "Failed to get active OpenFGA Authorization Model ID for Version {model_version}: {:?}", e ); })? - .ok_or(OpenFGAError::ActiveAuthModelNotFound( - ACTIVE_MODEL_VERSION.to_string(), - )) + .ok_or(OpenFGAError::ActiveAuthModelNotFound(model_version.to_string()))docs/docs/api/management-open-api.yaml (2)
997-1003: “Optional project ID” header is marked requiredHeader x-project-id is described as optional but required: true. Fix mismatch.
- - name: x-project-id + - name: x-project-id in: header - description: Optional project ID - required: true + description: Optional project ID + required: false schema: type: stringApplies similarly to other endpoints using x-project-id.
514-516: Incorrect summary text for role access endpointSummary reads “Get my access to the default project” on a role access route.
- summary: Get my access to the default project + summary: Get my access to a role
🧹 Nitpick comments (7)
crates/lakekeeper/src/service/authz/implementations/openfga/relations.rs (1)
94-101: Minor: Error detail expects only User, but code accepts User or RoleThe
UnexpectedEntityerror listsr#type: vec![FgaType::User]though both User and Role are accepted. Consider includingFgaType::Roleto make the message accurate.- _ => Err(OpenFGAError::UnexpectedEntity { - r#type: vec![FgaType::User], + _ => Err(OpenFGAError::UnexpectedEntity { + r#type: vec![FgaType::User, FgaType::Role], value: id.to_string(), reason: format!("Expected user or role type, but got {type}"), }),authz/openfga/README.md (1)
9-16: Add fenced code languages and minor wording tweakSpecify code block languages to satisfy markdownlint and improve readability; also pluralize “permission” for consistency.
-## `v4.1` - -``` +## `v4.1` + +```text MODIFIES_TUPLES: FALSE ADDS_TUPLES: FALSE-- Add
can_get_tasksandcan_control_taskspermissions totableandview.
-- Addcan_get_all_tasksandcan_control_all_taskspermission towarehouse.
+- Addcan_get_tasksandcan_control_taskspermissions totableandview.
+- Addcan_get_all_tasksandcan_control_all_taskspermissions towarehouse.
v4.0-
+text
MODIFIES_TUPLES: FALSE
ADDS_TUPLES: TRUEAlso applies to: 19-24
crates/lakekeeper/src/service/authz/implementations/openfga/migration.rs (1)
234-246: Fix stale test comment to reflect 2 models (v4.0 and v4.1).Comment says “only a single model” but the assertion expects 2.
- // Check that there is only a single model in the store + // Check that there are exactly two models in the store (v4.0 and v4.1) let models = clientauthz/openfga/v4.1/components/warehouse.fga (1)
1-57: Warehouse task and grant definitions read well; minor typo in comment.Everything else looks solid; fix spelling “premanently”.
- # Delete this warehouse premanently + # Delete this warehouse permanentlydocs/docs/api/management-open-api.yaml (2)
2791-2805: Enforce request limit in schema for ControlTasksRequest.task-idsSpec mentions “at most 100” but the schema doesn’t enforce it. Add maxItems to prevent accidental overload.
ControlTasksRequest: type: object required: - action - task-ids properties: action: $ref: '#/components/schemas/ControlTaskAction' description: The action to perform on the task task-ids: type: array + maxItems: 100 items: type: string format: uuid description: Tasks to apply the action to
5243-5267: WarehouseAction enum missing task-queue config actions used by model/testsThe OpenFGA store tests and model define can_get_task_queue_config and can_modify_task_queue_config, but WarehouseAction doesn’t include corresponding API-visible actions. If these should surface via GetWarehouseAccessResponse and Check, add them here.
WarehouseAction: type: string enum: - create_namespace - delete - modify_storage - modify_storage_credential - get_config - get_metadata - list_namespaces - include_in_list - deactivate - activate - rename - list_deleted_tabulars - read_assignments - grant_create - grant_describe - grant_modify - grant_select - grant_pass_grants - grant_manage_grants - change_ownership + - get_task_queue_config + - modify_task_queue_config - get_all_tasks - control_all_tasksIf these actions are intentionally internal-only, consider removing them from public-facing access endpoints/tests or documenting the mapping to existing actions like get_config/modify_storage.
authz/openfga/v4.1/components/role.fga (1)
7-13: assignee includes ownership: confirm intentassignee: [user, role#assignee] or ownership allows owners to implicitly assume. If you intended assignee strictly as memberships, drop ownership here and rely on can_assume: assignee or ownership.
- define assignee: [user, role#assignee] or ownership + define assignee: [user, role#assignee]
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (21)
authz/openfga/README.md(1 hunks)authz/openfga/v4.1/components/lakekeeper_table.fga(1 hunks)authz/openfga/v4.1/components/lakekeeper_view.fga(1 hunks)authz/openfga/v4.1/components/model_version.fga(1 hunks)authz/openfga/v4.1/components/namespace.fga(1 hunks)authz/openfga/v4.1/components/project.fga(1 hunks)authz/openfga/v4.1/components/role.fga(1 hunks)authz/openfga/v4.1/components/server.fga(1 hunks)authz/openfga/v4.1/components/table.fga(1 hunks)authz/openfga/v4.1/components/user.fga(1 hunks)authz/openfga/v4.1/components/view.fga(1 hunks)authz/openfga/v4.1/components/warehouse.fga(1 hunks)authz/openfga/v4.1/fga.mod(1 hunks)authz/openfga/v4.1/schema.json(1 hunks)authz/openfga/v4.1/store.fga.yaml(1 hunks)crates/lakekeeper/src/api/management/v1/tasks.rs(1 hunks)crates/lakekeeper/src/service/authz/implementations/openfga/migration.rs(5 hunks)crates/lakekeeper/src/service/authz/implementations/openfga/migration/migration_fns_v4.rs(3 hunks)crates/lakekeeper/src/service/authz/implementations/openfga/relations.rs(12 hunks)crates/lakekeeper/src/service/authz/mod.rs(3 hunks)docs/docs/api/management-open-api.yaml(3 hunks)
🧰 Additional context used
🧠 Learnings (4)
📚 Learning: 2025-09-08T09:10:07.658Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1328
File: crates/lakekeeper/src/service/authz/implementations/openfga/mod.rs:103-112
Timestamp: 2025-09-08T09:10:07.658Z
Learning: The OpenFGAAuthorizer constructor in crates/lakekeeper/src/service/authz/implementations/openfga/mod.rs should maintain backward compatibility during the transition away from nil UUIDs. Hard assertions that would panic on nil UUID input should be avoided to prevent breaking existing deployments.
Applied to files:
crates/lakekeeper/src/service/authz/implementations/openfga/migration.rscrates/lakekeeper/src/service/authz/implementations/openfga/migration/migration_fns_v4.rs
📚 Learning: 2025-09-18T16:16:50.743Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1254
File: .sqlx/query-cc971caec9f8981502e9ea21682482378d65cee50c8017bf251256fa7085053a.json:3-3
Timestamp: 2025-09-18T16:16:50.743Z
Learning: In the lakekeeper database schema, the namespace.namespace_name column is an array type (text[]) that stores namespace name segments, not a single text value. This means comparisons like `n.namespace_name = $1` where $1 is TextArray are valid array-to-array equality checks in PostgreSQL.
Applied to files:
authz/openfga/v4.1/components/namespace.fga
📚 Learning: 2025-09-18T16:16:50.743Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1254
File: .sqlx/query-cc971caec9f8981502e9ea21682482378d65cee50c8017bf251256fa7085053a.json:3-3
Timestamp: 2025-09-18T16:16:50.743Z
Learning: In the lakekeeper database schema, the namespace.namespace_name column is defined as `Text [] collate "case_insensitive"` (a PostgreSQL text array) that stores namespace name segments. Queries comparing `n.namespace_name = $1` where $1 is TextArray are valid array-to-array equality checks, not type mismatches.
Applied to files:
authz/openfga/v4.1/components/namespace.fga
📚 Learning: 2025-09-18T20:08:00.663Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1254
File: .sqlx/query-552ddb89100de8fb3c374e95c885dfd2da32c9d51d30acf2d60811edbd545dbc.json:3-3
Timestamp: 2025-09-18T20:08:00.663Z
Learning: In the lakekeeper codebase, table_id and view_id are scoped by warehouse_id through composite primary keys (warehouse_id, table_id) and (warehouse_id, view_id). This design allows ID reuse across warehouses while preventing cross-warehouse joins through proper foreign key constraints. When reviewing SQL queries, JOIN conditions like `t.warehouse_id = $1 AND t.table_id = ti.tabular_id` are correct because they ensure warehouse scoping without needing additional `ti.warehouse_id = $1` constraints.
Applied to files:
authz/openfga/v4.1/components/warehouse.fga
🧬 Code graph analysis (2)
crates/lakekeeper/src/service/authz/implementations/openfga/migration.rs (1)
crates/lakekeeper/src/service/authz/implementations/openfga/migration/migration_fns_v4.rs (1)
v4_push_down_warehouse_id(73-196)
crates/lakekeeper/src/service/authz/implementations/openfga/migration/migration_fns_v4.rs (1)
crates/lakekeeper/src/service/authz/implementations/openfga/migration.rs (2)
add_model_v3(44-60)add_model_v4_0(63-79)
🪛 markdownlint-cli2 (0.18.1)
authz/openfga/README.md
9-9: Fenced code blocks should have a language specified
(MD040, fenced-code-language)
🔇 Additional comments (30)
crates/lakekeeper/src/service/authz/implementations/openfga/relations.rs (1)
656-658: LGTM: New task actions and mappings are consistentThe additions for table/view GetTasks/ControlTasks and warehouse GetAllTasks/ControlAllTasks, including ReducedRelation mappings for API and Catalog actions, align correctly with the new OpenFGA relations.
Also applies to: 786-788, 833-835, 871-873, 1135-1137, 1261-1263, 1298-1300, 1317-1319, 1347-1349, 1461-1463, 1494-1496, 1511-1513
crates/lakekeeper/src/api/management/v1/tasks.rs (1)
21-29: LGTM: API switched to new task permissionsConstants and checks for get/control task actions correctly migrated to:
- table/view: CanGetTasks / CanControlTasks
- warehouse: CanGetAllTasks (details) / CanControlAllTasks
Also applies to: 331-346, 376-384, 409-423, 456-475
authz/openfga/v4.1/fga.mod (1)
1-14: LGTMModule manifest looks correct; component list matches introduced policies.
authz/openfga/v4.1/components/user.fga (1)
1-3: LGTMMinimal user type module is fine.
authz/openfga/v4.1/components/model_version.fga (1)
1-9: LGTMModel version component is well-scoped and non-invasive.
authz/openfga/v4.1/schema.json (1)
1-2: LGTM (spot-check)New relations
can_get_tasks,can_control_tasks,can_get_all_tasks, andcan_control_all_tasksare defined and wired as expected.If possible, run your policy tests against v4.1 to ensure end-to-end checks (API ↔ mapping ↔ model) pass for the new actions.
crates/lakekeeper/src/service/authz/mod.rs (1)
89-91: LGTM: Public enums extended with task actionsNew variants on CatalogWarehouseAction, CatalogTableAction, and CatalogViewAction align with the OpenFGA model changes.
Also applies to: 119-121, 132-134
crates/lakekeeper/src/service/authz/implementations/openfga/migration.rs (5)
11-13: Active model points to v4.1 — good.Using V4_CURRENT_MODEL_VERSION for ACTIVE_MODEL_VERSION is correct for the two-step v4 rollout.
14-19: Version constants for 4.0 and current (4.1) look correct.Clear separation enables chained migrations and easier future bumps.
38-40: Chaining v4.0 then v4.1 is the right order.Ensures the tuple migration runs against v4.0 before moving to v4.1.
62-79: Approve v4.0 model and hook wiring
Schema file authz/openfga/v4.0/schema.json verified at build time.
81-99: LGTM: v4.1 model without migration hook. Schema pathauthz/openfga/v4.1/schema.jsonand version constant are correct.authz/openfga/v4.1/components/lakekeeper_view.fga (1)
1-31: View permissions look consistent with namespace inheritance patterns.Relations and grant rules align with table/namespace patterns.
Do views have task operations in Lakekeeper? If yes, consider adding view-scoped actions similar to table:
- can_get_tasks: describe
- can_control_tasks: modify
authz/openfga/v4.1/components/table.fga (1)
1-39: Table task actions are well-scoped.can_get_tasks on describe and can_control_tasks on modify match least‑privilege expectations.
authz/openfga/v4.1/components/namespace.fga (1)
1-44: Namespace model matches inheritance and grant strategy across v4.1.Parent/child and managed_access_inheritance semantics are consistent.
docs/docs/api/management-open-api.yaml (3)
4553-4555: Task actions for TableAction: LGTMNew enums get_tasks and control_tasks align with the new authz model.
5175-5177: Task actions for ViewAction: LGTMNew enums get_tasks and control_tasks are consistent with view.fga.
5265-5267: Warehouse-wide task actions: LGTMget_all_tasks and control_all_tasks additions match warehouse-level controls.
authz/openfga/v4.1/components/view.fga (1)
25-28: Task permissions mapping looks correctcan_get_tasks on describe and can_control_tasks on modify match least-privilege expectations.
crates/lakekeeper/src/service/authz/implementations/openfga/migration/migration_fns_v4.rs (6)
71-96: Ensure curr_auth_model_id availability in orchestrating migrationFunction bails if curr_auth_model_id is None. Verify the caller sets it when adding v4.0 to the manager; otherwise migration aborts.
126-189: Per-warehouse batching to avoid OOM: LGTMProcessing namespaces/tabulars per-warehouse and chunked writes prevents ballooning memory use.
220-259: Permit scope releases promptlyAcquiring and dropping semaphore permits around OpenFGA reads avoids head-of-line blocking. Good pattern.
393-409: Full-object reads for object tuples: LGTMUsing empty user/relation with type-prefixed object is correct for broad scans pre-migration.
416-448: Object-type set for user scans: sanity-check typesHardcoded type set for v3.4 is fine here. If model evolves pre-v4, update list accordingly; otherwise some tuples could be missed.
480-493: Test scaffolding separation for v3 vs v4 is solidSplitting to build exact v3 tuples and then migrating ensures migration function is exercised realistically.
authz/openfga/v4.1/store.fga.yaml (3)
1-147: Seed tuples comprehensively model hierarchyServer→project→warehouse→namespace→tabulars wiring and managed_access coverage are well represented.
817-846: Warehouse task-queue assertions presentTests assert can_get_task_queue_config and can_modify_task_queue_config. Ensure these actions are included in WarehouseAction and exposed consistently in API (see OpenAPI comment).
147-1269: Extensive action assertions across roles: LGTMCoverage across admin/operator/project/warehouse/namespace/table/view (including managed access) is thorough and matches the component definitions.
authz/openfga/v4.1/components/role.fga (1)
13-22: Grant/update/read predicates: LGTMDelegating grants to ownership or security_admin from project, and read via project.can_list_roles, is consistent and minimal.
authz/openfga/v4.1/components/server.fga (1)
20-35: Server-level actions: LGTMAdmin/operator delineation and actions (create/list users/projects, grants) are clear and cohesive.
✅ PR Title Formatted CorrectlyThe title of this PR match the correct format. Thank you! |
* feat: Publish images to Dockerhub (lakekeeper#1274) * feat: Update UI to 0.9.0 with multi-project support (lakekeeper#1275) * chore: release 0.9.4 Release-As: 0.9.4 * chore: release main (lakekeeper#1262) * chore(ci): Fix Dockerhub login * chore(docs): Improve developer guide (lakekeeper#1265) * chore(docs): add info regarding `view_version`'s internal representation (lakekeeper#1261) * chore(docs): Architecture clarify Secret Store (lakekeeper#1284) * fix: Update Limes to 0.2.2 - Fixes compilation issue due to breaking `jwks_client_rs` change (lakekeeper#1282) * fix: Update Limes to 0.2.2 * increase min rust version * chore: release 0.9.5 Release-As: 0.9.5 * chore: release main (lakekeeper#1286) * chore: enable changelog sections for release-please (lakekeeper#1264) k * fix(deps): update rust crate rand to v0.9.2 (lakekeeper#1252) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate async-channel to v2.5.0 (lakekeeper#1225) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency mkdocs-material to v9.6.17 (lakekeeper#1289) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate anyhow to v1.0.99 (lakekeeper#1290) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore: Remove bitnami images (lakekeeper#1288) * feat!: Move to Lakekeeper IO based on hyperscaler SDKs (lakekeeper#1285) * chore(deps): update rust crate reqwest to v0.12.23 (lakekeeper#1294) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(docs): Improve Cloud storage test docs * fix: accept "disable" as PG sslmode as documented (lakekeeper#1303) * feat: Simplify task interface, re-exports, enable delete-after-commit (lakekeeper#1302) * feat: Introduce `RequestMetadata` for Internal Principals which bypass AuthZ (lakekeeper#1306) * chore(deps): update azure/setup-helm action to v4.3.1 (lakekeeper#1299) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(test): use nextest filterset instead of needs_env_var (lakekeeper#1304) * chore(deps): update rust crate openssl-src to v300.5.2 (lakekeeper#1292) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate async-compression to v0.4.28 (lakekeeper#1311) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate thiserror to v2.0.16 (lakekeeper#1296) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat: Provide `ApiContext` to externally registered tasks (lakekeeper#1307) * feat!: Simplify Task interface, extend SpecializedTask interface (lakekeeper#1310) * feat: Improve authorizer `are_allowed_*` batch check signature (lakekeeper#1315) * chore(authz): Enforce use of AuthZ decisions with #[must_use] (lakekeeper#1317) * feat: Task Management APIs (lakekeeper#1316) * chore(deps): update rust crate tracing-subscriber to v0.3.20 [security] (lakekeeper#1318) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat: Add `RunNow` and `RunAt` to Controls for Tasks (lakekeeper#1322) * chore(deps): update rust crate tokio-util to v0.7.16 (lakekeeper#1313) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(docs): Improve Entra ID docs (lakekeeper#1325) * chore(docs): Improve Upgrades & Migration docs (lakekeeper#1326) * feat: Add tasks heartbeat with Catalog state (lakekeeper#1324) * ci: add configuration for CodeRabbit reviews (lakekeeper#1327) * feat: Add optional STS session-tags in S3 STS requests for ABAC authorization (lakekeeper#1230) * feat: Random Server IDs (lakekeeper#1328) * chore(deps): update rust crate percent-encoding to v2.3.2 (lakekeeper#1312) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat(authz): Deprecate Permission Endpoints for Tables without WarehouseIDs (lakekeeper#1334) * fix: Tasks endpoints in router (lakekeeper#1335) * feat(ci): add nextest profile ci_no_secrets for external PRs (lakekeeper#1333) * chore(deps): update rust crate chrono to v0.4.42 (lakekeeper#1331) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore: Pin examples duckdb version to 1.3 (lakekeeper#1343) * feat!: Require warehouse_id when checking permissions on views or tables via ID (lakekeeper#1340) * fix: migrate away from bitnami in unittest.yml (lakekeeper#1344) * chore: Remove coderabitt config * fix(docs): Fix inconsistent URL format in README (lakekeeper#1345) Co-authored-by: Christian <[email protected]> * feat: Remove serde_yaml & serde_yml (lakekeeper#1341) * feat!: add `warehouse_id` to PKs of all `table_*` and `view_*` tables (lakekeeper#1254) * feat: Minor namespace join performance improvements * fix: Warehouse permissions are directly used for task retrieval & control (lakekeeper#1347) * fix: Potential Race Condition when undropping Tabulars (lakekeeper#1342) * fix: table rename authz and error handling (lakekeeper#1346) Co-authored-by: Andre Luis Anastacio <[email protected]> * chore(deps): update rust crate google-cloud-auth to v1.1.2 (lakekeeper#1337) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Christian <[email protected]> * chore(deps): update rust crate time to v0.3.44 (lakekeeper#1349) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency mkdocs-material to v9.6.20 (lakekeeper#1309) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Christian <[email protected]> * feat: Set ServerID during migration (lakekeeper#1348) * chore(deps): Remove utoipa fork (lakekeeper#1352) * chore(deps): update rust crate serde_with to v3.14.1 (lakekeeper#1351) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate url to v2.5.7 (lakekeeper#1354) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate async-compression to v0.4.30 (lakekeeper#1323) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Christian <[email protected]> * chore(deps): update rust crate serde_json to v1.0.145 (lakekeeper#1250) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Christian <[email protected]> * chore(deps): update strum monorepo to v0.27.2 (lakekeeper#1251) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Christian <[email protected]> * chore(deps): update serde monorepo to v1.0.226 (lakekeeper#1355) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update rust crate clap to v4.5.48 (lakekeeper#1356) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat: Add Entity Names to Tasks (lakekeeper#1353) * fix: case insensitivity of catalog endpoints (lakekeeper#1338) * fix: Improve delete_warehouse error message for active tasks * chore(deps): update rust crate tempfile to v3.22.0 (lakekeeper#1359) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Christian <[email protected]> * chore(deps): update rust crate axum-prometheus to 0.9.0 (lakekeeper#1358) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix: PgSslMode not supported error string * feat(authz)!: add OpenFGA schema v4 and v3->v4 migration (lakekeeper#1314) Co-authored-by: Christian <[email protected]> Co-authored-by: Christian Thiel <[email protected]> * chore(deps): update rust crate uuid to v1.18.1 (lakekeeper#1362) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency markdown-grid-tables to v0.6.0 (lakekeeper#1357) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate anyhow to v1.0.100 (lakekeeper#1350) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix: clippy * chore(deps): update rust crate moka to v0.12.11 (lakekeeper#1365) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate tempfile to v3.23.0 (lakekeeper#1367) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate async-nats to 0.43.0 (lakekeeper#1366) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update actions/setup-node action to v5 (lakekeeper#1371) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update actions/checkout action to v5 (lakekeeper#1369) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update actions/setup-python action to v6 (lakekeeper#1372) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat: V3 support (lakekeeper#1364) * chore: Set Get Task Permission to "CanGetMetadata" (lakekeeper#1376) * chore(deps): update dependency node to v22 (lakekeeper#1373) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat(authz)!: extend OpenFGA tabular entities with WarehouseId (lakekeeper#1329) --------- Co-authored-by: Christian <[email protected]> Co-authored-by: Christian Thiel <[email protected]> * feat: Add support for tasks affecting views (lakekeeper#1378) * feat(authz): Add specific Task Actions (lakekeeper#1379) * chore(tests): Test with Iceberg 1.9.2 & 1.10.0 (lakekeeper#1267) * feat: Enrich task metadata with concrete tabular type (lakekeeper#1383) * feat: Add loadTable Snapshots filter (lakekeeper#1385) * feat: add endpoint for fuzzy search of tabulars (lakekeeper#1387) * feat: Update UI to 0.10.0 (lakekeeper#1390) * feat(ui): Update UI to 0.10.1 * chore: Use lakekeeper re-exports in bin (lakekeeper#1391) * fix(tabular-search): distance and docs for `searchterm is uuid` (lakekeeper#1393) * chore(examples): Idempotent bucket creation in minimal example (lakekeeper#1386) In the case where you already have a bucket created, like the "examples" bucket, I ran into an issue where the createbuckets service fails, and this prevents lakekeeper from starting back up. This fix adds a simple minio flag to ignore buckets that already exist, making things even more user friendly * feat: Make number of workers spawned for Expiration & Purge configurable (lakekeeper#1395) * chore: release main (lakekeeper#1295) * chore: added gif to readme (lakekeeper#1396) * chore: remove unneded `#[allow(dead_code)]` (lakekeeper#1399) * fix: Use FnOnce for queue & service registration * Revert "fix: Use FnOnce for queue & service registration" This reverts commit 47b03a0. * chore(docs): Add 0.10 docs * perf(db): remove `join namespace` from `active_tabulars` view (lakekeeper#1401) * doc(db): how to connect to db and inspect schema (lakekeeper#1402) * feat: implement `OpenFgaEntity` for `ServerId` (lakekeeper#1394) * impl OpenFgaEntity * Use the implementation * fix: Use FnOnce for queue & service registration (lakekeeper#1404) * chore(deps): update dependency mkdocs-material to v9.6.21 (lakekeeper#1406) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat: Expose client-managed X-Iceberg-Access-Delegation (lakekeeper#1407) * fix: Use higher consistency for some OpenFGA queries (lakekeeper#1408) * feat: Improve Kubernetes Auth docs (lakekeeper#1415) * chore: release 0.10.1 Release-As: 0.10.1 * fix: Endpoint stats for Project Endpoints (lakekeeper#1412) * feat: Add create table guard to cleanup location on Failure (lakekeeper#1418) * chore: Generate ID types with Macro (lakekeeper#1419) * chore: Re-Export Tokio from lakekeeper-io create (lakekeeper#1420) * fix: Add support for `write.metadata.metrics.` Table Properties (lakekeeper#1422) * fix: Update UI to 0.10.2 (lakekeeper#1423) * chore: release main (lakekeeper#1403) * fix: Parse empty ProjectID headers as None (lakekeeper#1424) * chore: release 0.10.2 Release-As: 0.10.2 * chore: release main (lakekeeper#1425) * feat: Add `debug_migrate_before_serve` env var (lakekeeper#1426) * feat: Move OpenFGA Authorizer to separate crate (lakekeeper#1421) * chore(renovate): Group dependencies * chore(renovate): ignore additional deps * chore: Rename src/service -> src/server, trait Catalog -> CatalogStore (lakekeeper#1428) * feat(examples): add k8s iceberg sink connector (avro) (lakekeeper#1336) --------- Co-authored-by: Christian <[email protected]> * chore(ci): Fix release please (lakekeeper#1433) * feat: Expose License Information via API (lakekeeper#1432) * fix(deps): update all non-major dependencies (lakekeeper#1429) * chore(ci): Remove mgmt API version update via release-please * chore: Restructure catalog_store into multiple modules (lakekeeper#1434) * feat: Validate Downscoping works on Warehouse creation (lakekeeper#1437) * chore(ci): Fix release please * docs: Add info about installing sqlx to developer-guide.md (lakekeeper#1438) * docs: Update developer-guide.md (lakekeeper#1439) * chore(deps): update all non-major dependencies (lakekeeper#1436) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix: Better normalization for ARNs in S3 Profile (lakekeeper#1441) * chore(deps): update all non-major dependencies (lakekeeper#1442) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(main): release 0.10.3 (lakekeeper#1427) * fix: Release Please CI outputs * fix(ci): Revert 0.10.3 release * chore(main): release 0.10.3 (lakekeeper#1446) * feat: Introduce CatalogWarehouseOps & CatalogNamespaceOps abstractions (lakekeeper#1440) * feat: Allow x-user-agent header (lakekeeper#1453) * feat: Table & View Ops Abstractions, Improved Error Handling (lakekeeper#1454) * fix: CORS allow access delegation & etag headers (lakekeeper#1455) * fix: Headers should be lowercase (lakekeeper#1457) * chore(tests): Add trino information_schema.tables test (lakekeeper#1456) * chore: Introduce open-api feature to gate utoipa and swagger (lakekeeper#1458) * chore: Release As 0.11 * fix: Debug assertion table identifier mismatch for signer (lakekeeper#1460) * feat: Caching Short-Term-Credentials (STC) (lakekeeper#1459) * feat: Warehouse Cache (lakekeeper#1462) * chore(deps): update actions/setup-node action to v6 (lakekeeper#1443) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat: Version based Warehouse Cache (lakekeeper#1465) * feat: AuthZ Server and Project Ops (lakekeeper#1471) * chore(deps): update github artifact actions (lakekeeper#1461) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore: Rename release branch pattern to rel-* * feat: Catalog returns full Namespace Hierarchy for nested Namespaces (lakekeeper#1472) --------- Co-authored-by: Christian <[email protected]> Co-authored-by: Christian Thiel <[email protected]> Co-authored-by: Dao Thanh Tung <[email protected]> Co-authored-by: Moritz Zielke <[email protected]> Co-authored-by: Baptiste Gouhoury <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Dolan Antenucci <[email protected]> Co-authored-by: Anatoly Popov <[email protected]> Co-authored-by: Andre Luis Anastacio <[email protected]> Co-authored-by: Scott Haines <[email protected]> Co-authored-by: Viktor Kessler <[email protected]> Co-authored-by: Yohan Valencia <[email protected]> Co-authored-by: Paul Roman <[email protected]>
Summary by CodeRabbit