Skip to content

Commit c747df6

Browse files
committed
Merge branch 'main' into 2025/02/17/fork-snapshot-deletion-cleanup
2 parents 3f7662e + e161ff2 commit c747df6

File tree

4 files changed

+26
-16
lines changed

4 files changed

+26
-16
lines changed

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/RestrictedBuildApiService.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ private static ListMultimap<Class<?>, String> createLegacyRestTestBasePluginUsag
9393
map.put(LegacyRestTestBasePlugin.class, ":x-pack:qa:smoke-test-security-with-mustache");
9494
map.put(LegacyRestTestBasePlugin.class, ":x-pack:qa:xpack-prefix-rest-compat");
9595
map.put(LegacyRestTestBasePlugin.class, ":modules:ingest-geoip:qa:file-based-update");
96-
map.put(LegacyRestTestBasePlugin.class, ":plugins:discovery-ec2:qa:amazon-ec2");
9796
map.put(LegacyRestTestBasePlugin.class, ":plugins:discovery-gce:qa:gce");
9897
map.put(LegacyRestTestBasePlugin.class, ":x-pack:qa:multi-cluster-search-security:legacy-with-basic-license");
9998
map.put(LegacyRestTestBasePlugin.class, ":x-pack:qa:multi-cluster-search-security:legacy-with-full-license");

libs/entitlement/src/main/java/org/elasticsearch/entitlement/initialization/EntitlementInitialization.java

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
import java.util.stream.Stream;
6060
import java.util.stream.StreamSupport;
6161

62+
import static org.elasticsearch.entitlement.runtime.policy.entitlements.FilesEntitlement.Mode.READ;
6263
import static org.elasticsearch.entitlement.runtime.policy.entitlements.FilesEntitlement.Mode.READ_WRITE;
6364

6465
/**
@@ -149,8 +150,25 @@ private static PolicyManager createPolicyManager() {
149150
new ManageThreadsEntitlement(),
150151
new FilesEntitlement(
151152
List.of(
152-
FilesEntitlement.FileData.ofPath(EntitlementBootstrap.bootstrapArgs().tempDir(), READ_WRITE),
153-
FilesEntitlement.FileData.ofPath(EntitlementBootstrap.bootstrapArgs().logsDir(), READ_WRITE)
153+
FileData.ofPath(bootstrapArgs.tempDir(), READ_WRITE),
154+
FileData.ofPath(bootstrapArgs.logsDir(), READ_WRITE),
155+
// OS release on Linux
156+
FileData.ofPath(Path.of("/etc/os-release"), READ),
157+
FileData.ofPath(Path.of("/etc/system-release"), READ),
158+
FileData.ofPath(Path.of("/usr/lib/os-release"), READ),
159+
// read max virtual memory areas
160+
FileData.ofPath(Path.of("/proc/sys/vm/max_map_count"), READ),
161+
FileData.ofPath(Path.of("/proc/meminfo"), READ),
162+
// load averages on Linux
163+
FileData.ofPath(Path.of("/proc/loadavg"), READ),
164+
// control group stats on Linux. cgroup v2 stats are in an unpredicable
165+
// location under `/sys/fs/cgroup`, so unfortunately we have to allow
166+
// read access to the entire directory hierarchy.
167+
FileData.ofPath(Path.of("/proc/self/cgroup"), READ),
168+
FileData.ofPath(Path.of("/sys/fs/cgroup/"), READ),
169+
// // io stats on Linux
170+
FileData.ofPath(Path.of("/proc/self/mountinfo"), READ),
171+
FileData.ofPath(Path.of("/proc/diskstats"), READ)
154172
)
155173
)
156174
)

muted-tests.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -338,14 +338,6 @@ tests:
338338
- class: org.elasticsearch.entitlement.runtime.policy.PolicyParserFailureTests
339339
method: testEntitlementAbsolutePathWhenRelative
340340
issue: https://github.com/elastic/elasticsearch/issues/122666
341-
- class: org.elasticsearch.entitlement.qa.EntitlementsAllowedNonModularIT
342-
issue: https://github.com/elastic/elasticsearch/issues/122568
343-
- class: org.elasticsearch.entitlement.qa.EntitlementsDeniedIT
344-
issue: https://github.com/elastic/elasticsearch/issues/122566
345-
- class: org.elasticsearch.entitlement.qa.EntitlementsDeniedNonModularIT
346-
issue: https://github.com/elastic/elasticsearch/issues/122569
347-
- class: org.elasticsearch.entitlement.qa.EntitlementsAllowedIT
348-
issue: https://github.com/elastic/elasticsearch/issues/122680
349341
- class: org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT
350342
method: test {yaml=reference/snapshot-restore/apis/get-snapshot-api/line_408}
351343
issue: https://github.com/elastic/elasticsearch/issues/122681

server/src/main/java/org/elasticsearch/TransportVersions.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,12 @@ static TransportVersion def(int id) {
174174
public static final TransportVersion TIMEOUT_GET_PARAM_FOR_RESOLVE_CLUSTER = def(8_838_0_00);
175175
public static final TransportVersion INFERENCE_REQUEST_ADAPTIVE_RATE_LIMITING = def(8_839_0_00);
176176
public static final TransportVersion ML_INFERENCE_IBM_WATSONX_RERANK_ADDED = def(8_840_0_00);
177-
public static final TransportVersion COHERE_BIT_EMBEDDING_TYPE_SUPPORT_ADDED_BACKPORT_8_X = def(8_840_0_01);
178-
public static final TransportVersion REMOVE_ALL_APPLICABLE_SELECTOR_BACKPORT_8_X = def(8_840_0_02);
179-
public static final TransportVersion ESQL_RETRY_ON_SHARD_LEVEL_FAILURE_BACKPORT_8_19 = def(8_840_0_03);
180-
public static final TransportVersion ESQL_SUPPORT_PARTIAL_RESULTS_BACKPORT_8_19 = def(8_840_0_04);
181-
public static final TransportVersion ELASTICSEARCH_9_0 = def(9_000_0_00);
177+
public static final TransportVersion INITIAL_ELASTICSEARCH_8_19 = def(8_841_0_00);
178+
public static final TransportVersion COHERE_BIT_EMBEDDING_TYPE_SUPPORT_ADDED_BACKPORT_8_X = def(8_841_0_01);
179+
public static final TransportVersion REMOVE_ALL_APPLICABLE_SELECTOR_BACKPORT_8_X = def(8_841_0_02);
180+
public static final TransportVersion ESQL_RETRY_ON_SHARD_LEVEL_FAILURE_BACKPORT_8_19 = def(8_841_0_03);
181+
public static final TransportVersion ESQL_SUPPORT_PARTIAL_RESULTS_BACKPORT_8_19 = def(8_841_0_04);
182+
public static final TransportVersion INITIAL_ELASTICSEARCH_9_0 = def(9_000_0_00);
182183
public static final TransportVersion REMOVE_SNAPSHOT_FAILURES_90 = def(9_000_0_01);
183184
public static final TransportVersion TRANSPORT_STATS_HANDLING_TIME_REQUIRED_90 = def(9_000_0_02);
184185
public static final TransportVersion REMOVE_DESIRED_NODE_VERSION_90 = def(9_000_0_03);

0 commit comments

Comments
 (0)