Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support to Get real HTTP Client IP #4494

Closed
Tracked by #4480
CabinfeverB opened this issue Dec 23, 2021 · 0 comments · Fixed by #4495
Closed
Tracked by #4480

Support to Get real HTTP Client IP #4494

CabinfeverB opened this issue Dec 23, 2021 · 0 comments · Fixed by #4495
Labels
type/development The issue belongs to a development tasks

Comments

@CabinfeverB
Copy link
Member

Development Task

refer to #4480

@CabinfeverB CabinfeverB added the type/development The issue belongs to a development tasks label Dec 23, 2021
CabinfeverB added a commit to CabinfeverB/pd that referenced this issue Dec 23, 2021
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
CabinfeverB added a commit to CabinfeverB/pd that referenced this issue Dec 27, 2021
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
CabinfeverB added a commit to CabinfeverB/pd that referenced this issue Dec 30, 2021
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
ti-chi-bot added a commit that referenced this issue Jan 5, 2022
* close #4494

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* close #4494: add priority comment

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* close #4494

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix test to cover all cases

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
ti-chi-bot pushed a commit that referenced this issue Jan 21, 2022
* close #4494

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* close #4494: add priority comment

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* add request info middleware

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* close #4494

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* change service label getter and setter

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* add lock

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* add audit middleware

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* add audit middleware

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* #4538

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix check

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix check

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* change service label placement

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* merge master

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* add const service label  and could be dynamically turned on and off service middleware

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix statics check

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix statics check

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix statics check

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix statics check

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix function name

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* add benchmark test

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix r.Body nil panic

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* add benchmark test

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* change export

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* change export

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix statics check

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix typo problem

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* change service label method

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix statics

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix router

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix router

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* add http proto

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* add http proto

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* change default value

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* use middleware func shortname

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix comment

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* change const to iota

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* change register method

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* for test

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* for test

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix race

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix race

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

Co-authored-by: ShuNing <nolouch@gmail.com>
disksing pushed a commit to oh-my-tidb/pd that referenced this issue Feb 8, 2022
* close tikv#4494

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* close tikv#4494: add priority comment

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* add request info middleware

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* close tikv#4494

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* change service label getter and setter

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* add lock

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* add audit middleware

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* add audit middleware

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* tikv#4538

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix check

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix check

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* change service label placement

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* merge master

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* add const service label  and could be dynamically turned on and off service middleware

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix statics check

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix statics check

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix statics check

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix statics check

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix function name

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* add benchmark test

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix r.Body nil panic

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* add benchmark test

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* change export

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* change export

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix statics check

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix typo problem

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* change service label method

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix statics

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix router

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix router

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* add http proto

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* add http proto

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* change default value

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* use middleware func shortname

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix comment

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* change const to iota

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* change register method

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* for test

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* for test

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix race

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

* fix race

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

Co-authored-by: ShuNing <nolouch@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/development The issue belongs to a development tasks
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant