Skip to content

Commit 02035e8

Browse files
committed
BUG/MEDIUM: pprof: remove pprof from user defined mapping
pprof should only be allowed to be read from controller admin port, not on the same frontent as normal traffic
1 parent 1ba4f7c commit 02035e8

File tree

3 files changed

+2
-68
lines changed

3 files changed

+2
-68
lines changed

.aspell.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,5 @@ allowed:
6161
- gwapi
6262
- init
6363
- svc
64+
- frontent
65+
- pprof

pkg/controller/handler.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@ func (c *HAProxyController) initHandlers() {
6565
},
6666
}
6767
}
68-
// Need to be before Refresh. If after, maps are refreshed without pprof content
69-
if c.osArgs.PprofEnabled {
70-
c.beforeUpdateHandlers = append(c.beforeUpdateHandlers, handler.Pprof{})
71-
}
7268

7369
if !c.osArgs.DisableQuic {
7470
c.updateHandlers = append(c.updateHandlers, &handler.Quic{

pkg/handler/pprof.go

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)