Skip to content

chore: Generate ID types with Macro - #1419

Merged
c-thiel merged 5 commits into
mainfrom
ct/separate-ai-error
Oct 4, 2025
Merged

c-thiel merged 5 commits into
mainfrom
ct/separate-ai-error

Conversation

@c-thiel

@c-thiel c-thiel commented Oct 4, 2025 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • New Features
    • Strongly-typed identifier system and a validated ProjectId to improve ID safety and conversions.
  • Bug Fixes
    • More consistent error mapping for malformed or unparsable IDs, yielding clearer Bad Request vs Internal responses.
  • Refactor
    • Centralized and unified identifier handling, reduced unnecessary cloning by borrowing IDs, and consolidated imports/exports.
  • Tests
    • Updated tests to use new ID parsing helpers and reflect refined error expectations.

@coderabbitai

coderabbitai Bot commented Oct 4, 2025 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

Adds a UUID-backed identifier subsystem (multiple new ID types and ProjectId), changes require_warehouse_id to accept Option<&Prefix> and return ErrorModel, updates many call sites to pass prefix.as_ref(), adjusts Postgres bindings to deref IDs, standardizes error wrapping/logging, and adds AsRef<str> for Prefix.

Changes

Cohort / File(s) Summary
Identifier system & module wiring
crates/lakekeeper/src/service/identifier/mod.rs, crates/lakekeeper/src/service/identifier/generic.rs, crates/lakekeeper/src/service/identifier/project.rs, crates/lakekeeper/src/service/identifier/tabular.rs
Adds new UUID newtypes (ServerId, WarehouseId, ViewId, TableId, NamespaceId, RoleId) with constructors, parsing helpers (from_str_or_bad_request/from_str_or_internal), Deref/Display/serde, implements TryFrom for WarehouseId, introduces ProjectId, and wires identifier submodules and exports.
require_warehouse_id signature & call sites
crates/lakekeeper/src/catalog/mod.rs, crates/lakekeeper/src/catalog/namespace.rs, crates/lakekeeper/src/catalog/s3_signer/sign.rs, crates/lakekeeper/src/catalog/tables.rs, crates/lakekeeper/src/catalog/tables/load_table.rs, crates/lakekeeper/src/catalog/views/{commit.rs,create.rs,drop.rs,exists.rs,list.rs,load.rs,rename.rs}
Changed require_warehouse_id to accept Option<&Prefix> and return Result<WarehouseId, ErrorModel>; updated call sites to use prefix.as_ref() (removing clones/consumes) and updated tests to new parsing helpers.
Prefix utility
crates/lakekeeper/src/api/iceberg/types.rs
Adds impl AsRef<str> for Prefix enabling trait-based borrowing of Prefix.
Management API conversion change
crates/lakekeeper/src/api/management/v1/warehouse/mod.rs
Uses warehouse.id.into() for id conversion instead of to_uuid().
Postgres bindings & warehouse stats
crates/lakekeeper/src/implementations/postgres/tabular/table/commit.rs, crates/lakekeeper/src/implementations/postgres/warehouse.rs
Bindings now pass dereferenced UUIDs (e.g., *warehouse_id) instead of .to_uuid()/.0; renamed parameter in get_warehouse_stats and adjusted test inputs.
Error wrapping, parsing, and logging
crates/lakekeeper/src/request_metadata.rs, crates/lakekeeper/src/service/endpoint_statistics.rs, crates/lakekeeper/src/implementations/postgres/endpoint_statistics/sink.rs
Switches to IcebergErrorResponse::from(...).into_response() in request metadata, uses from_str_or_internal for WarehouseId parsing with mapped context, replaces debug {:?} logging with {e}.
Auth & OpenFGA parsing updates
crates/lakekeeper/src/service/authn.rs, crates/lakekeeper/src/service/authz/implementations/openfga/{check.rs,entities.rs}
Uses from_str_or_bad_request for RoleId parsing; tests switched to from_str_or_internal for various ID parsing; error mapping now uses e.message. Removed unused FromStr imports.
Service module exports & visibility changes
crates/lakekeeper/src/service/mod.rs, crates/lakekeeper/src/service/catalog.rs, crates/lakekeeper/src/service/event_publisher/mod.rs
Introduces identifier module, re-exports identifier types (generic::*, project::ProjectId, tabular exports), adjusts imports to use new identifier paths, and modifies State field visibility and exported identifiers.
Storage/tests import cleanups
crates/lakekeeper/src/service/storage/{mod.rs,az.rs,s3.rs}
Reorders/standardizes TabularId/NamespaceId imports in tests and modules; no behavior changes.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor Client
  participant API as API Handler
  participant Catalog as Catalog Module
  participant Ident as Identifier Module
  participant DB as Postgres

  Client->>API: HTTP request (optional prefix)
  API->>Catalog: operation(..., prefix)
  Catalog->>Ident: require_warehouse_id(prefix.as_ref())
  alt prefix present & valid UUID
    Ident-->>Catalog: Ok(WarehouseId)
    Catalog->>DB: Query with *warehouse_id
    DB-->>Catalog: rows
    Catalog-->>API: success response
    API-->>Client: 200 OK
  else missing/invalid prefix
    Ident-->>Catalog: Err(ErrorModel BAD_REQUEST / INTERNAL)
    Catalog-->>API: error converted via IcebergErrorResponse
    API-->>Client: 4xx/5xx response
  end
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Possibly related PRs

