feat: add TLS listener support to aibridgeproxyd (#22411)

## Description

Adds optional TLS support for the AI Bridge Proxy listener. When TLS cert and key files are provided, the proxy serves over HTTPS instead of plain HTTP.

## Changes

* New configuration options to enable TLS on the proxy listener 
* Wraps the TCP listener in `tls.NewListener` when configured
* Tests for validation errors, invalid files, and full integration (tunneled + MITM) through a TLS listener

Note: Documentation for TLS listener setup and client configuration will be handled in a follow-up PR.
Related to: https://github.com/coder/internal/issues/1335
This commit is contained in:
Susana Ferreira
2026-03-05 09:19:34 +00:00
committed by GitHub
parent 7bcd9f6de8
commit 21c91cebaa
13 changed files with 346 additions and 7 deletions
+6
View File
@@ -12576,6 +12576,12 @@ const docTemplate = `{
"listen_addr": {
"type": "string"
},
"tls_cert_file": {
"type": "string"
},
"tls_key_file": {
"type": "string"
},
"upstream_proxy": {
"type": "string"
},
+6
View File
@@ -11184,6 +11184,12 @@
"listen_addr": {
"type": "string"
},
"tls_cert_file": {
"type": "string"
},
"tls_key_file": {
"type": "string"
},
"upstream_proxy": {
"type": "string"
},