Skip to content

Commit ca4fd4b

Browse files
committed
Grant file entitlements for shared data dir to ES base due to lack of entitlement delegation
1 parent 558cc7a commit ca4fd4b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libs/entitlement/src/main/java/org/elasticsearch/entitlement/bootstrap/HardcodedEntitlements.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ private static List<Scope> createServerEntitlements(Path pidFile) {
9292
new CreateClassLoaderEntitlement(),
9393
new FilesEntitlement(
9494
List.of(
95-
// TODO: what in es.base is accessing shared repo?
95+
// necessary due to lack of delegation ES-12382
9696
FilesEntitlement.FileData.ofBaseDirPath(SHARED_REPO, READ_WRITE),
97+
FilesEntitlement.FileData.ofBaseDirPath(SHARED_DATA, READ_WRITE),
9798
FilesEntitlement.FileData.ofBaseDirPath(DATA, READ_WRITE)
9899
)
99100
)

0 commit comments

Comments
 (0)