fix(channels): authenticate gateway command requests (#2742)

This commit is contained in:
Eilen Shin
2026-05-06 15:27:34 +08:00
committed by GitHub
parent 4ead2c6b19
commit 1336872b15
2 changed files with 46 additions and 1 deletions
+5 -1
View File
@@ -997,7 +997,11 @@ class ChannelManager:
try:
async with httpx.AsyncClient() as http:
resp = await http.get(f"{self._gateway_url}{path}", timeout=10)
resp = await http.get(
f"{self._gateway_url}{path}",
timeout=10,
headers=create_internal_auth_headers(),
)
resp.raise_for_status()
data = resp.json()
except Exception: