Open sfayer opened 1 day ago
Hi,
Looking through a log on our DIRAC server, I noticed a slightly weird thing: There is occasionally a redacted log message, but the thing that's removed from the message is the certificate and not the key!
'proxyString': '***REDACTED***\n-----BEGIN PRIVATE KEY-----\nMIIABCDEFABCDEFABCDEFABCDEFABCDEFABCDEFABCDEFABCDEFABCDEFABCDEFABCDEFABCDEFABCDEFABCDEFABCDEF...===\n-----END PRIVATE KEY-----\n***REDACTED***\n***REDACTED***\n***REDACTED***\n***REDACTED***\n***REDACTED***\n***REDACTED***\n'...
https://github.com/DIRACGrid/DIRAC/blob/e02d21f413d537a232167817f779713a41de6aaf/src/DIRAC/Resources/LogFilters/SensitiveDataFilter.py#L45
Did you perhaps mean to use PRIVATE KEY rather than CERTIFICATE there?
PRIVATE KEY
CERTIFICATE
Regards, Simon
Oops indeed, I will fix that :sweat_smile:
Hi,
Looking through a log on our DIRAC server, I noticed a slightly weird thing: There is occasionally a redacted log message, but the thing that's removed from the message is the certificate and not the key!
https://github.com/DIRACGrid/DIRAC/blob/e02d21f413d537a232167817f779713a41de6aaf/src/DIRAC/Resources/LogFilters/SensitiveDataFilter.py#L45
Did you perhaps mean to use
PRIVATE KEY
rather thanCERTIFICATE
there?Regards, Simon