forked from elastic/elasticsearch
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set region for the STS client via privileged calls in AWS SDK
Unfortunately, `AWSSecurityTokenServiceClientBuilder#setRegion` is not just a setter on the builder. It looks up the region by its name which laziliy initializes some regional configuration. As a result, the call with an `access denied` error, because the caller doesn't have permission to call `accessDeclaredMembers` in some Jackson internals. We fix that in two ways: * Make sure `withRegion` call is priviliged * Eagarly lookup region metadata in `S3RepositoryPlugin` Fixes elastic#102173
- Loading branch information
Showing
2 changed files
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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