Skip to content

Commit eb6c6fd

Browse files
authored
Issue S3 web identity token refresh call with sufficient permissions (#119748) (#119929)
Closes #119747
1 parent 2eb78bc commit eb6c6fd

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
@@ -417,7 +417,7 @@ public void onFileCreated(Path file) {
417417
public void onFileChanged(Path file) {
418418
if (file.equals(webIdentityTokenFileSymlink)) {
419419
LOGGER.debug("WS web identity token file [{}] changed, updating credentials", file);
420-
credentialsProvider.refresh();
420+
SocketAccess.doPrivilegedVoid(credentialsProvider::refresh);
421421
}
422422
}
423423
});

0 commit comments

Comments
 (0)