Skip to content

Destination Iceberg V2: support aws instance profile auth - #50876

Merged
Edward Gao (edgao) merged 9 commits into
masterfrom
edgao/iceberg_better_creds_handling
Jan 10, 2025
Merged

Edward Gao (edgao) merged 9 commits into
masterfrom
edgao/iceberg_better_creds_handling

Conversation

@edgao

@edgao Edward Gao (edgao) commented Jan 3, 2025 •

Copy link
Copy Markdown
Contributor

this seems to work:

  • iceberg defaults to the default creds provider chain
  • so if we stop throwing on null access key/secret, and just don't set those values
  • then it will fallback to instance creds if needed

also, updates the CDK to log the throwable during a check failure. afaict platform doesn't expose the trace message, and I don't know if we actually want to dump the full stacktrace into the check status message.

Francis Genet (@frifriSF59) lmk if you already have something like this as part of https://github.com/airbytehq/airbyte-internal-issues/issues/11082 though

(take from beta channel https://airbytehq-team.slack.com/archives/C087GAG7X25/p1735921337428349 )

@vercel

vercel Bot commented Jan 3, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
airbyte-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2025 6:55pm

@edgao
Edward Gao (edgao) marked this pull request as draft January 3, 2025 19:13
@octavia-squidington-iii Octavia Squidington III (octavia-squidington-iii) added the CDK Connector Development Kit label Jan 3, 2025
Base automatically changed from edgao/iceberg_release to master January 3, 2025 22:02
@edgao Edward Gao (edgao) changed the title Destination Iceberg V2: maybe support aws instance profile auth? Destination Iceberg V2: support aws instance profile auth Jan 3, 2025
@edgao
Edward Gao (edgao) marked this pull request as ready for review January 3, 2025 22:28
@blarghmatey

Copy link
Copy Markdown
Contributor

For the eventual reviewer, I was able to test this and successfully authenticate via an IAM instance role without providing the IAM key and secret using the 0.2.6-dev.37c4d02c2e tag of the built image.


// If we don't have explicit S3 creds, fall back to the default creds provider chain.
// For example, this should allow us to use AWS instance profiles.
val awsAccessKeyId = config.awsAccessKeyConfiguration.accessKeyId

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.

I think this is fine but now that I see this behavior, I think you are right, we should use that pattern for the Assume role path. I don't think we should make the change in this PR though

This branch was successfully deployed

1 active deployment
Preview — eb8b4ee3 Deployed Jan 10, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/connectors Connector related issues area/documentation Improvements or additions to documentation CDK Connector Development Kit connectors/destination/iceberg-v2 connectors/destination/s3-data-lake

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants