Skip to content

Commit

Permalink
Merge pull request #8937 from BlaineEXE/trace-log-rgw-admin-http
Browse files Browse the repository at this point in the history
rgw: use trace logs for RGW admin HTTP info
  • Loading branch information
travisn committed Oct 7, 2021
2 parents 16d2ffb + f339737 commit f8d9f90
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/operator/ceph/object/admin.go
Expand Up @@ -72,7 +72,8 @@ func (c *debugHTTPClient) Do(req *http.Request) (*http.Response, error) {
if err != nil {
return nil, err
}
c.logger.Debugf("\n%s\n", string(dump))
// this can leak credentials for making requests
c.logger.Tracef("\n%s\n", string(dump))

resp, err := c.client.Do(req)
if err != nil {
Expand All @@ -84,7 +85,8 @@ func (c *debugHTTPClient) Do(req *http.Request) (*http.Response, error) {
if err != nil {
return nil, err
}
c.logger.Debugf("\n%s\n", string(dump))
// this can leak any sensitive info like credentials in the response
c.logger.Tracef("\n%s\n", string(dump))

return resp, nil
}
Expand Down

0 comments on commit f8d9f90

Please sign in to comment.