Poem

In burrows of bytes I twitch my nose,
New UUID carrots in neat little rows.
Prefixes borrowed, not cloned in the race,
Warehouses found by a tidy trace.
I hop, I commit — a carrot-signed grace. 🥕

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title “chore: Generate ID types with Macro” clearly and concisely summarizes the primary change of introducing macro-driven generation of the various ID wrapper types and aligns with the scope of modifications in the PR. It avoids extraneous details and is descriptive enough for a glance overview of the main work.
Docstring Coverage ✅ Passed Docstring coverage is 86.96% which is sufficient. The required threshold is 80.00%.

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@c-thiel

c-thiel commented Oct 4, 2025

Copy link
Copy Markdown
Member Author

@CodeRabbit full review

@coderabbitai

coderabbitai Bot commented Oct 4, 2025

Copy link
Copy Markdown
Contributor
✅ Actions performed

Full review triggered.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🧹 Nitpick comments (1)
crates/lakekeeper/src/service/identifier/generic.rs (1)

166-183: Consider reusing from_str_or_bad_request for consistency.

The error construction logic duplicates the pattern from from_str_or_bad_request, though with a more specific error message mentioning "prefix".

If maintaining a consistent error format is more important than the custom message, consider:

 impl TryFrom<Prefix> for WarehouseId {
     type Error = ErrorModel;

     fn try_from(value: Prefix) -> Result<Self, Self::Error> {
-        let prefix = uuid::Uuid::parse_str(value.as_str()).map_err(|e| {
-            ErrorModel::builder()
-                .code(StatusCode::BAD_REQUEST.into())
-                .message(format!(
-                    "Provided prefix is not a warehouse id. Expected UUID, got: {}",
-                    value.as_str()
-                ))
-                .r#type("PrefixIsNotWarehouseID".to_string())
-                .source(Some(Box::new(e)))
-                .build()
-        })?;
-        Ok(WarehouseId(prefix))
+        WarehouseId::from_str_or_bad_request(value.as_str())
     }
 }

However, the current implementation provides more specific context ("prefix is not a warehouse id"), which may be valuable for debugging. The choice depends on whether you prefer consistency or specificity in error messages.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5f6e9c9 and f321a9c.

📒 Files selected for processing (32)
  • crates/lakekeeper/src/api/iceberg/types.rs (1 hunks)
  • crates/lakekeeper/src/api/management/v1/warehouse/mod.rs (1 hunks)
  • crates/lakekeeper/src/catalog/mod.rs (1 hunks)
  • crates/lakekeeper/src/catalog/namespace.rs (6 hunks)
  • crates/lakekeeper/src/catalog/s3_signer/sign.rs (1 hunks)
  • crates/lakekeeper/src/catalog/tables.rs (11 hunks)
  • crates/lakekeeper/src/catalog/tables/load_table.rs (1 hunks)
  • crates/lakekeeper/src/catalog/views/commit.rs (1 hunks)
  • crates/lakekeeper/src/catalog/views/create.rs (1 hunks)
  • crates/lakekeeper/src/catalog/views/drop.rs (4 hunks)
  • crates/lakekeeper/src/catalog/views/exists.rs (1 hunks)
  • crates/lakekeeper/src/catalog/views/list.rs (1 hunks)
  • crates/lakekeeper/src/catalog/views/load.rs (1 hunks)
  • crates/lakekeeper/src/catalog/views/rename.rs (1 hunks)
  • crates/lakekeeper/src/implementations/postgres/endpoint_statistics/sink.rs (1 hunks)
  • crates/lakekeeper/src/implementations/postgres/tabular/table/commit.rs (2 hunks)
  • crates/lakekeeper/src/implementations/postgres/warehouse.rs (4 hunks)
  • crates/lakekeeper/src/request_metadata.rs (2 hunks)
  • crates/lakekeeper/src/service/authn.rs (1 hunks)
  • crates/lakekeeper/src/service/authz/implementations/openfga/check.rs (6 hunks)
  • crates/lakekeeper/src/service/authz/implementations/openfga/entities.rs (3 hunks)
  • crates/lakekeeper/src/service/catalog.rs (1 hunks)
  • crates/lakekeeper/src/service/endpoint_statistics.rs (1 hunks)
  • crates/lakekeeper/src/service/event_publisher/mod.rs (1 hunks)
  • crates/lakekeeper/src/service/identifier/generic.rs (1 hunks)
  • crates/lakekeeper/src/service/identifier/mod.rs (1 hunks)
  • crates/lakekeeper/src/service/identifier/project.rs (1 hunks)
  • crates/lakekeeper/src/service/identifier/tabular.rs (6 hunks)
  • crates/lakekeeper/src/service/mod.rs (1 hunks)
  • crates/lakekeeper/src/service/storage/az.rs (1 hunks)
  • crates/lakekeeper/src/service/storage/mod.rs (1 hunks)
  • crates/lakekeeper/src/service/storage/s3.rs (1 hunks)
