Skip to content

Commit dc8c6e4

Browse files
austenLacyshanth96
authored andcommitted
remove tablet server's ACL check on the /healthz HTTP api route
Signed-off-by: austenLacy <[email protected]>
1 parent e8f37e2 commit dc8c6e4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

go/vt/vttablet/tabletserver/tabletserver.go

-4
Original file line numberDiff line numberDiff line change
@@ -1700,10 +1700,6 @@ func (tsv *TabletServer) registerHealthzHealthHandler() {
17001700
}
17011701

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

0 commit comments

Comments
 (0)