diff --git a/cli/testdata/coder_server_--help.golden b/cli/testdata/coder_server_--help.golden index bdbd5076e9..13900f7687 100644 --- a/cli/testdata/coder_server_--help.golden +++ b/cli/testdata/coder_server_--help.golden @@ -141,17 +141,17 @@ AI BRIDGE OPTIONS: AI BRIDGE PROXY OPTIONS: --aibridge-proxy-cert-file string, $CODER_AIBRIDGE_PROXY_CERT_FILE - Path to the CA certificate file for MITM. + Path to the CA certificate file for AI Bridge Proxy. --aibridge-proxy-enabled bool, $CODER_AIBRIDGE_PROXY_ENABLED (default: false) - Enable the AI MITM proxy for intercepting and decrypting AI provider - requests. + Enable the AI Bridge MITM Proxy for intercepting and decrypting AI + provider requests. --aibridge-proxy-key-file string, $CODER_AIBRIDGE_PROXY_KEY_FILE - Path to the CA private key file for MITM. + Path to the CA private key file for AI Bridge Proxy. --aibridge-proxy-listen-addr string, $CODER_AIBRIDGE_PROXY_LISTEN_ADDR (default: :8888) - The address the AI proxy will listen on. + The address the AI Bridge Proxy will listen on. CLIENT OPTIONS: These options change the behavior of how clients interact with the Coder. diff --git a/cli/testdata/server-config.yaml.golden b/cli/testdata/server-config.yaml.golden index 9181b9cb4c..63a28ff3b9 100644 --- a/cli/testdata/server-config.yaml.golden +++ b/cli/testdata/server-config.yaml.golden @@ -766,16 +766,17 @@ aibridge: # (default: 0, type: int) rateLimit: 0 aibridgeproxy: - # Enable the AI MITM proxy for intercepting and decrypting AI provider requests. + # Enable the AI Bridge MITM Proxy for intercepting and decrypting AI provider + # requests. # (default: false, type: bool) enabled: false - # The address the AI proxy will listen on. + # The address the AI Bridge Proxy will listen on. # (default: :8888, type: string) listen_addr: :8888 - # Path to the CA certificate file for MITM. + # Path to the CA certificate file for AI Bridge Proxy. # (default: , type: string) cert_file: "" - # Path to the CA private key file for MITM. + # Path to the CA private key file for AI Bridge Proxy. # (default: , type: string) key_file: "" # Configure data retention policies for various database tables. Retention diff --git a/codersdk/deployment.go b/codersdk/deployment.go index 1d9f2f0470..218cf94eca 100644 --- a/codersdk/deployment.go +++ b/codersdk/deployment.go @@ -3451,7 +3451,7 @@ Write out the current server config as YAML to stdout.`, // AI Bridge Proxy Options { Name: "AI Bridge Proxy Enabled", - Description: "Enable the AI MITM proxy for intercepting and decrypting AI provider requests.", + Description: "Enable the AI Bridge MITM Proxy for intercepting and decrypting AI provider requests.", Flag: "aibridge-proxy-enabled", Env: "CODER_AIBRIDGE_PROXY_ENABLED", Value: &c.AI.BridgeProxyConfig.Enabled, @@ -3461,7 +3461,7 @@ Write out the current server config as YAML to stdout.`, }, { Name: "AI Bridge Proxy Listen Address", - Description: "The address the AI proxy will listen on.", + Description: "The address the AI Bridge Proxy will listen on.", Flag: "aibridge-proxy-listen-addr", Env: "CODER_AIBRIDGE_PROXY_LISTEN_ADDR", Value: &c.AI.BridgeProxyConfig.ListenAddr, @@ -3471,7 +3471,7 @@ Write out the current server config as YAML to stdout.`, }, { Name: "AI Bridge Proxy Certificate File", - Description: "Path to the CA certificate file for MITM.", + Description: "Path to the CA certificate file for AI Bridge Proxy.", Flag: "aibridge-proxy-cert-file", Env: "CODER_AIBRIDGE_PROXY_CERT_FILE", Value: &c.AI.BridgeProxyConfig.CertFile, @@ -3481,7 +3481,7 @@ Write out the current server config as YAML to stdout.`, }, { Name: "AI Bridge Proxy Key File", - Description: "Path to the CA private key file for MITM.", + Description: "Path to the CA private key file for AI Bridge Proxy.", Flag: "aibridge-proxy-key-file", Env: "CODER_AIBRIDGE_PROXY_KEY_FILE", Value: &c.AI.BridgeProxyConfig.KeyFile, diff --git a/docs/reference/cli/server.md b/docs/reference/cli/server.md index 6a9d718295..d3ea11879d 100644 --- a/docs/reference/cli/server.md +++ b/docs/reference/cli/server.md @@ -1823,7 +1823,7 @@ Maximum number of AI Bridge requests per second per replica. Set to 0 to disable | YAML | aibridgeproxy.enabled | | Default | false | -Enable the AI MITM proxy for intercepting and decrypting AI provider requests. +Enable the AI Bridge MITM Proxy for intercepting and decrypting AI provider requests. ### --aibridge-proxy-listen-addr @@ -1834,7 +1834,7 @@ Enable the AI MITM proxy for intercepting and decrypting AI provider requests. | YAML | aibridgeproxy.listen_addr | | Default | :8888 | -The address the AI proxy will listen on. +The address the AI Bridge Proxy will listen on. ### --aibridge-proxy-cert-file @@ -1844,7 +1844,7 @@ The address the AI proxy will listen on. | Environment | $CODER_AIBRIDGE_PROXY_CERT_FILE | | YAML | aibridgeproxy.cert_file | -Path to the CA certificate file for MITM. +Path to the CA certificate file for AI Bridge Proxy. ### --aibridge-proxy-key-file @@ -1854,7 +1854,7 @@ Path to the CA certificate file for MITM. | Environment | $CODER_AIBRIDGE_PROXY_KEY_FILE | | YAML | aibridgeproxy.key_file | -Path to the CA private key file for MITM. +Path to the CA private key file for AI Bridge Proxy. ### --audit-logs-retention diff --git a/enterprise/aibridgeproxyd/aibridgeproxyd.go b/enterprise/aibridgeproxyd/aibridgeproxyd.go index 8db4bcc4e6..0d3169c7cd 100644 --- a/enterprise/aibridgeproxyd/aibridgeproxyd.go +++ b/enterprise/aibridgeproxyd/aibridgeproxyd.go @@ -25,7 +25,7 @@ type Server struct { httpServer *http.Server } -// Options configures the AI proxy server. +// Options configures the AI Bridge Proxy server. type Options struct { // ListenAddr is the address the proxy server will listen on. ListenAddr string @@ -36,7 +36,7 @@ type Options struct { } func New(ctx context.Context, logger slog.Logger, opts Options) (*Server, error) { - logger.Info(ctx, "initializing AI proxy server") + logger.Info(ctx, "initializing AI Bridge Proxy server") if opts.ListenAddr == "" { return nil, xerrors.New("listen address is required") @@ -72,7 +72,7 @@ func New(ctx context.Context, logger slog.Logger, opts Options) (*Server, error) } go func() { - logger.Info(ctx, "starting AI proxy", slog.F("addr", opts.ListenAddr)) + logger.Info(ctx, "starting AI Bridge Proxy", slog.F("addr", opts.ListenAddr)) if err := srv.httpServer.ListenAndServe(); err != nil && !errors.Is(err, http.ErrServerClosed) { logger.Error(ctx, "aibridgeproxyd server error", slog.Error(err)) } diff --git a/enterprise/cli/server.go b/enterprise/cli/server.go index 5aa7c82a0a..6950144a75 100644 --- a/enterprise/cli/server.go +++ b/enterprise/cli/server.go @@ -165,14 +165,14 @@ func (r *RootCmd) Server(_ func()) *serpent.Command { closers.Add(aibridgeDaemon) } - // In-memory AI proxy daemon + // In-memory AI Bridge Proxy daemon if options.DeploymentValues.AI.BridgeProxyConfig.Enabled.Value() { - aiProxyServer, err := newAIBridgeProxyDaemon(api) + aiBridgeProxyServer, err := newAIBridgeProxyDaemon(api) if err != nil { _ = closers.Close() return nil, nil, xerrors.Errorf("create aibridgeproxyd: %w", err) } - closers.Add(aiProxyServer) + closers.Add(aiBridgeProxyServer) } return api.AGPL, closers, nil diff --git a/enterprise/cli/testdata/coder_server_--help.golden b/enterprise/cli/testdata/coder_server_--help.golden index 7e56328fe8..7e09efc337 100644 --- a/enterprise/cli/testdata/coder_server_--help.golden +++ b/enterprise/cli/testdata/coder_server_--help.golden @@ -142,17 +142,17 @@ AI BRIDGE OPTIONS: AI BRIDGE PROXY OPTIONS: --aibridge-proxy-cert-file string, $CODER_AIBRIDGE_PROXY_CERT_FILE - Path to the CA certificate file for MITM. + Path to the CA certificate file for AI Bridge Proxy. --aibridge-proxy-enabled bool, $CODER_AIBRIDGE_PROXY_ENABLED (default: false) - Enable the AI MITM proxy for intercepting and decrypting AI provider - requests. + Enable the AI Bridge MITM Proxy for intercepting and decrypting AI + provider requests. --aibridge-proxy-key-file string, $CODER_AIBRIDGE_PROXY_KEY_FILE - Path to the CA private key file for MITM. + Path to the CA private key file for AI Bridge Proxy. --aibridge-proxy-listen-addr string, $CODER_AIBRIDGE_PROXY_LISTEN_ADDR (default: :8888) - The address the AI proxy will listen on. + The address the AI Bridge Proxy will listen on. CLIENT OPTIONS: These options change the behavior of how clients interact with the Coder.