Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

Commit b8dccb6

Browse files
committed
Hide pprof using authentication
1 parent 6259685 commit b8dccb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platform/ui/console_routes.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ func (qmc *QuesmaManagementConsole) createRouting() *mux.Router {
6767
router.HandleFunc(healthPath, qmc.checkHealth)
6868
router.Handle(metricsPath, promhttp.Handler())
6969

70-
qmc.initPprof(router)
71-
7270
// just for oauth compliance
7371
router.HandleFunc("/auth/{provider}", gothic.BeginAuthHandler)
7472
router.HandleFunc("/auth/{provider}/callback", authCallbackHandler)
@@ -86,6 +84,8 @@ func (qmc *QuesmaManagementConsole) createRouting() *mux.Router {
8684
authenticatedRoutes.Use(authMiddleware)
8785
}
8886

87+
qmc.initPprof(authenticatedRoutes)
88+
8989
authenticatedRoutes.HandleFunc("/", func(writer http.ResponseWriter, req *http.Request) {
9090
buf := qmc.generateDashboard()
9191
_, _ = writer.Write(buf)

0 commit comments

Comments
 (0)