davidby-influx
6159c85f19
feat: Add authenticating ID and user ID to request logging ( #24474 ) ( #24479 )
...
To allow rudimentary security auditing of logs,
add the authenticating ID and the user ID when
possible to the request logs. When a request is
authorized for V1 or V2 API, store the authorizer
object to be used by the logger up the call stack.
closes https://github.com/influxdata/influxdb/issues/24473
(cherry picked from commit 13cf6be49e
)
closes https://github.com/influxdata/influxdb/issues/24475
2023-11-22 14:24:56 -08:00
William Baker
b0a0e734e0
chore: remove unused user http code ( #23011 )
...
* chore: remove unused user http code
* fix: resolve circular dep
* fix: copy newUserResponse function
2021-12-20 15:17:18 -05:00
Daniel Moran
15a32a0860
refactor: consolidate session-handling code ( #22626 )
2021-10-06 22:37:02 -04:00
Daniel Moran
5c7c6c2702
feat: add APIs for management of remote InfluxDB connections ( #22219 )
2021-08-17 15:15:05 -04:00
Daniel Moran
a216501723
feat: add support for gzip request bodies in restore API ( #21676 )
2021-06-14 11:52:31 -04:00
Daniel Moran
3420ed53d3
refactor: modularize backup/restore behavior so it's possible to test using `go test` ( #20991 )
2021-03-23 07:28:38 -04:00
Dan Moran
2799ebcfea
fix(http): don't log bodies of V1 write requests
2020-11-23 14:48:20 -05:00
George MacRorie
16d916a952
refactor(kv): delete deprecated kv service code
...
This includes removal of a lot of kv.Service responsibilities. However,
it does not finish the re-wiring. It removes documents, telegrafs,
notification rules + endpoints, checks, orgs, users, buckets, passwords,
urms, labels and authorizations. There are some oustanding pieces that
are needed to get kv service compiling (dashboard service urm
dependency). Then all the call sites for kv service need updating and
the new implementations of telegraf and notification rules + endpoints
needed installing (along with any necessary migrations).
2020-11-16 12:41:26 +00:00
Jonathan A. Sternberg
0ae8bebd75
refactor: rewrite imports to include the /v2 suffix for version 2
2020-04-03 12:39:20 -05:00
Johnny Steenbergen
97e56c0f00
fix(http): fixup logging for http middleware
2020-03-17 10:49:16 -07:00
Johnny Steenbergen
2b0b32abe8
chore(http): pull out eror handler into kit pkg for portability
2020-02-03 12:39:47 -08:00
Johnny Steenbergen
c8aabaf515
chore(http): fixup middleware stack and normalize metrics into same buckets for id fields
2020-01-08 15:05:34 -08:00
Johnny Steenbergen
cce279a80e
feat(pkger): add ability to provide secrets alongside package when applying
...
this provides the ability to add secret refs at runtime instead of adding
them to the pkg.
2019-12-27 12:41:42 -08:00
Johnny Steenbergen
1db3256980
feat(pkger): add check dry run functionality
2019-12-18 12:15:08 -08:00
Johnny Steenbergen
8729cd0959
chore(http): refactor api handler take advantage of route tree instead of switch statement
...
is very much WIP at this point
2019-12-11 09:53:29 -08:00
Jacob Marble
5f19c6cace
chore: Remove several instances of WithLogger ( #15996 )
...
* chore: Remove several instances of WithLogger
* chore: unexport Logger fields
* chore: unexport some more Logger fields
* chore: go fmt
chore: fix test
chore: s/logger/log
chore: fix test
chore: revert http.Handler.Handler constructor initialization
* refactor: integrate review feedback, fix all test nop loggers
* refactor: capitalize all log messages
* refactor: rename two logger to log
2019-12-04 15:10:23 -08:00
Deary Hudson III
c04249ec78
fix(http): /api/v2/orgs/:id/owners|members to 404 ( #15504 )
...
ensures that the endpoints:
* /api/v2/orgs/:id/owners
* /api/v2/orgs/:id/members
404 when the organization resource does not exist
2019-10-21 16:37:30 -05:00
Johnny Steenbergen
dbe0103d92
fix(logging): blacklist endpoints with sensitive data from logging body
2019-10-09 13:17:24 -07:00