Skip to content

Commit a0ff7c3

Browse files
[system][auth] Remove deprecated user.name/user.id duplication for IAM events
Contract phase of the expand-and-contract migration started in 2.22.0 (#20339): the auth data stream no longer writes the affected account to user.name/user.id for useradd account creation, usermod group membership, userdel deletion, and PAM password change events. The affected account remains in user.target.name (and user.target.id for useradd); user.name on these events is reserved for the acting user, matching ECS semantics. On journald input, useradd events now keep the actor UID from journald metadata in user.id instead of having it overwritten by the created account's UID. Mechanically this deletes the five *_compat processors that 2.22.0 introduced for backward compatibility and regenerates the pipeline test expectations, whose diff is exactly the removal of the duplicated fields. Ships as 3.0.0 with a breaking-change changelog entry so Kibana requires users to acknowledge the change before upgrading. The bundled New users and groups dashboard already reads user.target.* as of 2.23.0.
1 parent 690e47a commit a0ff7c3

12 files changed

Lines changed: 9 additions & 74 deletions

packages/system/changelog.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
# later versions go on top
2+
- version: "3.0.0"
3+
changes:
4+
- description: >-
5+
The auth data stream no longer writes the affected account to `user.name`/`user.id` for useradd account creation, usermod group membership, userdel deletion, and PAM password change events. Since system 2.22.0 the affected account is available in `user.target.name` (and `user.target.id` for useradd), and `user.name` on these events is reserved for the acting user, matching ECS semantics. This completes the deprecation announced in 2.22.0. Before upgrading, update detection rules, saved searches, dashboards, and other content that reads the affected account from `user.name`/`user.id` on these events to use `user.target.*` instead — content still keyed on `user.name` will stop matching these events after this upgrade. The bundled New users and groups dashboard already uses `user.target.*` as of 2.23.0.
6+
type: breaking-change
7+
link: https://github.com/elastic/integrations/issues/20105
28
- version: "2.23.0"
39
changes:
410
- description: >-

packages/system/data_stream/auth/_dev/test/pipeline/test-auth-debian11-preserve-original.json-expected.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@
8989
},
9090
"id": "0"
9191
},
92-
"id": "107",
93-
"name": "systemd-journal-remote",
92+
"id": "1000",
9493
"target": {
9594
"id": "107",
9695
"name": "systemd-journal-remote"
@@ -982,7 +981,6 @@
982981
"id": "0"
983982
},
984983
"id": "1000",
985-
"name": "foo",
986984
"target": {
987985
"name": "foo"
988986
}
@@ -1061,7 +1059,6 @@
10611059
"id": "0"
10621060
},
10631061
"id": "1000",
1064-
"name": "foo",
10651062
"target": {
10661063
"name": "foo"
10671064
}
@@ -1140,7 +1137,6 @@
11401137
"id": "0"
11411138
},
11421139
"id": "1000",
1143-
"name": "foo",
11441140
"target": {
11451141
"name": "foo"
11461142
}
@@ -1360,7 +1356,6 @@
13601356
"id": "0"
13611357
},
13621358
"id": "1000",
1363-
"name": "fred",
13641359
"target": {
13651360
"name": "fred"
13661361
}

packages/system/data_stream/auth/_dev/test/pipeline/test-auth-debian11.json-expected.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@
8686
},
8787
"id": "0"
8888
},
89-
"id": "107",
90-
"name": "systemd-journal-remote",
89+
"id": "1000",
9190
"target": {
9291
"id": "107",
9392
"name": "systemd-journal-remote"
@@ -949,7 +948,6 @@
949948
"id": "0"
950949
},
951950
"id": "1000",
952-
"name": "foo",
953951
"target": {
954952
"name": "foo"
955953
}
@@ -1025,7 +1023,6 @@
10251023
"id": "0"
10261024
},
10271025
"id": "1000",
1028-
"name": "foo",
10291026
"target": {
10301027
"name": "foo"
10311028
}
@@ -1104,7 +1101,6 @@
11041101
"id": "0"
11051102
},
11061103
"id": "1000",
1107-
"name": "foo",
11081104
"target": {
11091105
"name": "foo"
11101106
}
@@ -1315,7 +1311,6 @@
13151311
"id": "0"
13161312
},
13171313
"id": "1000",
1318-
"name": "fred",
13191314
"target": {
13201315
"name": "fred"
13211316
}

packages/system/data_stream/auth/_dev/test/pipeline/test-auth-rhel79.log-expected.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@
8383
"auth": {}
8484
},
8585
"user": {
86-
"name": "jce",
8786
"target": {
8887
"name": "jce"
8988
}
@@ -129,7 +128,6 @@
129128
"auth": {}
130129
},
131130
"user": {
132-
"name": "acris",
133131
"target": {
134132
"name": "acris"
135133
}

packages/system/data_stream/auth/_dev/test/pipeline/test-auth-ubuntu1204.log-expected.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2477,8 +2477,6 @@
24772477
}
24782478
},
24792479
"user": {
2480-
"id": "1001",
2481-
"name": "tsg",
24822480
"target": {
24832481
"id": "1001",
24842482
"name": "tsg"
@@ -2526,7 +2524,6 @@
25262524
"auth": {}
25272525
},
25282526
"user": {
2529-
"name": "tsg",
25302527
"target": {
25312528
"name": "tsg"
25322529
}
@@ -4803,8 +4800,6 @@
48034800
}
48044801
},
48054802
"user": {
4806-
"id": "106",
4807-
"name": "mysql",
48084803
"target": {
48094804
"id": "106",
48104805
"name": "mysql"

packages/system/data_stream/auth/_dev/test/pipeline/test-auth.log-expected.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,8 +553,6 @@
553553
}
554554
},
555555
"user": {
556-
"id": "48",
557-
"name": "apache",
558556
"target": {
559557
"id": "48",
560558
"name": "apache"

packages/system/data_stream/auth/_dev/test/pipeline/test-pam-chauthtok-iso8601.log-expected.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
"auth": {}
4141
},
4242
"user": {
43-
"name": "user123",
4443
"target": {
4544
"name": "user123"
4645
}

packages/system/data_stream/auth/_dev/test/pipeline/test-pam-extraction.log-expected.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@
143143
"auth": {}
144144
},
145145
"user": {
146-
"name": "jsmith",
147146
"target": {
148147
"name": "jsmith"
149148
}

packages/system/data_stream/auth/_dev/test/pipeline/test-userdel.log-expected.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@
138138
"auth": {}
139139
},
140140
"user": {
141-
"name": "siem_test",
142141
"target": {
143142
"name": "siem_test"
144143
}

packages/system/data_stream/auth/_dev/test/pipeline/test-usermod-group.log-expected.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
"auth": {}
4545
},
4646
"user": {
47-
"name": "testuser",
4847
"target": {
4948
"name": "testuser"
5049
}
@@ -94,7 +93,6 @@
9493
"auth": {}
9594
},
9695
"user": {
97-
"name": "testuser",
9896
"target": {
9997
"name": "testuser"
10098
}

0 commit comments

Comments
 (0)