🧰 Additional context used
🧠 Learnings (3)
📚 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/check.rs
  • crates/lakekeeper/src/service/authz/implementations/openfga/entities.rs
📚 Learning: 2025-09-25T06:54:15.179Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1378
File: crates/lakekeeper/src/api/management/v1/warehouse/undrop.rs:51-53
Timestamp: 2025-09-25T06:54:15.179Z
Learning: In the lakekeeper codebase, when iterating over &[TabularId] and pattern matching TabularId::View(id), the id variable has type &ViewId. Using *id correctly dereferences to get ViewId, which can be passed directly to authorization methods that expect ViewId parameters.

Applied to files:

  • crates/lakekeeper/src/service/identifier/tabular.rs
📚 Learning: 2025-09-05T13:41:21.671Z
Learnt from: mooori
PR: lakekeeper/lakekeeper#1254
File: crates/lakekeeper/src/catalog/views.rs:293-309
Timestamp: 2025-09-05T13:41:21.671Z
Learning: In the lakekeeper codebase, ViewId implements Deref<Target = Uuid>, so `*view_id` is valid syntax to dereference a ViewId to get the underlying Uuid. This is not an invalid dereference operation.

Applied to files:

  • crates/lakekeeper/src/service/identifier/tabular.rs
🧬 Code graph analysis (19)
crates/lakekeeper/src/catalog/s3_signer/sign.rs (1)
crates/lakekeeper/src/catalog/mod.rs (1)
  • require_warehouse_id (54-68)
crates/lakekeeper/src/api/iceberg/types.rs (2)
crates/lakekeeper/src/service/identifier/tabular.rs (1)
  • as_ref (64-69)
crates/lakekeeper/src/service/task_queue/mod.rs (3)
  • as_ref (166-168)
  • as_ref (260-262)
  • as_ref (279-281)
crates/lakekeeper/src/catalog/views/create.rs (1)
crates/lakekeeper/src/catalog/mod.rs (1)
  • require_warehouse_id (54-68)
crates/lakekeeper/src/implementations/postgres/tabular/table/commit.rs (1)
crates/lakekeeper/src/service/task_queue/mod.rs (1)
  • warehouse_id (97-103)
crates/lakekeeper/src/catalog/views/load.rs (1)
crates/lakekeeper/src/catalog/mod.rs (1)
  • require_warehouse_id (54-68)
crates/lakekeeper/src/catalog/views/commit.rs (1)
crates/lakekeeper/src/catalog/mod.rs (1)
  • require_warehouse_id (54-68)
crates/lakekeeper/src/catalog/mod.rs (1)
crates/iceberg-ext/src/catalog/rest/error.rs (1)
  • bad_request (127-133)
crates/lakekeeper/src/catalog/views/exists.rs (1)
crates/lakekeeper/src/catalog/mod.rs (1)
  • require_warehouse_id (54-68)
crates/lakekeeper/src/catalog/namespace.rs (1)
crates/lakekeeper/src/catalog/mod.rs (1)
  • require_warehouse_id (54-68)
crates/lakekeeper/src/catalog/tables.rs (1)
crates/lakekeeper/src/catalog/mod.rs (1)
  • require_warehouse_id (54-68)
crates/lakekeeper/src/implementations/postgres/warehouse.rs (1)
crates/lakekeeper/src/service/task_queue/mod.rs (1)
  • warehouse_id (97-103)
crates/lakekeeper/src/catalog/views/drop.rs (1)
crates/lakekeeper/src/catalog/mod.rs (1)
  • require_warehouse_id (54-68)
crates/lakekeeper/src/catalog/views/list.rs (1)
crates/lakekeeper/src/catalog/mod.rs (1)
  • require_warehouse_id (54-68)
crates/lakekeeper/src/service/identifier/project.rs (3)
crates/lakekeeper/src/implementations/postgres/endpoint_statistics/sink.rs (3)
  • sqlx (193-216)
  • sqlx (239-256)
  • new (57-59)
crates/lakekeeper/src/service/authn.rs (6)
  • deserialize (403-409)
  • deserialize (452-458)
  • try_new (288-298)
  • from (397-399)
  • from (422-424)
  • from (428-430)
crates/iceberg-ext/src/catalog/rest/error.rs (1)
  • bad_request (127-133)
crates/lakekeeper/src/catalog/tables/load_table.rs (1)
crates/lakekeeper/src/catalog/mod.rs (1)
  • require_warehouse_id (54-68)
