Repository navigation
fix: fix S3 Data Lake connector empty role_arn validation - #67005
Conversation
👋 Greetings, Airbyte Team Member!Here are some helpful tips and reminders for your convenience. Helpful Resources
PR Slash CommandsAirbyte Maintainers (that's you!) can execute the following slash commands on your PR:
|
|
28c32d0 to
b0181e3
Compare
Edward Gao (edgao)
left a comment
There was a problem hiding this comment.
one comment about logic, otherwise lgtm
| // Validate that either both credentials are provided or neither (for instance profiles) | ||
| if ((awsAccessKeyId == null) != (awsSecretAccessKey == null)) { | ||
| throw IllegalArgumentException( | ||
| "Both access_key_id and secret_access_key must be provided together, or neither (to use instance profiles)" |
There was a problem hiding this comment.
in assume role mode, we always use the key+secret
- Change role_arn validation to check for both null and blank strings - Empty string role_arn is now treated as null and uses key-based auth - Refactor tests for better conciseness with helper function - Use consistent Kotlin patterns matching existing codebase style Fixes airbytehq/airbyte-internal-issues#14643
b0181e3 to
be9142a
Compare
- Update version from 0.3.36 to 0.3.37 - Add changelog entry for empty string role_arn fix
|
/format-fix
|
|
Deploy preview for airbyte-docs ready! ✅ Preview Built with commit 3caf38d. |
Use UUID-based table names for check operation test tables to prevent conflicts with: - Stale metadata from previous check runs - Concurrent check operations - User tables named airbyte_test_table This fixes the integration test failure caused by corrupted Glue catalog metadata pointing to non-existent S3 files. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
…ata-lake-empty-role-arn-validation
f465b5a to
109a3dd
Compare
…tables Wrap test table creation in try-finally to ensure cleanup always occurs, even if validation logic is added in the future or if the operation fails. This prevents accumulation of orphaned test tables in Glue catalog and S3.
…ata-lake-empty-role-arn-validation
Update version and changelog for empty role_arn validation fix. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
The configUpdater is not needed for check tests as they use actual config values directly, not test infrastructure placeholders. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
- Change role_arn validation to check for both null and blank strings
- Add validation for mismatched AWS credentials (only one of
access_key_id or secret_access_key provided)
- Add comprehensive tests for empty string role_arn, null role_arn, and
credential validation
- Improve error messages for better debugging
Fixes airbytehq/airbyte-internal-issues#14643
Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
Fixes airbytehq/airbyte-internal-issues#14643
What
How
Review guide
User Impact
Can this PR be safely reverted and rolled back?
Important
Auto-merge enabled.
This PR is set to merge automatically when all requirements are met.