Skip to content

feat: Set ServerID during migration - #1348

Merged
c-thiel merged 7 commits into
mainfrom
ct/set-server-id-during-migration
Sep 21, 2025
Merged

c-thiel merged 7 commits into
mainfrom
ct/set-server-id-during-migration

Conversation

@c-thiel

@c-thiel c-thiel commented Sep 19, 2025 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • New Features

    • Introduced a ServerId wrapper type used across service and authorization surfaces.
    • ServerInfo is now a struct with mandatory server_id, terms_accepted, and open_for_bootstrap fields.
    • Database migration now returns the assigned ServerId and logs include server ID and bootstrap/terms status.
  • Refactor

    • Simplified bootstrap flow: bootstrap calls no longer require passing a server_id.
    • Authorization components (including OpenFGA) unified to use ServerId.
    • Bootstrapping checks replaced with explicit open-for-bootstrap semantics.
  • Tests

    • Test setup runs migrations and uses a unified setup helper; tests updated to use ServerId generators.
  • Chores

    • Removed a noisy debug print.

@coderabbitai

coderabbitai Bot commented Sep 19, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

Replaces uuid::Uuid with a new ServerId wrapper across service/authz; refactors ServerInfo from enum to struct; replaces determine_server_id with get_server_info (returning ServerInfo); removes server_id parameter from bootstrap; updates Postgres migrations to provide ServerId and adapts startup, APIs, and tests accordingly.

Changes

