Skip to content

Commit

Permalink
remove tablet server's ACL check on the /healthz HTTP api route
Browse files Browse the repository at this point in the history
Signed-off-by: austenLacy <[email protected]>
  • Loading branch information
austenLacy authored and shanth96 committed Feb 27, 2024
1 parent e8f37e2 commit dc8c6e4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions go/vt/vttablet/tabletserver/tabletserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -1700,10 +1700,6 @@ func (tsv *TabletServer) registerHealthzHealthHandler() {
}

func (tsv *TabletServer) healthzHandler(w http.ResponseWriter, r *http.Request) {
if err := acl.CheckAccessHTTP(r, acl.MONITORING); err != nil {
acl.SendError(w, err)
return
}
if (tsv.sm.wantState == StateServing || tsv.sm.wantState == StateNotConnected) && !tsv.sm.IsServing() {
http.Error(w, "500 internal server error: vttablet is not serving", http.StatusInternalServerError)
return
Expand Down

0 comments on commit dc8c6e4

Please sign in to comment.