Repository navigation
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
/signimplementation, 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 andhttp://localhost:9000works 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:FsspecFileIO+S3V4RestSignerDeleteObjectsFollow-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.