crates/lakekeeper/src/service/identifier/generic.rs (4)
crates/lakekeeper/src/service/identifier/project.rs (8)
  • new (29-31)
  • new_random (34-36)
  • deref (75-77)
  • from (22-24)
  • from (95-97)
  • fmt (81-83)
  • deserialize (12-18)
  • as_str (62-64)
crates/iceberg-ext/src/catalog/rest/error.rs (1)
  • source (98-102)
crates/lakekeeper/src/service/identifier/tabular.rs (6)
  • deref (155-160)
  • from (52-54)
  • from (58-60)
  • from (136-141)
  • fmt (73-75)
  • as_ref (64-69)
crates/lakekeeper/src/api/iceberg/types.rs (7)
  • from (25-27)
  • from (31-33)
  • from (56-61)
  • as_ref (37-39)
  • deserialize (103-113)
  • deserialize (199-210)
  • as_str (13-15)
crates/lakekeeper/src/catalog/views/rename.rs (1)
crates/lakekeeper/src/catalog/mod.rs (1)
  • require_warehouse_id (54-68)
crates/lakekeeper/src/service/authz/implementations/openfga/entities.rs (2)
crates/lakekeeper/src/service/authz/implementations/openfga/error.rs (1)
  • unexpected_entity (44-50)
crates/lakekeeper/src/service/identifier/project.rs (1)
  • from_str (89-91)
crates/lakekeeper/src/service/identifier/tabular.rs (1)
crates/iceberg-ext/src/catalog/rest/error.rs (1)
  • internal (161-172)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: openfga
  • GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (24)
crates/lakekeeper/src/implementations/postgres/warehouse.rs (2)

669-745: LGTM! Clean migration to dereferenced IDs.

The parameter rename from warehouse_ident to warehouse_id improves consistency. The migration from tuple field access (.0) to Deref operator (*warehouse_id) at lines 712 and 741 is correct and aligns with the strong-typed identifier system introduced in this PR. This pattern is used consistently throughout the file.


1106-1106: LGTM! Test updated consistently.

The test correctly uses *warehouse_id to match the new dereferencing pattern, ensuring consistency between test and implementation code.

crates/lakekeeper/src/api/iceberg/types.rs (1)

36-40: LGTM!

The AsRef<str> implementation follows Rust conventions and enables Prefix to be borrowed as &str in generic contexts. This aligns with the broader refactoring where require_warehouse_id now accepts Option<&Prefix> instead of consuming the value.

crates/lakekeeper/src/request_metadata.rs (1)

284-284: Verify that the error response format remains compatible.

The error handling now wraps the parse error with IcebergErrorResponse before converting to an HTTP response. Ensure this doesn't introduce breaking changes in the error response structure that clients depend on.

crates/lakekeeper/src/service/endpoint_statistics.rs (1)

300-321: LGTM!

The refactored parsing logic using from_str_or_internal provides better error context through append_detail, making debugging easier. The consistent error handling pattern across both warehouse_id and prefix parameters is good.

crates/lakekeeper/src/service/event_publisher/mod.rs (1)

33-33: LGTM!

The simplified import path aligns with the identifier module reorganization. No behavioral changes.

crates/lakekeeper/src/catalog/tables/load_table.rs (1)

35-35: LGTM!

Using prefix.as_ref() correctly converts Option<Prefix> to Option<&Prefix> to match the updated require_warehouse_id signature. This avoids unnecessary cloning or consumption of the Prefix value.

crates/lakekeeper/src/catalog/views/load.rs (1)

31-31: LGTM!

Consistent with the refactoring in other catalog modules, correctly passing a borrowed reference to require_warehouse_id.

crates/lakekeeper/src/service/identifier/mod.rs (1)

1-3: LGTM!

The new identifier module structure properly encapsulates generic, project, and tabular identifier logic with appropriate visibility (pub(super)). This consolidation aligns with the broader refactoring to centralize identifier handling.

crates/lakekeeper/src/service/storage/s3.rs (1)

1103-1103: LGTM!

Import reordering in the test module is a cosmetic change with no functional impact.

crates/lakekeeper/src/implementations/postgres/tabular/table/commit.rs (1)

170-170: LGTM! Consistent use of Deref for WarehouseId.

The change from warehouse_id.to_uuid() to *warehouse_id correctly leverages the Deref implementation for WarehouseId, simplifying the code while maintaining identical behavior.

Also applies to: 188-188

crates/lakekeeper/src/service/authz/implementations/openfga/entities.rs (2)

69-71: LGTM! Improved error handling with new parsing helpers.

The change to from_str_or_bad_request provides clearer error semantics for request-level parsing, and the updated error field access (e.message instead of e.error.message) aligns with the simplified error structure.


95-99: LGTM! Consistent parsing pattern across entity types.

The RoleAssignee and ProjectId parsing changes follow the same pattern as RoleId, maintaining consistency in error handling throughout the module.

Also applies to: 198-200

