Keeping secrets out of logs (2024)
allan.reyes.sh
Keeping secrets out of logs (2024)
1–10 of 56 posts
Re: Keeping secrets out of logs (2024)
#2> And while people will write the code that accidentally introduces sensitive data into logs, they’re also the ones that will report, respond, and fix them.
This should probably be the first point and not the last.
Re: Keeping secrets out of logs (2024)
#3Just an excellent example of how to approach & elucidate a problem domain.
Re: Keeping secrets out of logs (2024)
#4Re: Keeping secrets out of logs (2024)
#5secrets.forEach(secret => logMessage = logMessage.replaceAll(secret, '**'))
Re: Keeping secrets out of logs (2024)
#6Re: Keeping secrets out of logs (2024)
#7Re: Keeping secrets out of logs (2024)
#8Re: Keeping secrets out of logs (2024)
#9I certainly agree with the desire to keep secrets out of logs, but isn’t the entire log itself also considered to be secret? Even a perfectly sanitized log probably contains lots of data about your production environment that you wouldn’t want to share with adversaries (e.g. peak usage hours).
Also if you have audit records, you want accessing a secret to be logged separately from accessing logs.
Re: Keeping secrets out of logs (2024)
#10I certainly agree with the desire to keep secrets out of logs, but isn’t the entire log itself also considered to be secret? Even a perfectly sanitized log probably contains lots of data about your production environment that you wouldn’t want to share with adversaries (e.g. peak usage hours).