Skip to content

feat(warehouse): owners of a managed warehouse can change its soft-deletion settings and format-version policy - #2279

Merged
c-thiel merged 1 commit into
mainfrom
ct/managed-warehouse-owner-settings
Nov 12, 2026
Merged

c-thiel merged 1 commit into
mainfrom
ct/managed-warehouse-owner-settings

Conversation

@c-thiel

@c-thiel c-thiel commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

In a warehouse managed by the instance (managed-by: instance-admin), the owners can now change the soft-deletion settings and the format-version policy with their usual grants. Before, only instance admins could.

Only instance admins can still change the storage profile and credential, rename, activate, deactivate, protect or delete the warehouse, and set managed-by.

Docs: new section "Managed Warehouses" in the instance-admins page.

Release notes

Owners of a warehouse managed by the instance can now change its soft-deletion settings and format-version policy. Tools that create managed warehouses should set these two settings only when they create the warehouse, so that they do not overwrite later changes by the owners. See Managed Warehouses.

Summary by CodeRabbit

  • Access Updates
    • On managed warehouses, users with the usual grants can update delete profiles and format-version policies. Instance-admin-only controls, including renaming, storage profiles, credentials, activation, and protection, remain restricted.
  • Documentation
    • Clarified which managed-warehouse settings and resources are governed by instance-admin controls versus usual grants, including soft-deletion settings, format versions, task queues, and warehouse resources.
    • Added guidance to set soft-deletion settings and format versions when creating a warehouse.

@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The authorization classification now treats soft-deletion and format-version changes as non-spec mutations. Integration tests and documentation reflect that authorized non-admins can change these settings on managed warehouses.

Changes

Managed warehouse settings

Layer / File(s) Summary
Update mutation classification
crates/lakekeeper/src/service/authz/mod.rs
ModifySoftDeletion and SetFormatVersionPolicy are no longer classified as spec mutations. The classification test now asserts that SetProtection remains a spec mutation.
Verify and document setting access
crates/lakekeeper-integration-tests/tests/warehouse_ops.rs, crates/lakekeeper/src/service/catalog_store/warehouse.rs, docs/docs/api/management-open-api.yaml, docs/docs/concepts.md, docs/docs/instance-admins.md
Integration tests verify that an authorized non-admin can update soft-deletion and format-version settings on a managed warehouse. The code and API documentation describe these settings as governed by usual grants. Instance-admin documentation lists changes restricted to instance admins and settings and resources that remain grant-based.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Possibly related PRs

Suggested reviewers: brgr-s

Merge Risk: Minimal · up to c29ec

Owners of instance-managed warehouses can now change soft-deletion settings and the format-version policy using their normal grants. Instance-admin-only operations stay restricted. No actionable merge risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: owners of a managed warehouse can now change soft-deletion settings and the format-version policy. The raw summary and PR objectives confirm this is the core behavior …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: owners of a managed warehouse can now change soft-deletion settings and the format-version policy. The raw summary and PR objectives confirm this is the core behavior change. The title is long (110 characters) but it remains specific and accurate.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit checks the settings with care,
Soft deletion and versions now share the grant.
The managed warehouse keeps its status,
While authorized changes pass.
The test records each requested value,
And the rabbit hops away.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cc32b23a-572a-4cc0-8847-faa289e76c22
Commits

Reviewing files that changed from the base of the PR and between c18bc33 and c29ec85.

Files selected for processing: 6

  • crates/lakekeeper-integration-tests/tests/warehouse_ops.rs
  • crates/lakekeeper/src/service/authz/mod.rs
  • crates/lakekeeper/src/service/catalog_store/warehouse.rs
  • docs/docs/api/management-open-api.yaml
  • docs/docs/concepts.md
  • docs/docs/instance-admins.md
Files with no reviewable changes: 1

  • docs/docs/concepts.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

@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 c759d66 into main Nov 12, 2026
73 checks passed
@c-thiel
c-thiel deleted the ct/managed-warehouse-owner-settings branch November 12, 2026 17:01
c-thiel added a commit that referenced this pull request Nov 14, 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