Cohort / File(s) Summary
Core Service Types & Catalog API
crates/lakekeeper/src/service/mod.rs, crates/lakekeeper/src/service/catalog.rs
Add ServerId wrapper type; change State::server_id() to return ServerId; convert ServerInfo from enum to struct (server_id: ServerId, terms_accepted, open_for_bootstrap); remove determine_server_id; update get_server_info and bootstrap signatures (drop server_id param) and accessors.
AuthZ Trait & Implementations
crates/lakekeeper/src/service/authz/mod.rs, crates/lakekeeper/src/service/authz/implementations/mod.rs, .../allow_all.rs, .../openfga/*
Replace uuid::Uuid with ServerId across Authorizer trait and implementations (AllowAll, OpenFGA client/authorizer); update constructors, server_id() return types, imports, and tests to use ServerId::new_random().
Postgres Backend (Catalog/Bootstrap/Migrations)
crates/lakekeeper/src/implementations/postgres/catalog.rs, .../bootstrap.rs, .../migrations/mod.rs
Introduce get_or_set_server_id helper; change get_validation_data to return ServerInfo struct; remove server_id param from bootstrap and update its logic to UPDATE flags; migrate now returns ServerId after ensuring/creating server row.
Serve Paths & Startup
crates/lakekeeper/src/serve.rs, crates/lakekeeper-bin/src/main.rs
Replace determine_server_id usage with get_server_info(...).server_id(); simplify bootstrapping checks to boolean is_open_for_bootstrap() and terms_accepted(); store migration return value (_server_id) in main.
Management API (Bootstrap)
crates/lakekeeper/src/api/management/v1/bootstrap.rs
Simplify bootstrap flow to rely on ServerInfo fields; remove previous variant branching and server_id propagation; adjust public ServerInfo shape to expose non-optional server_id and bootstrapped derived from is_open_for_bootstrap().
SQLX Query Descriptors
.sqlx/query-de8db3....json, .sqlx/query-1c1a32....json, .sqlx/query-302f4e....json, removed .sqlx/query-65ea0d....json
Add/replace compiled SQL descriptors: insert-with-on-conflict query, update-server-row query, and count-server query; remove prior upsert descriptor.
Tests & Setup
crates/lakekeeper/src/tests/mod.rs, crates/lakekeeper/src/tests/*
Run migrate(&pool).await during test setup; replace explicit bootstrap/get_api_context flows with tests::setup(...); adapt imports and tests to new ServerId and bootstrap behavior.
Storage Minor Cleanup & Misc
crates/lakekeeper/src/service/storage/mod.rs, crates/lakekeeper/src/implementations/postgres/tasks.rs, tests like drop_warehouse.rs, soft_deletion.rs
Remove a debug print; minor assertion style changes; tests updated to use setup() and TabularDeleteProfile::default(); other small test adjustments.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  participant Proc as Process
  participant DB as Postgres
  participant Catalog as Catalog Impl
  participant AuthZ as Authorizer
  participant Serve as HTTP Server

  Proc->>DB: migrate(pool)
  DB-->>Proc: ServerId

  Proc->>Catalog: get_server_info(state)
  Catalog-->>Proc: ServerInfo { server_id, open_for_bootstrap, terms_accepted }

  Proc->>AuthZ: init_authorizer(server_id)
  AuthZ-->>Proc: Authorizer

  Proc->>Serve: serve_with_authn(authorizer)
  Serve-->>Proc: listening
Loading
sequenceDiagram
  autonumber
  participant Client as Client
  participant API as Management API
  participant Catalog as Catalog Impl
  participant Tx as Transaction

  Client->>API: POST /bootstrap { accept_terms_of_use }
  API->>Catalog: get_server_info(state)
  Catalog-->>API: ServerInfo { open_for_bootstrap, terms_accepted, server_id }

  alt open_for_bootstrap && accept_terms_of_use
    API->>Tx: begin()
    API->>Catalog: bootstrap(accept_terms_of_use, Tx)
    Catalog-->>API: bool (row updated?)
    API->>Tx: commit()
    API-->>Client: 200 OK
  else not open or not accepted
    API-->>Client: 4xx Error
  end
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Possibly related PRs

Poem

I hopped through types and fields anew,
Replaced the UUID with ServerId true.
Enums to structs, migrations sing,
Bootstrap checks now neat—what spring!
I thump for tests and startup glue. 🐰✨

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The PR title "feat: Set ServerID during migration" succinctly and accurately reflects the main change in the diff—migrations now establish/return a ServerId and related codepaths were adjusted to use it—using conventional commit style without extraneous detail.
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch ct/set-server-id-during-migration

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.

@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 (8)
crates/lakekeeper-bin/src/serve.rs (1)

24-26: Resolve server_id via get_server_info: LGTM. Consider clearer error if migrations weren’t run.

If get_server_info fails because the server row doesn’t exist, surface a hint to run migrations.

Minimal tweak:

+use anyhow::Context;
@@
-    let server_id = <PostgresCatalog as Catalog>::get_server_info(catalog.clone())
-        .await?
-        .server_id();
+    let server_id = <PostgresCatalog as Catalog>::get_server_info(catalog.clone())
+        .await
+        .context("Failed to load server info. Did you run `lakekeeper migrate` first?")?
+        .server_id();
crates/lakekeeper/src/tests/mod.rs (1)

34-34: Return ServerId from test setup to avoid OpenFGA/DB mismatches.

migrate(&pool) returns a canonical ServerId but tests::setup in crates/lakekeeper/src/tests/mod.rs (setup at ~lines 190–207) currently discards it; if a test passes an OpenFGAAuthorizer constructed with a different ServerId you can get subtle authz/DB mismatches. Add a variant that returns the ServerId.

Suggested helper (no breakage to existing tests):

+pub(crate) async fn setup_with_server_id<T: Authorizer>(
+    pool: PgPool,
+    storage_profile: StorageProfile,
+    storage_credential: Option<StorageCredential>,
+    authorizer: T,
+    delete_profile: TabularDeleteProfile,
+    user_id: Option<UserId>,
+    number_of_warehouses: usize,
+) -> (
+    ApiContext<State<T, PostgresCatalog, SecretsState>>,
+    TestWarehouseResponse,
+    crate::service::ServerId,
+) {
+    assert!(number_of_warehouses > 0, "Number of warehouses must be greater than 0");
+    let server_id = migrate(&pool).await.unwrap();
+    let (ctx, resp) = setup(
+        pool,
+        storage_profile,
+        storage_credential,
+        authorizer,
+        delete_profile,
+        user_id,
+        number_of_warehouses,
+    ).await;
+    (ctx, resp, server_id)
+}
crates/lakekeeper/src/implementations/postgres/migrations/mod.rs (1)

87-88: Consider documenting the server ID initialization in migrations

The server ID is now being set/retrieved during the migration process using get_or_set_server_id. This is a significant architectural change that establishes server identity at migration time rather than at bootstrap. Consider adding a comment explaining this critical behavior change.

+    // Ensure server ID exists in the database. This is created during the first migration
+    // and remains stable for the lifetime of the server deployment.
     let server_id = get_or_set_server_id(&mut **transaction).await?;
crates/lakekeeper/src/service/mod.rs (1)

62-90: Consider adding From for uuid::Uuid for smoother conversions.

Prevents unary-deref usage at API boundaries without changing semantics.

Apply:

 impl std::fmt::Display for ServerId {
     fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         write!(f, "{}", self.0)
     }
 }
+
+impl From<ServerId> for uuid::Uuid {
+    fn from(value: ServerId) -> Self {
+        value.0
+    }
+}
crates/lakekeeper/src/api/management/v1/bootstrap.rs (1)

61-64: Docstring contradicts type: server_id cannot be null anymore.

Update comment to reflect non-optional UUID.

Apply:

-    /// ID of the server.
-    /// Returns null if the catalog has not been bootstrapped.
+    /// ID of the server (always present).
crates/lakekeeper/src/service/catalog.rs (2)

215-224: Clarify ServerInfo field docs.

server_id isn’t “at bootstrapping time”; it’s the stable server identity.

Apply:

-    /// Server ID of the catalog at the time of bootstrapping
+    /// Stable server identity for this catalog

229-243: Fix method docs to match semantics.

  • server_id() is always available.
  • is_open_for_bootstrap() wording is reversed.

Apply:

-    /// Returns the server ID if the catalog is bootstrapped.
+    /// Returns the server ID.
...
-    /// Returns true if the catalog is bootstrapped.
+    /// Returns true if the catalog is open for (re)bootstrap.
crates/lakekeeper/src/implementations/postgres/bootstrap.rs (1)

116-133: Tests cover happy path; consider adding idempotent get_or_set_server_id test.

Verifies existing server_id is returned on subsequent calls.

I can add a sqlx test asserting:

  • first migrate() returns an ID,
  • calling get_or_set_server_id again returns the same ID.
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 71528bd and 5f40360.

📒 Files selected for processing (18)
  • crates/lakekeeper-bin/src/serve.rs (1 hunks)
  • crates/lakekeeper/src/api/management/v1/bootstrap.rs (5 hunks)
  • crates/lakekeeper/src/implementations/postgres/bootstrap.rs (4 hunks)
  • crates/lakekeeper/src/implementations/postgres/catalog.rs (1 hunks)
  • crates/lakekeeper/src/implementations/postgres/migrations/mod.rs (2 hunks)
  • crates/lakekeeper/src/serve.rs (1 hunks)
  • crates/lakekeeper/src/service/authz/implementations/allow_all.rs (2 hunks)
  • crates/lakekeeper/src/service/authz/implementations/mod.rs (2 hunks)
  • crates/lakekeeper/src/service/authz/implementations/openfga/client.rs (3 hunks)
  • crates/lakekeeper/src/service/authz/implementations/openfga/health.rs (2 hunks)
  • crates/lakekeeper/src/service/authz/implementations/openfga/migration.rs (2 hunks)
  • crates/lakekeeper/src/service/authz/implementations/openfga/mod.rs (4 hunks)
  • crates/lakekeeper/src/service/authz/mod.rs (4 hunks)
  • crates/lakekeeper/src/service/catalog.rs (3 hunks)
  • crates/lakekeeper/src/service/mod.rs (1 hunks)
  • crates/lakekeeper/src/service/storage/mod.rs (0 hunks)
  • crates/lakekeeper/src/tests/drop_warehouse.rs (1 hunks)
  • crates/lakekeeper/src/tests/mod.rs (2 hunks)
💤 Files with no reviewable changes (1)
  • crates/lakekeeper/src/service/storage/mod.rs
🧰 Additional context used
🧠 Learnings (1)
📚 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/health.rs
  • crates/lakekeeper/src/service/authz/implementations/openfga/migration.rs
  • crates/lakekeeper/src/service/authz/mod.rs
  • crates/lakekeeper/src/service/authz/implementations/openfga/client.rs
  • crates/lakekeeper/src/service/authz/implementations/mod.rs
  • crates/lakekeeper/src/service/authz/implementations/allow_all.rs
  • crates/lakekeeper/src/service/authz/implementations/openfga/mod.rs
  • crates/lakekeeper/src/service/mod.rs
🧬 Code graph analysis (17)
crates/lakekeeper/src/service/authz/implementations/openfga/health.rs (1)
crates/lakekeeper/src/service/mod.rs (7)
  • new_random (67-69)
  • new_random (124-126)
  • new_random (131-133)
  • new_random (138-140)
  • new_random (145-147)
  • new_random (208-210)
  • new_random (275-277)
crates/lakekeeper/src/implementations/postgres/catalog.rs (3)
crates/lakekeeper/src/api/management/v1/bootstrap.rs (1)
  • bootstrap (81-179)
crates/lakekeeper/src/implementations/postgres/bootstrap.rs (1)
  • bootstrap (76-105)
crates/lakekeeper/src/service/catalog.rs (3)
  • bootstrap (313-316)
  • terms_accepted (241-243)
  • transaction (85-85)
crates/lakekeeper/src/service/authz/implementations/openfga/migration.rs (1)
crates/lakekeeper/src/service/mod.rs (7)
  • new_random (67-69)
  • new_random (124-126)
  • new_random (131-133)
  • new_random (138-140)
  • new_random (145-147)
  • new_random (208-210)
  • new_random (275-277)
crates/lakekeeper/src/implementations/postgres/migrations/mod.rs (2)
crates/lakekeeper/src/implementations/postgres/bootstrap.rs (2)
  • bootstrap (76-105)
  • get_or_set_server_id (8-31)
crates/lakekeeper/src/service/mod.rs (1)
  • server_id (57-59)
crates/lakekeeper/src/serve.rs (2)
crates/lakekeeper/src/api/management/v1/bootstrap.rs (1)
  • server_info (181-222)
crates/lakekeeper/src/service/catalog.rs (1)
  • server_id (229-231)
crates/lakekeeper/src/service/authz/mod.rs (4)
crates/lakekeeper/src/service/authz/implementations/allow_all.rs (1)
  • server_id (51-53)
crates/lakekeeper/src/service/authz/implementations/openfga/mod.rs (2)
  • server_id (118-120)
  • new (104-112)
crates/lakekeeper/src/service/catalog.rs (1)
  • server_id (229-231)
crates/lakekeeper/src/service/mod.rs (10)
  • server_id (57-59)
  • new (203-205)
  • new (270-272)
  • new_random (67-69)
  • new_random (124-126)
  • new_random (131-133)
  • new_random (138-140)
  • new_random (145-147)
  • new_random (208-210)
  • new_random (275-277)
crates/lakekeeper/src/tests/mod.rs (1)
crates/lakekeeper/src/implementations/postgres/migrations/mod.rs (1)
  • migrate (27-96)
crates/lakekeeper/src/service/authz/implementations/openfga/client.rs (6)
crates/lakekeeper/src/service/authz/implementations/openfga/migration.rs (1)
  • get_active_auth_model_id (42-61)
crates/lakekeeper/src/service/authz/implementations/allow_all.rs (1)
  • server_id (51-53)
crates/lakekeeper/src/service/authz/implementations/openfga/mod.rs (1)
  • server_id (118-120)
crates/lakekeeper/src/service/authz/mod.rs (2)
  • server_id (201-201)
  • server_id (1054-1056)
crates/lakekeeper/src/service/catalog.rs (1)
  • server_id (229-231)
crates/lakekeeper/src/service/mod.rs (1)
  • server_id (57-59)
crates/lakekeeper-bin/src/serve.rs (3)
crates/lakekeeper/src/service/authz/mod.rs (2)
  • server_id (201-201)
  • server_id (1054-1056)
crates/lakekeeper/src/service/catalog.rs (2)
  • server_id (229-231)
  • get_server_info (308-308)
crates/lakekeeper/src/implementations/postgres/catalog.rs (1)
  • get_server_info (85-89)
crates/lakekeeper/src/tests/drop_warehouse.rs (2)
crates/lakekeeper/src/tests/mod.rs (4)
  • random_request_metadata (298-300)
  • spawn_build_in_queues (302-319)
  • memory_io_profile (50-52)
  • setup (190-267)
crates/lakekeeper/src/catalog/mod.rs (1)
  • setup (326-347)
crates/lakekeeper/src/service/authz/implementations/mod.rs (5)
crates/lakekeeper/src/service/authz/implementations/allow_all.rs (1)
  • server_id (51-53)
crates/lakekeeper/src/service/authz/implementations/openfga/mod.rs (1)
  • server_id (118-120)
crates/lakekeeper/src/service/authz/mod.rs (2)
  • server_id (201-201)
  • server_id (1054-1056)
crates/lakekeeper/src/service/catalog.rs (1)
  • server_id (229-231)
crates/lakekeeper/src/service/mod.rs (1)
  • server_id (57-59)
crates/lakekeeper/src/service/authz/implementations/allow_all.rs (3)
crates/lakekeeper/src/service/mod.rs (8)
  • new_random (67-69)
  • new_random (124-126)
  • new_random (131-133)
  • new_random (138-140)
  • new_random (145-147)
  • new_random (208-210)
  • new_random (275-277)
  • server_id (57-59)
crates/lakekeeper/src/service/authz/implementations/openfga/mod.rs (1)
  • server_id (118-120)
crates/lakekeeper/src/service/authz/mod.rs (2)
  • server_id (201-201)
  • server_id (1054-1056)
crates/lakekeeper/src/service/authz/implementations/openfga/mod.rs (2)
crates/lakekeeper/src/service/authz/mod.rs (3)
  • new (1001-1007)
  • server_id (201-201)
  • server_id (1054-1056)
crates/lakekeeper/src/service/mod.rs (10)
  • new (203-205)
  • new (270-272)
  • server_id (57-59)
  • new_random (67-69)
  • new_random (124-126)
  • new_random (131-133)
  • new_random (138-140)
  • new_random (145-147)
  • new_random (208-210)
  • new_random (275-277)
crates/lakekeeper/src/api/management/v1/bootstrap.rs (3)
crates/lakekeeper/src/implementations/postgres/bootstrap.rs (1)
  • bootstrap (76-105)
crates/lakekeeper/src/implementations/postgres/catalog.rs (1)
  • bootstrap (92-97)
crates/lakekeeper/src/service/catalog.rs (1)
  • bootstrap (313-316)
crates/lakekeeper/src/implementations/postgres/bootstrap.rs (5)
crates/lakekeeper/src/service/catalog.rs (4)
  • server_id (229-231)
  • bootstrap (313-316)
  • terms_accepted (241-243)
  • is_open_for_bootstrap (235-237)
crates/lakekeeper/src/service/mod.rs (18)
  • server_id (57-59)
  • new_random (67-69)
  • new_random (124-126)
  • new_random (131-133)
  • new_random (138-140)
  • new_random (145-147)
  • new_random (208-210)
  • new_random (275-277)
  • from (81-83)
  • from (99-101)
  • from (196-198)
  • from (310-312)
  • from (374-376)
  • from (380-382)
  • from (400-402)
  • from (421-423)
  • from (478-480)
  • from (505-507)
crates/lakekeeper/src/api/management/v1/bootstrap.rs (1)
  • bootstrap (81-179)
crates/lakekeeper/src/implementations/postgres/catalog.rs (1)
  • bootstrap (92-97)
crates/lakekeeper/src/implementations/postgres/migrations/mod.rs (1)
  • migrate (27-96)
crates/lakekeeper/src/service/catalog.rs (6)
crates/lakekeeper/src/service/authz/implementations/allow_all.rs (1)
  • server_id (51-53)
crates/lakekeeper/src/service/authz/implementations/openfga/mod.rs (1)
  • server_id (118-120)
crates/lakekeeper/src/service/authz/mod.rs (2)
  • server_id (201-201)
  • server_id (1054-1056)
crates/lakekeeper/src/service/mod.rs (1)
  • server_id (57-59)
crates/lakekeeper/src/implementations/postgres/catalog.rs (1)
  • get_server_info (85-89)
crates/lakekeeper/src/api/management/mod.rs (1)
  • get_server_info (195-202)
crates/lakekeeper/src/service/mod.rs (4)
crates/lakekeeper/src/service/authz/implementations/allow_all.rs (1)
  • server_id (51-53)
crates/lakekeeper/src/service/authz/implementations/openfga/mod.rs (1)
  • server_id (118-120)
crates/lakekeeper/src/service/authz/mod.rs (2)
  • server_id (201-201)
  • server_id (1054-1056)
crates/lakekeeper/src/service/catalog.rs (1)
  • server_id (229-231)
🪛 GitHub Check: check-format
crates/lakekeeper/src/service/authz/implementations/mod.rs

[warning] 1-1:
Diff in /home/runner/work/lakekeeper/lakekeeper/crates/lakekeeper/src/service/authz/implementations/mod.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). (8)
  • GitHub Check: docker / docker
  • GitHub Check: docker / docker
  • GitHub Check: docker / docker
  • GitHub Check: docker / docker
  • GitHub Check: test
  • GitHub Check: check-generated-openapi-matches
  • GitHub Check: clippy
  • GitHub Check: sqlx-check
🔇 Additional comments (18)
crates/lakekeeper/src/service/authz/implementations/openfga/migration.rs (1)

101-101: Tests updated to ServerId: LGTM.

Importing ServerId and using ServerId::new_random() in the helper keeps tests consistent with the new type.

Also applies to: 115-116

crates/lakekeeper/src/implementations/postgres/catalog.rs (1)

96-97: Bootstrap signature update: LGTM.

Removing the server_id parameter and delegating to the new bootstrap is consistent with the migration‑sets‑server‑id model.

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

16-18: AllowAllAuthorizer switched to ServerId: LGTM.

Type change and server_id() accessor align with the trait. Defaulting to ServerId::new_random() is fine for tests.

Also applies to: 23-24, 30-31, 51-53

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

1-1: Signature change to ServerId: LGTM — run formatter.
Attempted to run cargo fmt --all in the verification sandbox but it failed with: error: Unable to proceed. Could not locate working directory.: no /proc/self/exe available. Is /proc mounted? Run cargo fmt --all locally and push the formatting changes to satisfy the check-format warning.

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

44-46: ServerId plumbing OK — no nil‑UUID assertions found

new_authorizer_from_config/new_authorizer (crates/lakekeeper/src/service/authz/implementations/openfga/client.rs) forward ServerId into OpenFGAAuthorizer::new (crates/lakekeeper/src/service/authz/implementations/openfga/mod.rs); OpenFGAAuthorizer::new only stores/formats the server_id (openfga_server) and there are no panic!/assert!/expect!/is_nil checks on server_id in the openfga implementation.

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

493-507: LGTM! Clean refactor to boolean-based checks

The simplified validate_server_info function using is_open_for_bootstrap() and terms_accepted() methods is much clearer than the previous pattern-matching approach. The logging is informative and the function correctly propagates the server ID.

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

61-72: LGTM! Type safety improvement with ServerId

The function signatures have been correctly updated to use ServerId instead of uuid::Uuid, improving type safety and making the server identity handling more explicit.

crates/lakekeeper/src/tests/drop_warehouse.rs (1)

30-39: Test setup correctly adapted to new architecture

The test now uses the new setup utility function which handles migrations and bootstrap internally, replacing the explicit bootstrap call. This aligns with the architectural change where server ID is established during migration rather than bootstrap.

crates/lakekeeper/src/service/authz/mod.rs (2)

997-998: LGTM! Test mock correctly updated for ServerId

The HidingAuthorizer test implementation has been properly updated to use ServerId::new_random() instead of uuid::Uuid::new_v4(), maintaining consistency with the production code changes.

Also applies to: 1005-1006, 1054-1056


200-201: Verify all Authorizer implementations updated for ServerId

Authorizer::server_id() now returns ServerId (was uuid::Uuid) — breaking change. Confirm every impl of Authorizer returns ServerId and update all callers. Location: crates/lakekeeper/src/service/authz/mod.rs (≈ lines 200–201). Automated sandbox search failed; I couldn't confirm implementations — run a local search for "impl .*Authorizer for" and "fn server_id" and fix any mismatches.

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

98-112: ServerId adoption in OpenFGA authorizer looks correct.

Constructor and trait method now flow ServerId consistently; preformatted openfga_server remains stable since ServerId: Display -> UUID.

Please double‑check that no call sites still assume/require a nil UUID during the transition (see prior compatibility note). If you want, I can scan the repo for such assumptions.

Also applies to: 118-121


1090-1096: Test updated to use ServerId::new_random().

Good parity with new constructor.

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

56-60: State::server_id forwarding change is fine.

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

124-125: Catalog::bootstrap signature change handled correctly.

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

307-309: Trait change to get_server_info() returning ServerInfo is good.

crates/lakekeeper/src/implementations/postgres/bootstrap.rs (3)

62-67: ServerInfo construction aligns with new type (ServerId).


68-73: Good error type and message when server row is missing.


82-100: Bootstrap UPDATE is correct and idempotent.

Atomic gate via WHERE open_for_bootstrap = true; proper 409‑style signaling via boolean return.

coderabbitai[bot]
coderabbitai Bot previously approved these changes Sep 19, 2025
coderabbitai[bot]
coderabbitai Bot previously approved these changes Sep 19, 2025
@c-thiel

c-thiel commented Sep 21, 2025

Copy link
Copy Markdown
Member Author

@CodeRabbit review

@coderabbitai

coderabbitai Bot commented Sep 21, 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.

@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

🧹 Nitpick comments (8)
crates/lakekeeper/src/implementations/postgres/tasks.rs (1)

1320-1324: Prefer is_none() over comparing Option to None

More idiomatic and a bit clearer; include a short message to aid failures.

-        assert_eq!(
-            pick_task(&pool, &tq_name, DEFAULT_MAX_TIME_SINCE_LAST_HEARTBEAT)
-                .await
-                .unwrap(),
-            None
-        );
+        assert!(
+            pick_task(&pool, &tq_name, DEFAULT_MAX_TIME_SINCE_LAST_HEARTBEAT)
+                .await
+                .unwrap()
+                .is_none(),
+            "Task should not be pickable before scheduled_for"
+        );
crates/lakekeeper-bin/src/main.rs (1)

152-153: Avoid underscore-binding for must_use values; either discard explicitly or log the ServerId

let _server_id = …?; can trigger clippy::let_underscore_must_use if ServerId is #[must_use]. If you intend to ignore it, discard explicitly; otherwise, capture and log it.

Minimal fix (intentional discard):

-            let _server_id =
-                lakekeeper::implementations::postgres::migrations::migrate(&write_pool).await?;
+            let _ =
+                lakekeeper::implementations::postgres::migrations::migrate(&write_pool).await?;

Optional (preferred): log the new ServerId for observability and debugging:

let server_id = lakekeeper::implementations::postgres::migrations::migrate(&write_pool).await?;
tracing::info!(server_id=?server_id, "Database migration complete.");

If you adopt logging, consider removing the separate println to avoid duplicate messages.

docs/docs/api/management-open-api.yaml (1)

4498-4503: Description contradicts schema (cannot be null). Fix text or schema.

Current schema: type: string, in required, but description says it may be null. If server-id is always present now, update the description as below.

Apply:

         server-id:
           type: string
           format: uuid
-          description: |-
-            ID of the server.
-            Returns null if the catalog has not been bootstrapped.
+          description: ID of the server. Always present.

If null is still possible, instead make it explicitly nullable and consider removing it from required:

-        server-id:
-          type: string
-          format: uuid
+        server-id:
+          type:
+            - string
+            - 'null'
+          format: uuid
.sqlx/query-de8db3913d1926ff41275b2611d6be2b0a67e204d9c37d17ebd3b0bf8bd29cb1.json (1)

3-3: Constrain fallback SELECT to the sentinel row (avoid wrong row on edge cases).

If the table ever contains more than one row (e.g., from a past bug or manual fix), SELECT server_id FROM server may return an arbitrary row. Filter by the sentinel to guarantee correctness.

Apply this minimal change to the query text:

-        SELECT server_id as "server_id!" FROM server
+        SELECT server_id as "server_id!" FROM server WHERE single_row
.sqlx/query-1c1a32de33e3f54464a1107f7d4d4b8cbd99dd69aae1c740561c3cbbea2eaa19.json (2)

3-3: Clarify terms_accepted semantics.

If this path only finalizes bootstrap, consider setting terms_accepted = true unconditionally here (or assert the input is true) to avoid accidental downgrades via a falsey param.


3-3: Optional: schema-qualify table name.

If search_path can vary, prefer UPDATE <schema>.server ... for determinism.

crates/lakekeeper/src/tests/soft_deletion.rs (2)

40-51: Make soft-delete intent explicit in test setup.

You configure TabularDeleteProfile::Soft{...}, but later delete with purge_requested: true. If the system overrides purge under a soft profile, this is fine; otherwise it’s confusing. Prefer purge_requested: false (or add a comment stating the override behavior is under test).

Apply:

-                TabularDeleteProfile::Soft {
-                    expiration_seconds: chrono::Duration::seconds(300),
-                },
+                TabularDeleteProfile::Soft {
+                    expiration_seconds: chrono::Duration::seconds(300),
+                },

And below:

-                DropParams {
-                    purge_requested: true,
-                    force: false,
-                },
+                DropParams {
+                    purge_requested: false,
+                    force: false,
+                },

162-176: Reduce flakiness: poll for scheduled tasks.

If task enqueueing is async, immediate assertion of tasks.len() == 10 can flake. Add a short retry/poll loop with timeout.

Example helper:

async fn wait_for_scheduled_tasks(
    api: &ApiServer,
    warehouse_id: WarehouseId,
    api_ctx: ApiContext,
    expected: usize,
    timeout: std::time::Duration,
) {
    use tokio::time::{sleep, Instant};
    let start = Instant::now();
    loop {
        let tasks = ApiServer::list_tasks(
            warehouse_id,
            ListTasksRequest {
                status: Some(vec![TaskStatus::Scheduled]),
                queue_name: Some(vec![EXPIRATION_QUEUE_NAME.clone()]),
                ..Default::default()
            },
            api_ctx.clone(),
            random_request_metadata(),
        ).await.unwrap().tasks;
        if tasks.len() == expected { break; }
        if start.elapsed() > timeout {
            panic!("expected {expected} scheduled tasks, got {}", tasks.len());
        }
        sleep(std::time::Duration::from_millis(50)).await;
    }
}

Then replace the direct assertion with a call to wait_for_scheduled_tasks(..., 10, Duration::from_secs(5)).await;.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5f40360 and e73ef8d.

📒 Files selected for processing (13)
  • .sqlx/query-1c1a32de33e3f54464a1107f7d4d4b8cbd99dd69aae1c740561c3cbbea2eaa19.json (1 hunks)
  • .sqlx/query-302f4eddf6068e4b36a6e2cf88724fc05463006008722a654a54ca59f6fafeab.json (1 hunks)
  • .sqlx/query-65ea0db4aef662e0423eb85da840d20f62bf6b468a8c30de14bf980257d07b9f.json (0 hunks)
  • .sqlx/query-de8db3913d1926ff41275b2611d6be2b0a67e204d9c37d17ebd3b0bf8bd29cb1.json (1 hunks)
  • crates/lakekeeper-bin/src/main.rs (1 hunks)
  • crates/lakekeeper/src/api/management/v1/bootstrap.rs (5 hunks)
  • crates/lakekeeper/src/implementations/postgres/bootstrap.rs (4 hunks)
  • crates/lakekeeper/src/implementations/postgres/tasks.rs (1 hunks)
  • crates/lakekeeper/src/serve.rs (1 hunks)
  • crates/lakekeeper/src/service/authz/implementations/mod.rs (2 hunks)
  • crates/lakekeeper/src/service/authz/implementations/openfga/health.rs (2 hunks)
  • crates/lakekeeper/src/tests/soft_deletion.rs (2 hunks)
  • docs/docs/api/management-open-api.yaml (2 hunks)
💤 Files with no reviewable changes (1)
  • .sqlx/query-65ea0db4aef662e0423eb85da840d20f62bf6b468a8c30de14bf980257d07b9f.json
✅ Files skipped from review due to trivial changes (1)
  • .sqlx/query-302f4eddf6068e4b36a6e2cf88724fc05463006008722a654a54ca59f6fafeab.json
🚧 Files skipped from review as they are similar to previous changes (4)
  • crates/lakekeeper/src/service/authz/implementations/mod.rs
  • crates/lakekeeper/src/service/authz/implementations/openfga/health.rs
  • crates/lakekeeper/src/implementations/postgres/bootstrap.rs
  • crates/lakekeeper/src/serve.rs
🧰 Additional context used
🧠 Learnings (2)
📚 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/implementations/postgres/tasks.rs
  • crates/lakekeeper/src/api/management/v1/bootstrap.rs
📚 Learning: 2025-08-30T10:35:58.939Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1316
File: crates/lakekeeper/src/implementations/postgres/tasks.rs:169-173
Timestamp: 2025-08-30T10:35:58.939Z
Learning: In the task picking SQL query in crates/lakekeeper/src/implementations/postgres/tasks.rs, the WHERE clause intentionally allows both Running and ShouldStop tasks to be re-picked if their last heartbeat is older than max_time_since_last_heartbeat. This is a reconciliation mechanism to handle cases where workers are killed or crash, preventing tasks from being stuck indefinitely in Running or ShouldStop states.

Applied to files:

  • crates/lakekeeper/src/implementations/postgres/tasks.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). (10)
  • GitHub Check: docker / docker
  • GitHub Check: test
  • GitHub Check: clippy
  • GitHub Check: check-generated-openapi-matches
  • GitHub Check: sqlx-check
  • GitHub Check: openfga
  • GitHub Check: docker / docker
  • GitHub Check: docker / docker
  • GitHub Check: docker / docker
  • GitHub Check: security_audit
🔇 Additional comments (13)
docs/docs/api/management-open-api.yaml (1)

4461-4468: Incorrect — OpenAPI 'server-id required' matches current implementation

  • The management API ServerInfo (crates/lakekeeper/src/api/management/v1/bootstrap.rs) defines pub server_id: uuid::Uuid (non-Option) and is populated as *server_data.server_id().
  • get_or_set_server_id (crates/lakekeeper/src/implementations/postgres/bootstrap.rs) ensures a server_id is created/returned during migrations/bootstrap, so a UUID is emitted even when bootstrapped == false.
  • Action: no API compatibility change required; update/remove the stale doc comment "Returns null if the catalog has not been bootstrapped." in ServerInfo to avoid confusion.

Likely an incorrect or invalid review comment.

.sqlx/query-de8db3913d1926ff41275b2611d6be2b0a67e204d9c37d17ebd3b0bf8bd29cb1.json (4)

12-16: Param typing LGTM.

Single UUID parameter matches the query shape.


17-19: "server_id!" non-null assertion vs nullable descriptor.

server_id! tells SQLx the column is non-null, while nullable: [null] reflects uncertainty from the UNION. That’s fine as long as the query always produces a row. If there’s any path with zero rows (e.g., table empty and insert suppressed), fetch_one will fail. Ensure callers handle that expectation.


21-21: Confirm .sqlx artifacts are regenerated in CI for your DATABASE_URL.

Hash looks consistent. Ensure sqlx prepare (or equivalent check) runs in CI to keep descriptors in sync across environments.


3-3: Confirmed — ON CONFLICT target exists (single_row is PRIMARY KEY)

crates/lakekeeper/migrations/20241011203612_server.sql defines single_row bool PRIMARY KEY DEFAULT true, so ON CONFLICT (single_row) DO NOTHING is valid.

crates/lakekeeper/src/api/management/v1/bootstrap.rs (5)

61-61: LGTM! Server ID field type updated correctly.

The field type change from Option<uuid::Uuid> to uuid::Uuid aligns with the PR's migration to concrete server IDs, ensuring ServerInfo always provides a valid server ID.


112-112: LGTM! Bootstrap state logic simplified.

The direct call to is_open_for_bootstrap() on ServerInfo is cleaner than the previous enum-based approach and correctly determines bootstrap availability.


124-124: LGTM! Bootstrap signature updated correctly.

The removal of the server_id parameter from the bootstrap call aligns with the PR's changes where server ID is now handled internally during migration.


205-205: Bootstrap flag logic has been corrected.

The negation of is_open_for_bootstrap() correctly sets bootstrapped: true when the server is not open for bootstrap, which aligns with the expected semantics.


206-206: LGTM! Server ID dereferencing correctly implemented.

The dereferencing of server_data.server_id() with *server_data.server_id() correctly extracts the UUID value from the ServerId wrapper type.

crates/lakekeeper/src/tests/soft_deletion.rs (2)

21-22: LGTM on updated imports.

The added items align with the new setup-based bootstrap and soft-delete flow.


32-33: LGTM on random_request_metadata import.

Matches the new test helpers usage.

.sqlx/query-1c1a32de33e3f54464a1107f7d4d4b8cbd99dd69aae1c740561c3cbbea2eaa19.json (1)

3-3: Resolved — schema enforces singleton row and bootstrap logic handles the no-row case.

Migration crates/lakekeeper/migrations/20241011203612_server.sql defines single_row bool PRIMARY KEY DEFAULT true with CHECK(single_row); get_or_set_server_id uses ON CONFLICT(single_row); the bootstrap UPDATE is consumed with fetch_one and maps sqlx::Error::RowNotFound -> false in crates/lakekeeper/src/implementations/postgres/bootstrap.rs (tests cover the behavior).

@github-actions

Copy link
Copy Markdown
Contributor

✅ PR Title Formatted Correctly

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

@c-thiel
c-thiel merged commit ce3ad5b into main Sep 21, 2025
@c-thiel
c-thiel deleted the ct/set-server-id-during-migration branch September 21, 2025 12:01
@c-thiel c-thiel mentioned this pull request Sep 21, 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]>
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.

2 participants