Suhruth Vuppala
4440226d52
test(discord): clarify and guardrail gateway proxy selection (#99126)
* feat(discord): add HTTP_PROXY/HTTPS_PROXY env fallback for gateway WebSocket
Discord Gateway WebSocket connections now honor HTTP_PROXY/HTTPS_PROXY
environment variables as fallback before direct connection, matching the
existing pattern from Discord REST API and WhatsApp.
This enables Discord channel deployment in Kubernetes/OpenShift environments
with network policy egress restrictions, removing the need for broad :443
egress as a workaround.
- Add createEnvProxyDiscordGatewayAgent() helper (mirrors rest-fetch.ts pattern)
- Try env proxy before direct HttpsAgent in createDiscordGatewayPlugin()
- Explicit channels.discord.proxy still overrides env proxy
- Add formatErrorMessage and resolveEnvHttpProxyAgentOptions imports
Fixes #98266
* test(discord): keep gateway proxy explicit
Signed-off-by: sallyom <somalley@redhat.com>
* fix(discord): allow explicit remote proxy URLs
---------
Signed-off-by: sallyom <somalley@redhat.com>
Co-authored-by: sallyom <somalley@redhat.com>
Co-authored-by: joshavant <830519+joshavant@users.noreply.github.com>
2026-07-02 20:27:19 -05:00
..
2026-07-01 19:49:38 -07:00
2026-06-29 18:25:15 -06:00
2026-05-11 18:44:54 +01:00
2026-07-01 21:11:56 -05:00
2026-07-02 07:48:50 +01:00
2026-07-02 20:27:19 -05:00
2026-06-26 18:33:19 +10:00
2026-07-01 15:52:39 -07:00
2026-07-02 13:50:25 -07:00
2026-05-06 08:49:27 -07:00
2026-05-26 20:51:00 +01:00
2026-07-01 21:11:56 -05:00
2026-07-02 02:46:28 +00:00
2026-05-26 02:21:58 +01:00
2026-07-01 03:58:21 -07:00
2026-07-01 21:11:56 -05:00
2026-07-02 16:44:40 -07:00
2026-05-28 21:00:24 -07:00
2026-07-02 12:49:23 -07:00
2026-07-02 14:15:25 -07:00
2026-07-01 11:46:06 -07:00
2026-07-01 20:03:59 +01:00
2026-07-01 09:59:37 -07:00
2026-06-30 19:42:12 -06:00
2026-05-29 09:45:14 +01:00
2026-06-22 17:17:35 +00:00
2026-07-01 21:11:56 -05:00
2026-07-01 11:16:49 -07:00
2026-07-01 16:24:16 -05:00
2026-05-27 19:24:04 +01:00
2026-06-23 23:59:47 -07:00
2026-05-27 19:24:04 +01:00
2026-05-02 04:42:55 +01:00
2026-07-02 12:50:45 +00:00
2026-06-16 12:13:24 +08:00
2026-07-02 12:42:31 -07:00
2026-07-01 15:52:39 -07:00
2026-05-27 19:24:04 +01:00
2026-06-22 17:02:16 +00:00
2026-06-04 08:01:15 -04:00
2026-05-05 21:14:55 -07:00
2026-05-27 19:24:04 +01:00
2026-05-05 17:38:21 +01:00
2026-06-24 16:36:48 -05:00
2026-06-24 17:32:08 -07:00
2026-05-17 21:19:05 +00:00