commit 871d2df290d829b9cafb0dc383dc3d65810c2dac
Author: Ben Nemec <email address hidden>
Date: Mon Aug 27 17:44:40 2018 +0000
Filter args dict in JSONFormatter
In most formatters, any unused keys in the args dict will just be
discarded. Because JSONFormatter logged the entire dict in addition
to the message, some values were included in the output that may
not have been intended. This could include sensitive data, so we
should stop that.
In the interest of maintaining compatibility with any tools that are
reading the args dict, we leave the dict but filter out any unused
keys.
Reviewed: https:/ /review. openstack. org/598338 /git.openstack. org/cgit/ openstack/ oslo.log/ commit/ ?id=871d2df290d 829b9cafb0dc383 dc3d65810c2dac
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit 871d2df290d829b 9cafb0dc383dc3d 65810c2dac
Author: Ben Nemec <email address hidden>
Date: Mon Aug 27 17:44:40 2018 +0000
Filter args dict in JSONFormatter
In most formatters, any unused keys in the args dict will just be
discarded. Because JSONFormatter logged the entire dict in addition
to the message, some values were included in the output that may
not have been intended. This could include sensitive data, so we
should stop that.
In the interest of maintaining compatibility with any tools that are
reading the args dict, we leave the dict but filter out any unused
keys.
Change-Id: Ib64837c1ae93a2 7bef3d30a776320 a373f18dd1c c5a4ae870836892 25fbc728bb)
Closes-Bug: 1571714
Closes-Bug: 1787214
(cherry picked from commit a93c6ef98c8aedd