Skip to content

feat: AWS / S3 Managed Identities - #965

Merged
c-thiel merged 11 commits into
mainfrom
ct/s3-managed-identities
Apr 3, 2025
Merged

c-thiel merged 11 commits into
mainfrom
ct/s3-managed-identities

Conversation

@c-thiel

@c-thiel c-thiel commented Apr 3, 2025

Copy link
Copy Markdown
Member

No description provided.

@c-thiel
c-thiel requested review from Copilot and twuebi April 3, 2025 10:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request introduces AWS/S3 managed identities support for Lakekeeper, enabling the system to load S3 credentials from the environment and leverage external IDs. Key changes include updates to documentation and configuration for system identities, modifications to asynchronous calls in file I/O functions, and dependency/workflow improvements to support AWS system identity testing.

Reviewed Changes

Copilot reviewed 26 out of 26 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/README.md Added docker-compose command to run tests using S3 system identity overlays.
docs/docs/storage.md Expanded documentation to cover direct file-access and managed identities with AWS, including external ID details.
docs/docs/configuration.md Updated configuration documentation to include new S3 storage credential settings.
crates/iceberg-catalog/src/* Converted file I/O functions to async-await and updated error handling and credentials mapping across multiple modules.
Cargo.toml and GitHub workflows Updated dependency versions and added AWS system identity test cases.

Comment thread docs/docs/storage.md Resolved
@c-thiel
c-thiel requested a review from Copilot April 3, 2025 13:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces AWS/S3 managed identities by adding new configuration options that enable the use of system identities for S3 storage across both runtime and tests. Key changes include:

  • Adding new storage configuration variables and documentation updates.
  • Refactoring asynchronous file I/O calls to accommodate async functions.
  • Updating credential structures and error handling related to AWS/S3 credentials.

Reviewed Changes

Copilot reviewed 27 out of 28 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
docs/docs/configuration.md Adds a new "Storage" section for S3 system identity options and documentation.
crates/iceberg-catalog/src/tests/mod.rs Updates tests to include the new external_id field in S3 credentials.
crates/iceberg-catalog/src/service/task_queue/tabular_purge_queue.rs Adds an await call to the file_io function.
crates/iceberg-catalog/src/service/storage/mod.rs Refactors file_io to be async and updates usage with await.
crates/iceberg-catalog/src/service/storage/error.rs Adjusts error conversion for credentials-related errors.
crates/iceberg-catalog/src/service/storage/az.rs Changes error message entity names for consistency.
crates/iceberg-catalog/src/implementations/postgres/secrets.rs Updates tests with the new external_id field.
crates/iceberg-catalog/src/implementations/kv2.rs Adds external_id to tests.
crates/iceberg-catalog/src/config.rs Introduces new storage-related config options and tests for system identities.
crates/iceberg-catalog/src/catalog/views/create.rs Updates file_io calls to use async/await.
crates/iceberg-catalog/src/catalog/views/commit.rs Updates file_io calls to use async/await.
crates/iceberg-catalog/src/catalog/tables.rs Updates file_io calls to use async/await.
crates/iceberg-catalog/src/catalog/s3_signer/sign.rs Refactors signing to obtain credentials asynchronously.
crates/iceberg-catalog/src/catalog/mod.rs Updates tests with the new external_id field.
crates/iceberg-catalog/src/catalog/io.rs Enhances error messages in IO functions to include error details.
crates/iceberg-catalog/Cargo.toml Adds a new AWS Smithy HTTP client dependency.
Cargo.toml Updates versions for AWS SDK dependencies.
.github/workflows/integration_test_workflow.yml Adds a new integration test overlay configuration for AWS system identity.
.github/workflows/integration_test_matrix.yml Adds new test matrix entries for AWS system identity scenarios.
Files not reviewed (1)
  • docs/docs/api/management-open-api.yaml: Language not supported

Comment thread docs/docs/configuration.md Resolved
@c-thiel c-thiel added this to the Release 0.8.0 milestone Apr 3, 2025
@c-thiel
c-thiel enabled auto-merge (squash) April 3, 2025 20:23
@c-thiel
c-thiel merged commit 7490047 into main Apr 3, 2025
@c-thiel
c-thiel deleted the ct/s3-managed-identities branch April 3, 2025 20:48
@c-thiel c-thiel mentioned this pull request Apr 3, 2025
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.

3 participants