-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Opensearch repository-s3 plugin cannot read ServiceAccount token #6390
Conversation
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #6390 +/- ##
============================================
+ Coverage 70.71% 70.81% +0.10%
- Complexity 59012 59115 +103
============================================
Files 4802 4802
Lines 282489 282495 +6
Branches 40726 40728 +2
============================================
+ Hits 199759 200054 +295
+ Misses 66376 66050 -326
- Partials 16354 16391 +37
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Gradle Check (Jenkins) Run Completed with:
|
plugins/repository-s3/src/test/java/org/opensearch/repositories/s3/S3ServiceTests.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
|
||
public S3RepositoryPlugin(final Settings settings) { | ||
this(settings, new S3Service()); | ||
public S3RepositoryPlugin(final Settings settings, final Path configPath) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If anyone else reading this is wondering how we can change a public constructor without changing any calling code, the answer is that the PluginsService expects one of three different constructor signatures and this one of them.
Gradle Check (Jenkins) Run Completed with:
|
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-6390-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 5560ba46c6a948ee34b64bc52929026b1cc65723
# Push it to GitHub
git push --set-upstream origin backport/backport-6390-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-2.x Then, create a pull request where the |
…nsearch-project#6390) * Opensearch repository-s3 plugin cannot read ServiceAccount token Signed-off-by: Andriy Redko <andriy.redko@aiven.io> * Address code review comments Signed-off-by: Andriy Redko <andriy.redko@aiven.io> --------- Signed-off-by: Andriy Redko <andriy.redko@aiven.io> (cherry picked from commit 5560ba4)
…) (#6423) * Opensearch repository-s3 plugin cannot read ServiceAccount token Signed-off-by: Andriy Redko <andriy.redko@aiven.io> * Address code review comments Signed-off-by: Andriy Redko <andriy.redko@aiven.io> --------- Signed-off-by: Andriy Redko <andriy.redko@aiven.io> (cherry picked from commit 5560ba4)
Description
Allow to specify the identity web token file relatively to the
config
folder location (configured byOPENSEARCH_PATH_CONFIG
so it would be possible to use soft links to access it):And refer to it in
opensearch.yml
:Issues Resolved
Closes #6312
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.