Skip to content

Commit 61e16d4

Browse files
pxsalehifelixbarny
andauthored
Issue S3 web identity token refresh call with sufficient permissions (#119748) (#119840)
Closes #119747 Co-authored-by: Felix Barnsteiner <[email protected]>
1 parent a5811d0 commit 61e16d4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

docs/changelog/119748.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 119748
2+
summary: Issue S3 web identity token refresh call with sufficient permissions
3+
area: Snapshot/Restore
4+
type: bug
5+
issues:
6+
- 119747

modules/repository-s3/src/main/java/org/elasticsearch/repositories/s3/S3Service.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ public void onFileCreated(Path file) {
423423
public void onFileChanged(Path file) {
424424
if (file.equals(webIdentityTokenFileSymlink)) {
425425
LOGGER.debug("WS web identity token file [{}] changed, updating credentials", file);
426-
credentialsProvider.refresh();
426+
SocketAccess.doPrivilegedVoid(credentialsProvider::refresh);
427427
}
428428
}
429429
});

0 commit comments

Comments
 (0)