Skip to content

Commit 3a0c8a5

Browse files
authored
Add hostname override to AI upstream customHost setting (#10640)
Co-authored-by: changelog-bot <changelog-bot>
1 parent c03f3c5 commit 3a0c8a5

File tree

9 files changed

+531
-424
lines changed

9 files changed

+531
-424
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
changelog:
2+
- type: NEW_FEATURE
3+
issueLink: https://github.com/solo-io/solo-projects/issues/7831
4+
resolvesIssue: false
5+
description: >
6+
Added optional `hostname` to the AI Upstream CustomHost setting to override SNI and host header value

docs/content/reference/api/github.com/solo-io/gloo/projects/gloo/api/v1/enterprise/options/ai/ai.proto.sk.md

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

install/helm/gloo/crds/gloo.solo.io_v1_Upstream.yaml

+18
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ spec:
4747
properties:
4848
host:
4949
type: string
50+
hostname:
51+
nullable: true
52+
type: string
5053
port:
5154
maximum: 4294967295
5255
minimum: 0
@@ -121,6 +124,9 @@ spec:
121124
properties:
122125
host:
123126
type: string
127+
hostname:
128+
nullable: true
129+
type: string
124130
port:
125131
maximum: 4294967295
126132
minimum: 0
@@ -157,6 +163,9 @@ spec:
157163
properties:
158164
host:
159165
type: string
166+
hostname:
167+
nullable: true
168+
type: string
160169
port:
161170
maximum: 4294967295
162171
minimum: 0
@@ -231,6 +240,9 @@ spec:
231240
properties:
232241
host:
233242
type: string
243+
hostname:
244+
nullable: true
245+
type: string
234246
port:
235247
maximum: 4294967295
236248
minimum: 0
@@ -259,6 +271,9 @@ spec:
259271
properties:
260272
host:
261273
type: string
274+
hostname:
275+
nullable: true
276+
type: string
262277
port:
263278
maximum: 4294967295
264279
minimum: 0
@@ -322,6 +337,9 @@ spec:
322337
properties:
323338
host:
324339
type: string
340+
hostname:
341+
nullable: true
342+
type: string
325343
port:
326344
maximum: 4294967295
327345
minimum: 0

projects/gloo/api/v1/enterprise/options/ai/ai.proto

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ option go_package = "github.com/solo-io/gloo/projects/gloo/pkg/api/v1/enterprise
44

55
import "github.com/solo-io/solo-kit/api/v1/ref.proto";
66
import "google/protobuf/struct.proto";
7+
import "google/protobuf/wrappers.proto";
78
import "extproto/ext.proto";
89
option (extproto.equal_all) = true;
910
option (extproto.hash_all) = true;
@@ -60,10 +61,13 @@ message UpstreamSpec {
6061
// Send requests to a custom host and port, such as to proxy the request,
6162
// or to use a different backend that is API-compliant with the upstream version.
6263
message CustomHost {
63-
// Custom host to send the traffic requests to.
64+
// Custom host or IP address to send the traffic requests to.
6465
string host = 1;
6566
// Custom port to send the traffic requests to.
6667
uint32 port = 2;
68+
// Optional: hostname used to set the SNI (if is secure connection) and the host request header.
69+
// If hostname is not set, host will be used instead
70+
google.protobuf.StringValue hostname = 3;
6771
}
6872

6973
// Settings for the [OpenAI](https://platform.openai.com/docs/overview) LLM provider.

projects/gloo/pkg/api/v1/enterprise/options/ai/ai.pb.clone.go

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

projects/gloo/pkg/api/v1/enterprise/options/ai/ai.pb.equal.go

+10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)