Project

General

Profile

Actions

Bug #22350

open

file key value parameter not in list eats the separator

Added by Nicolas CHARLES about 1 year ago. Updated 10 days ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
Generic methods
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
It bothers me each time
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Priority:
53
Name check:
To do
Fix check:
To do
Regression:
No

Description

With the folowing content

Ciphers aes128-ctr,aes196-ctr

the following call to remove everything that's not aes128
file-key-valuep-paramter not in list with
(?!aes128\-ctr$)
for parameter regex
result in

Ciphers aes128-ctraes196-ctr

agent info output is

2023-02-07T20:11:15+00:00 rudder     info: Replaced pattern '^(Ciphers\s* \s*.*)(,+\s*(?!aes128\-ctr$)|(?!aes128\-ctr$)\s*,+)(.*)\s*$' in '/tmp/ssh'
2023-02-07T20:11:15+00:00 rudder     info: replace_patterns promise '^(Ciphers\s* \s*.*)(,+\s*(?!aes128\-ctr$)|(?!aes128\-ctr$)\s*,+)(.*)\s*$' repaired
2023-02-07T20:11:15+00:00 rudder     info: Moved '/tmp/ssh_1675800670_Tue_Feb__7_20_11_15_2023.cf-before-edit' to repository location '/var/rudder/modifi

Actions

Also available in: Atom PDF