crates/lakekeeper/src/catalog/views/create.rs (1)

41-41: LGTM! Efficient borrowing instead of cloning.

The change from prefix.clone() to prefix.as_ref() eliminates unnecessary allocation and aligns with the updated require_warehouse_id signature that accepts Option<&Prefix>.

crates/lakekeeper/src/catalog/views/rename.rs (1)

24-24: LGTM! Consistent borrowing pattern.

The change from prefix.clone() to prefix.as_ref() matches the pattern applied across other view operations, avoiding unnecessary cloning.

crates/lakekeeper/src/service/authz/implementations/openfga/check.rs (1)

440-443: LGTM! Test code updated with new parsing helpers.

The test functions now use from_str_or_internal instead of from_str, which provides more appropriate error messages for internal/test contexts. The .unwrap() usage is acceptable in test code.

Also applies to: 464-467, 489-492, 516-519, 542-545, 685-692

crates/lakekeeper/src/catalog/views/drop.rs (2)

35-35: LGTM! Consistent borrowing pattern.

The change from prefix.clone() to prefix.as_ref() eliminates unnecessary cloning, matching the pattern applied across other catalog operations.


299-299: LGTM! Test code updated with new parsing helpers.

The test functions now use WarehouseId::from_str_or_internal instead of from_str, providing better error context for test scenarios.

Also applies to: 326-326, 395-395

crates/lakekeeper/src/catalog/namespace.rs (1)

56-56: LGTM! Comprehensive borrowing optimization across namespace operations.

All namespace service methods now use prefix.as_ref() instead of prefix.clone(), consistently applying the borrowing pattern throughout the module. This eliminates unnecessary allocations while maintaining the same functionality.

Also applies to: 197-197, 302-302, 338-338, 365-365, 422-422

crates/lakekeeper/src/service/identifier/generic.rs (4)

1-10: LGTM!

The imports and module structure are clean and appropriate. The public re-export of NamedEntity provides a clear API surface.


11-27: LGTM!

The NamedEntity trait and its implementation for TableIdent are well-designed. The use of chain with std::iter::once is idiomatic for combining the namespace parts with the table name.


158-164: LGTM!

The ID type definitions are clean and comprehensive. All types are generated with serialization support, which is appropriate for API types.


60-60: UUID v7 feature is enabled Cargo.toml includes the "v7" feature for the uuid crate (line 159).

crates/lakekeeper/src/implementations/postgres/endpoint_statistics/sink.rs (1)

210-212: LGTM—ErrorModel’s Display impl prints type, code, and message, so logging {e} remains informative.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
crates/lakekeeper/src/implementations/postgres/tabular/table/commit.rs (1)

257-266: Fix parameter-count guard: first UPDATE uses 8 binds/row, not 7

validate_commit_count uses MAX_PARAMETERS / 7, but the table UPDATE binds 8 params per row. Large batches can exceed Postgres’ parameter limit and fail at runtime.

Update the divisor (or compute via a constant) to 8 to reflect the worst-case per-row binds.

