fix(gateway): allow health method for all authenticated roles (#19699)

Merged via /review-pr -> /prepare-pr -> /merge-pr.

Prepared head SHA: b976443267
Co-authored-by: Nachx639 <71144023+Nachx639@users.noreply.github.com>
Co-authored-by: mbelinky <132747814+mbelinky@users.noreply.github.com>
Reviewed-by: @mbelinky
This commit is contained in:
Nachx639
2026-02-20 18:48:44 +01:00
committed by GitHub
parent c8ee33c162
commit 868fe48d58
4 changed files with 30 additions and 7 deletions

View File

@@ -39,6 +39,9 @@ function authorizeGatewayMethod(method: string, client: GatewayRequestOptions["c
if (!client?.connect) {
return null;
}
if (method === "health") {
return null;
}
const role = client.connect.role ?? "operator";
const scopes = client.connect.scopes ?? [];
if (isNodeRoleMethod(method)) {