Skip to content

Commit ea3c106

Browse files
authored
#13797 - CI Failure on Redact processor (#14777)
CI was failing to install the package because of the license restrictions of the Elastic Stack * Changed the redact into gsub and did a replace on the sensitive information
1 parent 55174dc commit ea3c106

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

packages/hpe_aruba_cx/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "0.1.2"
3+
changes:
4+
- description: Fix for licensing and the redact processor
5+
type: bugfix
6+
link: https://github.com/elastic/integrations/pull/14777
27
- version: "0.1.1"
38
changes:
49
- description: Changed owners.

packages/hpe_aruba_cx/data_stream/log/_dev/test/pipeline/test-aruba-cx.log-expected.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4833,7 +4833,7 @@
48334833
"aruba": {
48344834
"aaa": {
48354835
"tacacs_action": "update",
4836-
"tacacs_event": " -> redact>",
4836+
"tacacs_event": " -> ****",
48374837
"tacacs_type": "global default tacacs_passkey"
48384838
},
48394839
"component": {
@@ -4857,7 +4857,7 @@
48574857
"kind": [
48584858
"event"
48594859
],
4860-
"original": "2024-06-19T14:21:13.194235-05:00 8360-Primaire aaautilscfgd[712]: Event|2302|LOG_INFO|AMM|1/1|TACACS global default tacacs_passkey update: -> redact>",
4860+
"original": "2024-06-19T14:21:13.194235-05:00 8360-Primaire aaautilscfgd[712]: Event|2302|LOG_INFO|AMM|1/1|TACACS global default tacacs_passkey update : -> ****",
48614861
"outcome": "unknown",
48624862
"sequence": 1,
48634863
"type": [
@@ -4871,7 +4871,7 @@
48714871
"procid": "712"
48724872
}
48734873
},
4874-
"message": "TACACS global default tacacs_passkey update: -> redact>",
4874+
"message": "TACACS global default tacacs_passkey update : -> ****",
48754875
"tags": [
48764876
"preserve_original_event"
48774877
]

packages/hpe_aruba_cx/data_stream/log/elasticsearch/ingest_pipeline/default.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ processors:
88
- remove:
99
field: message
1010
ignore_missing: true
11-
- redact:
11+
- gsub:
1212
field: "event.original"
1313
tag: redact_passkey
1414
description: "Redacting passkey updates"
15-
prefix: "tacacs_passkey update: -> "
16-
patterns:
17-
- "tacacs_passkey %{GREEDYDATA:redact}"
15+
replacement: "$1****"
16+
pattern: "(tacacs_passkey update : -> )([^\\s]+)$"
17+
ignore_missing: true
1818
- set:
1919
field: ecs.version
2020
value: "8.11.0"
@@ -1209,7 +1209,7 @@ processors:
12091209
field: "message"
12101210
description: "Logs TACACS+ server update, server group update and global default update"
12111211
patterns:
1212-
- "^TACACS %{GREEDYDATA:aruba.aaa.tacacs_type} %{DATA:aruba.aaa.tacacs_action}:\\s?%{GREEDYDATA:aruba.aaa.tacacs_event}"
1212+
- "^TACACS %{GREEDYDATA:aruba.aaa.tacacs_type} %{DATA:aruba.aaa.tacacs_action} :\\s?%{GREEDYDATA:aruba.aaa.tacacs_event}"
12131213
- grok:
12141214
if: "ctx.event.code == '2303'"
12151215
tag: aaa_event_2303

packages/hpe_aruba_cx/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
format_version: 3.2.1
22
name: hpe_aruba_cx
33
title: "HPE Aruba CX"
4-
version: 0.1.1
4+
version: 0.1.2
55
description: "Collect logs from HPE Aruba CX with Elastic Agent"
66
type: integration
77
categories:

0 commit comments

Comments
 (0)