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

@@ -96,6 +96,9 @@ describe("gateway role enforcement", () => {
const statusRes = await rpcReq(nodeWs, "status", {});
expect(statusRes.ok).toBe(false);
expect(statusRes.error?.message ?? "").toContain("unauthorized role");
const healthRes = await rpcReq(nodeWs, "health", {});
expect(healthRes.ok).toBe(true);
} finally {
nodeWs.close();
}