Problem
At DEBUG level output, botocore currently logs the full response of each API call. In the case of our use, this includes the plaintext of data keys as they are being generated or decrypted by KMS.
By enabling the most verbose level of debug output for this CLI (-vvvv), you do end up with DEBUG level output for botocore.
Options
- Work with botocore team to redact KMS responses in botocore.
- We are already applying a custom filter to the root handler. We can extend that filter to catch and redact all KMS responses.