Skip to content

Commit 7ad5da3

Browse files
authored
Adding support to DLM for the new .workflows-execution-data-stream-logs data stream (#139162)
1 parent 81c1004 commit 7ad5da3

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/user/InternalUsers.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ public class InternalUsers {
180180
// System data stream for result history of fleet actions (see Fleet#fleetActionsResultsDescriptor)
181181
".fleet-actions-results",
182182
// System data streams for storing uploaded file data for Agent diagnostics and Endpoint response actions
183-
".fleet-fileds*"
183+
".fleet-fileds*",
184+
// System data stream for kibana workflows logs
185+
".workflows-execution-data-stream-logs"
184186
)
185187
.privileges(
186188
filterNonNull(

x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/security/user/InternalUsersTests.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,11 @@ public void testDataStreamLifecycleUser() {
253253
assertThat(role.application(), is(ApplicationPermission.NONE));
254254
assertThat(role.remoteIndices(), is(RemoteIndicesPermission.NONE));
255255

256-
final List<String> allowedSystemDataStreams = Arrays.asList(".fleet-actions-results", ".fleet-fileds*");
256+
final List<String> allowedSystemDataStreams = Arrays.asList(
257+
".fleet-actions-results",
258+
".fleet-fileds*",
259+
".workflows-execution-data-stream-logs"
260+
);
257261
for (var group : role.indices().groups()) {
258262
if (group.allowRestrictedIndices()) {
259263
assertThat(group.indices(), arrayContaining(allowedSystemDataStreams.toArray(new String[0])));

0 commit comments

Comments
 (0)