Apply this diff:

 fn validate_commit_count(commits: &[TableCommit]) -> api::Result<()> {
-    if commits.len() > (MAX_PARAMETERS / 7) {
+    // Worst-case binds per row in a single statement (the "table" UPDATE): 8
+    const PARAMS_PER_ROW_TABLE: usize = 8;
+    if commits.len() > (MAX_PARAMETERS / PARAMS_PER_ROW_TABLE) {
         return Err(ErrorModel::bad_request(
             "Too many updates in single commit",
             "TooManyTablesForCommit".to_string(),
             None,
         )
         .into());
     }
     Ok(())
 }
♻️ Duplicate comments (1)
crates/lakekeeper/src/service/identifier/project.rs (1)

43-58: Empty project ID validation already flagged.

The issue where chars().all(...) accepts empty strings was already raised in a previous review and remains unresolved.

🧹 Nitpick comments (4)
crates/lakekeeper/src/implementations/postgres/endpoint_statistics/sink.rs (1)

210-212: Standardize error logging formats in sink.rs

  • Lines 27 & 40: replace {:?}, e.error with {e} to match line 211.
  • Line 211: include the parsed project_id in the message:
- tracing::error!("Failed to parse project id from db: {e}");
+ tracing::error!("Failed to parse project id '{}' from db: {e}", project_id);
crates/lakekeeper/src/implementations/postgres/tabular/table/commit.rs (1)

169-171: Deref for binding works; consider readability

Using *warehouse_id relies on Deref to uuid::Uuid. Consider implementing sqlx::Type + Encode for WarehouseId and binding it directly, or converting explicitly, for clarity.

Also applies to: 187-189

crates/lakekeeper/src/service/identifier/generic.rs (2)

146-146: Consider consistent UUID parsing method.

Line 146 uses uuid::Uuid::from_str, while line 170 in the TryFrom implementation uses uuid::Uuid::parse_str. Both methods are equivalent in the uuid crate, but using the same method throughout would improve consistency.

Consider standardizing on one method:

-                Ok($name::from(uuid::Uuid::from_str(&s).map_err(|e| {
+                Ok($name::from(uuid::Uuid::parse_str(&s).map_err(|e| {

174-175: Minor optimization: cache repeated as_str() call.

value.as_str() is called twice. Consider caching the result for minor efficiency improvement and cleaner code.

Apply this diff to cache the string value:

 impl TryFrom<Prefix> for WarehouseId {
     type Error = ErrorModel;

     fn try_from(value: Prefix) -> Result<Self, Self::Error> {
+        let prefix_str = value.as_str();
-        let prefix = uuid::Uuid::parse_str(value.as_str()).map_err(|e| {
+        let prefix = uuid::Uuid::parse_str(prefix_str).map_err(|e| {
             ErrorModel::builder()
                 .code(StatusCode::BAD_REQUEST.into())
                 .message(format!(
                     "Provided prefix is not a warehouse id. Expected UUID, got: {}",
-                    value.as_str()
+                    prefix_str
                 ))
                 .r#type("PrefixIsNotWarehouseID".to_string())
                 .source(Some(Box::new(e)))
                 .build()
         })?;
         Ok(WarehouseId(prefix))
     }
 }
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5f6e9c9 and f321a9c.

📒 Files selected for processing (32)
  • crates/lakekeeper/src/api/iceberg/types.rs (1 hunks)
  • crates/lakekeeper/src/api/management/v1/warehouse/mod.rs (1 hunks)
  • crates/lakekeeper/src/catalog/mod.rs (1 hunks)
  • crates/lakekeeper/src/catalog/namespace.rs (6 hunks)
  • crates/lakekeeper/src/catalog/s3_signer/sign.rs (1 hunks)
  • crates/lakekeeper/src/catalog/tables.rs (11 hunks)
  • crates/lakekeeper/src/catalog/tables/load_table.rs (1 hunks)
  • crates/lakekeeper/src/catalog/views/commit.rs (1 hunks)
  • crates/lakekeeper/src/catalog/views/create.rs (1 hunks)
  • crates/lakekeeper/src/catalog/views/drop.rs (4 hunks)
  • crates/lakekeeper/src/catalog/views/exists.rs (1 hunks)
  • crates/lakekeeper/src/catalog/views/list.rs (1 hunks)
  • crates/lakekeeper/src/catalog/views/load.rs (1 hunks)
  • crates/lakekeeper/src/catalog/views/rename.rs (1 hunks)
  • crates/lakekeeper/src/implementations/postgres/endpoint_statistics/sink.rs (1 hunks)
  • crates/lakekeeper/src/implementations/postgres/tabular/table/commit.rs (2 hunks)
  • crates/lakekeeper/src/implementations/postgres/warehouse.rs (4 hunks)
  • crates/lakekeeper/src/request_metadata.rs (2 hunks)
  • crates/lakekeeper/src/service/authn.rs (1 hunks)
  • crates/lakekeeper/src/service/authz/implementations/openfga/check.rs (6 hunks)
  • crates/lakekeeper/src/service/authz/implementations/openfga/entities.rs (3 hunks)
  • crates/lakekeeper/src/service/catalog.rs (1 hunks)
  • crates/lakekeeper/src/service/endpoint_statistics.rs (1 hunks)
  • crates/lakekeeper/src/service/event_publisher/mod.rs (1 hunks)
  • crates/lakekeeper/src/service/identifier/generic.rs (1 hunks)
  • crates/lakekeeper/src/service/identifier/mod.rs (1 hunks)
  • crates/lakekeeper/src/service/identifier/project.rs (1 hunks)
  • crates/lakekeeper/src/service/identifier/tabular.rs (6 hunks)
  • crates/lakekeeper/src/service/mod.rs (1 hunks)
  • crates/lakekeeper/src/service/storage/az.rs (1 hunks)
  • crates/lakekeeper/src/service/storage/mod.rs (1 hunks)
  • crates/lakekeeper/src/service/storage/s3.rs (1 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/entities.rs
  • crates/lakekeeper/src/service/authz/implementations/openfga/check.rs
📚 Learning: 2025-09-25T06:54:15.179Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1378
File: crates/lakekeeper/src/api/management/v1/warehouse/undrop.rs:51-53
Timestamp: 2025-09-25T06:54:15.179Z
Learning: In the lakekeeper codebase, when iterating over &[TabularId] and pattern matching TabularId::View(id), the id variable has type &ViewId. Using *id correctly dereferences to get ViewId, which can be passed directly to authorization methods that expect ViewId parameters.

Applied to files:

  • crates/lakekeeper/src/service/identifier/tabular.rs
📚 Learning: 2025-09-05T13:41:21.671Z
Learnt from: mooori
PR: lakekeeper/lakekeeper#1254
File: crates/lakekeeper/src/catalog/views.rs:293-309
Timestamp: 2025-09-05T13:41:21.671Z
Learning: In the lakekeeper codebase, ViewId implements Deref<Target = Uuid>, so `*view_id` is valid syntax to dereference a ViewId to get the underlying Uuid. This is not an invalid dereference operation.

Applied to files:

  • crates/lakekeeper/src/service/identifier/tabular.rs
📚 Learning: 2025-09-21T09:54:54.868Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1348
File: .sqlx/query-1c1a32de33e3f54464a1107f7d4d4b8cbd99dd69aae1c740561c3cbbea2eaa19.json:9-10
Timestamp: 2025-09-21T09:54:54.868Z
Learning: In the lakekeeper codebase, ServerId newtype uses manual conversion between uuid::Uuid and ServerId at query call sites rather than sqlx transparent annotations like #[sqlx(transparent)]. The manual conversion approach is the preferred pattern in this codebase.

Applied to files:

  • crates/lakekeeper/src/service/identifier/generic.rs
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
  • GitHub Check: check-generated-openapi-matches
  • GitHub Check: test
  • GitHub Check: clippy
  • GitHub Check: sqlx-check
  • GitHub Check: docker / docker
  • GitHub Check: docker / docker
  • GitHub Check: docker / docker
🔇 Additional comments (30)
crates/lakekeeper/src/implementations/postgres/warehouse.rs (2)

671-741: LGTM! Clean refactor to Deref-based ID type.

The changes correctly update get_warehouse_stats to work with the new ID type implementation:

  • Parameter rename from warehouse_ident to warehouse_id improves consistency
  • Dereferencing with *warehouse_id (instead of .0) for SQL bindings and response construction is correct
  • Pattern matches the rest of the file (lines 67, 96, 386, 448, 473, 518, 542, 567, 611)

1106-1106: Test correctly updated.

The test properly uses *warehouse_id to match the new Deref-based pattern.

crates/lakekeeper/src/request_metadata.rs (1)

12-12: LGTM!

The addition of IcebergErrorResponse to imports and the updated error conversion at line 284 standardize error handling across the codebase. The functional behavior remains the same while aligning with the new error wrapping pattern.

Also applies to: 284-284

crates/lakekeeper/src/catalog/tables/load_table.rs (1)

35-35: LGTM!

The change to borrow Prefix via as_ref() aligns with the broader refactor pattern and avoids unnecessary cloning, improving both performance and ownership clarity.

crates/lakekeeper/src/service/event_publisher/mod.rs (1)

33-33: LGTM!

The simplified import path for TabularId reflects the identifier module reorganization and improves code clarity without any functional changes.

crates/lakekeeper/src/catalog/views/load.rs (1)

31-31: LGTM!

Consistent with the borrowing pattern applied across the codebase. The change to prefix.as_ref() avoids unnecessary cloning and aligns with the updated require_warehouse_id signature.

crates/lakekeeper/src/service/storage/s3.rs (1)

1103-1103: LGTM!

The import consolidation is a minor formatting improvement with no functional impact.

crates/lakekeeper/src/catalog/views/exists.rs (1)

21-21: LGTM!

The borrowing pattern is consistently applied here, matching the changes in other catalog modules and aligning with the refactored require_warehouse_id signature.

crates/lakekeeper/src/api/management/v1/warehouse/mod.rs (1)

1104-1104: LGTM!

The change from to_uuid() to into() is more idiomatic with the new identifier system and leverages Rust's standard conversion traits.

crates/lakekeeper/src/service/storage/mod.rs (1)

35-36: Import path update looks correct

Aligns with central TabularId re-export; no functional change.

crates/lakekeeper/src/catalog/views/commit.rs (1)

50-51: Switched to borrowing Prefix correctly

Using prefix.as_ref() matches the new require_warehouse_id signature.

crates/lakekeeper/src/catalog/views/list.rs (1)

29-30: Prefix borrow refactor is correct

require_warehouse_id(prefix.as_ref()) is the intended usage.

crates/lakekeeper/src/service/catalog.rs (1)

52-53: Consolidated identifier imports LGTM

Keeps identifiers sourced consistently; no behavior change.

crates/lakekeeper/src/catalog/s3_signer/sign.rs (1)

60-61: Borrowed Prefix usage is correct

require_warehouse_id(prefix.as_ref()) aligns with updated signature.

crates/lakekeeper/src/service/storage/az.rs (1)

560-563: Test import adjustment is fine

NamespaceId and TabularId grouped consistently with new exports.

crates/lakekeeper/src/catalog/views/drop.rs (2)

35-36: Borrowed Prefix usage is correct

require_warehouse_id(prefix.as_ref()) matches the new API.


297-301: Test ID parsing update LGTM

WarehouseId::from_str_or_internal usage aligns tests with new constructors.

Also applies to: 324-328, 393-396

crates/lakekeeper/src/api/iceberg/types.rs (1)

36-40: LGTM! Clean trait implementation.

The AsRef<str> implementation for Prefix is correct and idiomatic. This enables borrowing the inner string without cloning, which is leveraged throughout the PR to replace prefix.clone() calls with prefix.as_ref() calls.

crates/lakekeeper/src/service/authn.rs (1)

275-275: LGTM! Improved error handling.

The change from RoleId::from_str to RoleId::from_str_or_bad_request standardizes error handling by returning a BadRequest directly for invalid role IDs, providing better user-facing error messages.

crates/lakekeeper/src/service/authz/implementations/openfga/entities.rs (1)

69-71: LGTM! Consistent error handling across ID parsing.

The updates to use from_str_or_bad_request for RoleId and standardize error access via e.message (instead of e.error.message) align with the broader identifier refactor. The changes maintain consistent error handling patterns across all three ID types (RoleId, RoleAssignee, ProjectId).

Also applies to: 95-99, 198-200

crates/lakekeeper/src/catalog/views/create.rs (1)

41-41: LGTM! Efficient borrowing instead of cloning.

The change from prefix.clone() to prefix.as_ref() avoids unnecessary cloning by leveraging the new AsRef<str> implementation for Prefix. This is a clean performance improvement with no functional changes.

crates/lakekeeper/src/catalog/views/rename.rs (1)

24-24: LGTM! Consistent borrowing pattern.

The change from prefix.clone() to prefix.as_ref() maintains consistency with the borrowing pattern applied throughout the PR, avoiding unnecessary clones.

crates/lakekeeper/src/catalog/namespace.rs (1)

56-56: LGTM! Consistent borrowing across all namespace operations.

All six functions in this file consistently apply the borrowing pattern by changing prefix.clone() to prefix.as_ref(). This systematic refactor avoids unnecessary clones across:

  • list_namespaces
  • create_namespace
  • load_namespace_metadata
  • namespace_exists
  • drop_namespace
  • update_namespace_properties

Also applies to: 197-197, 302-302, 338-338, 365-365, 422-422

crates/lakekeeper/src/service/identifier/mod.rs (1)

1-3: LGTM! Clean module organization.

The three new module declarations (generic, project, tabular) properly organize the identifier subsystem. The pub(super) visibility is appropriate for modules that will be selectively re-exported by the parent module.

crates/lakekeeper/src/service/authz/implementations/openfga/check.rs (1)

440-443: LGTM! Test updates align with identifier refactor.

The test updates consistently use from_str_or_internal constructors for NamespaceId and WarehouseId in test data setup. This aligns with the broader identifier subsystem changes while maintaining test correctness.

Also applies to: 464-467, 489-492, 516-519, 542-545, 685-692

crates/lakekeeper/src/catalog/mod.rs (1)

54-68: Borrowing Prefix avoids needless clones

Switching require_warehouse_id to take Option<&Prefix> keeps the call sites zero-copy while preserving the existing 400 response for missing or invalid prefixes. Nice refinement.

crates/lakekeeper/src/service/identifier/generic.rs (4)

11-27: LGTM! Clean trait definition and implementation.

The NamedEntity trait provides a clear abstraction for converting entities into name parts. The TableIdent implementation correctly chains namespace components with the table name using idiomatic Rust iterators.


50-61: LGTM! Well-designed constructors.

The constructors are clean and follow best practices:

  • new provides explicit wrapping of existing UUIDs
  • new_random uses UUID v7 (time-ordered) for new IDs
  • Both methods are marked #[must_use] to catch accidental unused results

102-138: LGTM! Comprehensive and idiomatic trait implementations.

The standard trait implementations are well-designed:

  • Deref enables transparent access to uuid::Uuid methods
  • Bidirectional From conversions (UUID ↔ ID) are complete
  • Display appropriately delegates to the inner UUID
  • AsRef<uuid::Uuid> provides ergonomic borrowing

158-164: LGTM! Consistent ID type definitions.

All six ID types (ServerId, WarehouseId, ViewId, TableId, NamespaceId, RoleId) consistently use the serializable variant, following a clear naming convention.

@c-thiel

c-thiel commented Oct 4, 2025

Copy link
Copy Markdown
Member Author

@CodeRabbit review

@coderabbitai

coderabbitai Bot commented Oct 4, 2025

Copy link
Copy Markdown
Contributor
✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@github-actions

github-actions Bot commented Oct 4, 2025

Copy link
Copy Markdown
Contributor

✅ PR Title Formatted Correctly

The title of this PR match the correct format. Thank you!

@c-thiel
c-thiel enabled auto-merge (squash) October 4, 2025 15:06
@c-thiel
c-thiel merged commit 47cef6a into main Oct 4, 2025
@c-thiel
c-thiel deleted the ct/separate-ai-error branch October 4, 2025 15:51
@c-thiel c-thiel mentioned this pull request Oct 4, 2025
mrjoe7 added a commit to mrjoe7/lakekeeper that referenced this pull request Oct 30, 2025
* 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]>
@coderabbitai coderabbitai Bot mentioned this pull request Jul 26, 2026
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