Open HuSharp opened 2 months ago
Currently, the API for microservice nodes(TSO/Scheduling) is implemented by the redirector and does not take into account the middleware of the API itself, such as audit logs.
https://github.com/tikv/pd/blob/f3602e31640a55b61a3b14fb3989c4a0742a2416/server/api/server.go#L67-L93
https://github.com/tikv/pd/blob/a7663514c5ebfc78a99bacc84e030c9b7530a10b/server/api/middleware.go#L37-L43
https://github.com/tikv/pd/issues/5766 https://github.com/tikv/pd/issues/7178 https://github.com/tikv/pd/pull/7078
Do we need to add them? cc @niubell @rleungx
Enhancement Task
Currently, the API for microservice nodes(TSO/Scheduling) is implemented by the redirector and does not take into account the middleware of the API itself, such as audit logs.
redirector
https://github.com/tikv/pd/blob/f3602e31640a55b61a3b14fb3989c4a0742a2416/server/api/server.go#L67-L93
PD-API Middlewares
https://github.com/tikv/pd/blob/a7663514c5ebfc78a99bacc84e030c9b7530a10b/server/api/middleware.go#L37-L43
ref
https://github.com/tikv/pd/issues/5766 https://github.com/tikv/pd/issues/7178 https://github.com/tikv/pd/pull/7078