Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Add support of STS assume role. #736

Merged
merged 3 commits into from
Jul 22, 2021

Conversation

kowshikn
Copy link
Contributor

Issue #731:

Description of changes:

Add support of STS assume role option.


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.

@kowshikn kowshikn requested review from dlvenable and dinujoh July 22, 2021 15:51
credentialsProvider = StsAssumeRoleCredentialsProvider.builder()
.stsClient(StsClient.create())
.refreshRequest(AssumeRoleRequest.builder()
.roleSessionName("Elasticsearch-Sink-" + UUID.randomUUID()
Copy link
Contributor

Choose a reason for hiding this comment

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

I mentioned this in the other review.

Should we include the pipeline name here?
e.g.

roleSessionName(pipelineName + "-" + UUID.randomUUID().toString())

It could be obtained from pluginSetting.getPipelineName() in the static factory.

Copy link
Contributor

Choose a reason for hiding this comment

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

+1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Missed the comment. Fixed it. in the next push.

@dinujoh dinujoh merged commit a66f2a8 into opendistro-for-elasticsearch:main Jul 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants