Skip to content

Commit

Permalink
[EasyUtils] Add curl cert opts to sanitizer (#1372)
Browse files Browse the repository at this point in the history
  • Loading branch information
voodooism authored Apr 5, 2024
1 parent a219900 commit 1247924
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ interface SensitiveDataSanitizerInterface
'token',
'verificationcode',
'x-shared-key',
'40309', // Value of the CURLOPT_CAINFO_BLOB constant
'40291', // Value of the CURLOPT_SSLCERT_BLOB constant
'40292', // Value of the CURLOPT_SSLKEY_BLOB constant
];

public const DEFAULT_MASK_PATTERN = '*REDACTED*';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public static function provideAbstractDataForSanitizing(): iterable
{
yield 'Mask value if key explicitly provided' => [
'input' => [
0 => 'will be masked',
'ignoreBool' => true,
'ignoreDouble' => 1.23,
'ignoreInteger' => 1,
Expand Down Expand Up @@ -71,6 +72,7 @@ public static function provideAbstractDataForSanitizing(): iterable
),
],
'expectedOutput' => [
'0' => '*REDACTED*',
'ignoreBool' => true,
'ignoreDouble' => 1.23,
'ignoreInteger' => 1,
Expand Down Expand Up @@ -127,6 +129,7 @@ public static function provideAbstractDataForSanitizing(): iterable
'masknull',
'maskstring',
'prop1',
'0',
],
];
yield 'Mask keys in URL' => [
Expand Down

0 comments on commit 1247924

Please sign in to comment.