Replies: 1 comment
-
Hi @razorcd thanks for reaching out. The current behavior is called out here in the documentation: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/core/boto3.html#boto3.set_stream_logger
This also overlaps with a related issue: boto/boto3#2292. Here are a couple comments that are relevant in particular:
In regards to a pattern-based filter to anonymize secret strings:
Considering those comments from a maintainer, it does not seem like there is a clear path forward to address this. |
Beta Was this translation helpful? Give feedback.
-
Hello,
The response body of the AWS services is being logged in DEBUG mode by boto library. This is an issue when requesting AWS secrets, as it will expose private information.
Most developers temporarily enable DEBUG mode over the entire application to debug issues. This automatically enabled DEBUG mode in boto modules too.
To avoid this risk, it would be better to remove logging the body completely. Or at least to put it behind a external configuration that is disabled by default.
Source: https://github.com/boto/botocore/blob/develop/botocore/parsers.py#L241C25-L241C25
Thank you,
Cristian
Beta Was this translation helpful? Give feedback.
All reactions