Skip to content

Commit a81bbda

Browse files
authored
[Uptime] Fix nesting of x509 subject (#18139)
In #17687 we added additional x509 fields. The mapping accidentally double nested subject fields as subject.subject. This fixes that. There are no tests here because we don't really have testing around mappings, and it's sort of difficult to test without being repetitive, so none are included here.
1 parent 1c6b278 commit a81bbda

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

heartbeat/docs/fields.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8020,7 +8020,7 @@ example: SHA256-RSA
80208020
--
80218021
80228022
8023-
*`tls.server.x509.subject.subject.common_name`*::
8023+
*`tls.server.x509.subject.common_name`*::
80248024
+
80258025
--
80268026
List of common names (CN) of subject.
@@ -8031,14 +8031,14 @@ example: r2.shared.global.fastly.net
80318031
80328032
--
80338033
8034-
*`tls.server.x509.subject.subject.common_name.text`*::
8034+
*`tls.server.x509.subject.common_name.text`*::
80358035
+
80368036
--
80378037
type: text
80388038
80398039
--
80408040
8041-
*`tls.server.x509.subject.subject.distinguished_name`*::
8041+
*`tls.server.x509.subject.distinguished_name`*::
80428042
+
80438043
--
80448044
Distinguished name (DN) of the certificate subject entity.

heartbeat/include/fields.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

heartbeat/monitors/active/dialchain/_meta/fields.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
- name: subject
141141
type: group
142142
fields:
143-
- name: subject.common_name
143+
- name: common_name
144144
type: keyword
145145
ignore_above: 1024
146146
description: List of common names (CN) of subject.
@@ -150,7 +150,7 @@
150150
- name: text
151151
type: text
152152
analyzer: simple
153-
- name: subject.distinguished_name
153+
- name: distinguished_name
154154
type: keyword
155155
ignore_above: 1024
156156
description: Distinguished name (DN) of the certificate subject entity.

0 commit comments

Comments
 (0)