Allow plugins to access default pipeline role via AwsCredentialsSupplier#5604
Merged
graytaylor0 merged 1 commit intoopensearch-project:mainfrom Jun 10, 2025
Merged
Conversation
…sSupplier
This change enables plugins to access the default STS role ARN configured in
data-prepper-config.yaml via the AwsCredentialsSupplier interface.
Changes:
- Added getDefaultStsRoleArn() method to AwsCredentialsSupplier interface
- Implemented the method in DefaultAwsCredentialsSupplier
- Added corresponding method to CredentialsProviderFactory
- Added unit tests for the new functionality
This maintains a consistent pattern with how the default region is already
accessible to plugins through the same interface.
Signed-off-by: Pallempati Saketh <pallempati.saketh@fmr.com>
dlvenable
approved these changes
May 1, 2025
Member
dlvenable
left a comment
There was a problem hiding this comment.
Thank you @saketh-pallempati !
Contributor
Author
|
Thanks for approval @dlvenable |
graytaylor0
approved these changes
Jun 10, 2025
jeffreyAaron
pushed a commit
to jeffreyAaron/data-prepper
that referenced
this pull request
Jun 13, 2025
…sSupplier (opensearch-project#5604) This change enables plugins to access the default STS role ARN configured in data-prepper-config.yaml via the AwsCredentialsSupplier interface. Changes: - Added getDefaultStsRoleArn() method to AwsCredentialsSupplier interface - Implemented the method in DefaultAwsCredentialsSupplier - Added corresponding method to CredentialsProviderFactory - Added unit tests for the new functionality This maintains a consistent pattern with how the default region is already accessible to plugins through the same interface. Signed-off-by: Pallempati Saketh <pallempati.saketh@fmr.com> Signed-off-by: Jeffrey Aaron Jeyasingh <jeffreyaaron06@gmail.com>
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.
Description
This change enables plugins to access the default STS role ARN configured in
data-prepper-config.yamlvia theAwsCredentialsSupplierinterface.Changes:
getDefaultStsRoleArn()method toAwsCredentialsSupplierinterfaceDefaultAwsCredentialsSupplierCredentialsProviderFactoryThis maintains a consistet pattern with how the default region is already
accessible to plugins through the same interface.
Issues Resolved
Resolves #4958
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.