Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update renewed Jira refresh token back to the secrets store #5324

Merged
merged 19 commits into from
Jan 17, 2025

Conversation

san81
Copy link
Collaborator

@san81 san81 commented Jan 13, 2025

Description

In Jira OAuth2 based authentication, if one node renew the refresh token, others are not aware of the renewed refreshed token. This PR enables a way to write the renewed token back into the secret store so that other OCU nodes can pick up the renewed token and continue their execution. The changes introduced in this PR are

  • Introduced PluginConfigVariable interface that underlying provides methods to update the secret using the SecretsSupplier
  • Enhanced Jira source plugin code to make use of this newly introduced config variable member
  • Enahced Jira OAuth2 token refresh flow to make use of this PluginConfigVariable to write the updated refreshToken back into the store

Issues Resolved

Resolves #[Issue number to be closed when this PR is merged]

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

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.

san81 added 4 commits January 12, 2025 16:07
… plugins to get access to their underlying aws secrets store member to be able to update if needed

Signed-off-by: Santhosh Gandhe <[email protected]>
Signed-off-by: Santhosh Gandhe <[email protected]>
@san81 san81 changed the title Updated renewed Jira refresh token back to the secrets store Update renewed Jira refresh token back to the secrets store Jan 13, 2025
san81 added 2 commits January 12, 2025 22:34
… used for refreshToken

Signed-off-by: Santhosh Gandhe <[email protected]>
Signed-off-by: Santhosh Gandhe <[email protected]>
@san81 san81 marked this pull request as ready for review January 13, 2025 23:01
@san81 san81 requested a review from dlvenable January 15, 2025 23:55
san81 added 5 commits January 15, 2025 16:10
Signed-off-by: Santhosh Gandhe <[email protected]>
Signed-off-by: Santhosh Gandhe <[email protected]>
…set that helps with enforcing idempotency while updating the secret store multiple times

Signed-off-by: Santhosh Gandhe <[email protected]>
@san81 san81 requested a review from dlvenable January 16, 2025 19:31
@san81 san81 merged commit 83e949d into opensearch-project:main Jan 17, 2025
44 of 47 checks passed
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.

3 participants