Using sensitiveKeywords in the app.config #14064
-
I wanted to beef up our security and obfuscate a few more items that are being logged with potentially sensitive information. I followed the instructions in the documentation at https://craftcms.com/docs/4.x/logging.html#sensitive-information but I still see those items with their
And here's a recent log line containing one of those: Am I missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
The reason that’s not working for you is because I’ve just made the setting less strict, by having the keywords each normalized in the same way, which will fix this for you. (6e0881c) In the meantime, you could do your own normalization, by replacing |
Beta Was this translation helpful? Give feedback.
The reason that’s not working for you is because
sensitiveKeywords
is expected to be set to an array of lowercase, single-word keywords. Setting names are normalized as lowercased individual words (e.g.aws s3 base url
) and then compared against those keywords.I’ve just made the setting less strict, by having the keywords each normalized in the same way, which will fix this for you. (6e0881c)
In the meantime, you could do your own normalization, by replacing
AWS_S3_BASE_URL
withaws s3 base url
. (You can just removeAWS_S3_ACCESS_KEY_ID
because that’s already covered bykey
in the default list.)