Skip to content

Commit

Permalink
Merge pull request #20151 from influxdata/dm-debug-log-no-body-19978
Browse files Browse the repository at this point in the history
fix(http): don't log bodies of V1 write requests
  • Loading branch information
docmerlin authored Nov 23, 2020
2 parents cae1417 + 00a91ad commit aa0defe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ want to use the default.

1. [20110](https://github.com/influxdata/influxdb/pull/20110): Use V2 directory for default V2 config path in `influxd upgrade`.
1. [20137](https://github.com/influxdata/influxdb/pull/20137): Fix panic when writing a point with 100 tags. Thanks @foobar!
1. [20151](https://github.com/influxdata/influxdb/pull/20151): Don't log bodies of V1 write requests.

## v2.0.2 [2020-11-19]

Expand Down
1 change: 1 addition & 0 deletions http/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ var blacklistEndpoints = map[string]isValidMethodFn{
usersPasswordPath: ignoreMethod(),
"/api/v2/packages/apply": ignoreMethod(),
prefixWrite: ignoreMethod("POST"),
"/write": ignoreMethod("POST"),
organizationsIDSecretsPath: ignoreMethod("PATCH"),
organizationsIDSecretsDeletePath: ignoreMethod("POST"),
prefixSetup: ignoreMethod("POST"),
Expand Down
5 changes: 5 additions & 0 deletions http/middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,11 @@ func TestLoggingMW(t *testing.T) {
method: "POST",
path: "/api/v2/write",
},
{
name: "legacy write path",
method: "POST",
path: "/write",
},
{
name: "orgs id secrets path",
method: "PATCH",
Expand Down

0 comments on commit aa0defe

Please sign in to comment.