Skip to content

[WIP]feat: honor fs.s3a.auth.profile.name and fs.s3a.auth.profile.file for ProfileCredentialsProvider#4246

Closed
karuppayya wants to merge 1 commit intoapache:mainfrom
karuppayya:COMET-4245
Closed

[WIP]feat: honor fs.s3a.auth.profile.name and fs.s3a.auth.profile.file for ProfileCredentialsProvider#4246
karuppayya wants to merge 1 commit intoapache:mainfrom
karuppayya:COMET-4245

Conversation

@karuppayya
Copy link
Copy Markdown
Contributor

@karuppayya karuppayya commented May 6, 2026

Which issue does this PR close?

Closes #4245

Rationale for this change

Follow-up to #4213. The Profile credential provider added in #4213 ignored the
two Hadoop S3A configs that select which profile to use:

  • fs.s3a.auth.profile.name
  • fs.s3a.auth.profile.file
    Adding the above with this PR.

What changes are included in this PR?

Support

  • fs.s3a.auth.profile.name
  • fs.s3a.auth.profile.file

How are these changes tested?

TBD

… ProfileCredentialsProvider

Follow-up to apache#4213. Resolve the AWS profile name and credentials file
on the native side and forward them to `ProfileFileCredentialsProvider`,
matching Hadoop S3A's `ProfileAWSCredentialsProvider` semantics without
depending on a particular Hadoop version (the Hadoop class itself only
exists in Hadoop 3.4.2+).

- Read `fs.s3a.auth.profile.name` / `fs.s3a.auth.profile.file` (with
  bucket-scoped overrides) into the `Profile` credential provider
  metadata.
- Wire them into `ProfileFileCredentialsProvider::builder()` via
  `profile_name(...)` and `profile_files(...)`.
- Add unit tests covering the no-config, name+file, and bucket-override
  cases.
- Document the supported options in the S3 datasources guide.

Closes apache#4245

Co-authored-by: Cursor <cursoragent@cursor.com>
@karuppayya karuppayya closed this May 6, 2026
@karuppayya
Copy link
Copy Markdown
Contributor Author

Was incorrectly created, will reopen post end to end testing

@karuppayya karuppayya changed the title feat: honor fs.s3a.auth.profile.name and fs.s3a.auth.profile.file for ProfileCredentialsProvider [WIP]feat: honor fs.s3a.auth.profile.name and fs.s3a.auth.profile.file for ProfileCredentialsProvider May 6, 2026
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.

Support fs.s3a.auth.profile.name and fs.s3a.auth.profile.file for ProfileCredentialsProvider

1 participant