Skip to content

Add Lakekeeper integration tests for S3 remote signing - #4598

Open
Fokko wants to merge 1 commit into
apache:mainfrom
Fokko:fd-lakekeeper-remote-signing
Open

Fokko wants to merge 1 commit into
apache:mainfrom
Fokko:fd-lakekeeper-remote-signing

Conversation

@Fokko

@Fokko Fokko commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Rationale for this change

S3 remote signing (S3V4RestSigner) was only tested against a mocked signer. Several recent fixes (#4039, #4134, #2846) went in without a real signer to check them against.

This made @Fokko very nervous when reviewing and merging remote signing PRs beceause mocks were hard to verify.

This adds Lakekeeper, an open-source REST catalog with a full /sign implementation, to the integration stack. The tests use a catalog with no S3 credentials, so every object store request has to be signed by Lakekeeper.

  • dev/docker-compose-integration.yml: Lakekeeper v0.15.1 (port 8182) with Postgres and a migrate step. Lakekeeper returns its own S3 endpoint to the client, so it shares the object store's network namespace and http://localhost:9000 works both from the host and from Lakekeeper.
  • dev/provision.py: bootstraps Lakekeeper and creates a warehouse with remote signing enabled and credential vending disabled.
  • tests/integration/test_rest_remote_signing.py:
    • the server config selects FsspecFileIO + S3V4RestSigner
    • append to a partitioned table (parallel writes) and scan back
    • delete through DeleteObjects
    • signing a location outside the table is rejected

Follow-ups: run the generic catalog suite against Lakekeeper, and enable OIDC to cover passing the auth token to the signer.

Are these changes tested?

Yes. The full integration suite passes locally. With a no-op signer, the append fails with Access Denied, so the tests catch broken signing.

Are there any user-facing changes?

No.

This pull request and its description were written by Isaac.

S3 remote signing was only tested against a mocked signer. Add Lakekeeper
to the integration stack and test writes, reads, and deletes through its
signer with no S3 credentials on the client, plus that it refuses to sign
locations outside the table.

Co-authored-by: Isaac <no-reply@databricks.com>

This branch has not been deployed

No deployments
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