Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions packages/clients/src/api/lb/v1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ const unmarshalRouteMatch = (data: unknown) => {
)
}

return { sni: data.sni } as RouteMatch
return { hostHeader: data.host_header, sni: data.sni } as RouteMatch
}

export const unmarshalAcl = (data: unknown) => {
Expand Down Expand Up @@ -903,7 +903,16 @@ const marshalRouteMatch = (
request: RouteMatch,
defaults: DefaultValues,
): Record<string, unknown> => ({
sni: request.sni,
...resolveOneOf([
{
param: 'sni',
value: request.sni,
},
{
param: 'host_header',
value: request.hostHeader,
},
]),
})

const marshalSubscriberEmailConfig = (
Expand Down
11 changes: 10 additions & 1 deletion packages/clients/src/api/lb/v1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -728,9 +728,18 @@ export interface Route {
export interface RouteMatch {
/**
* Server Name Indication TLS extension (SNI) field from an incoming
* connection made via an SSL/TLS transport layer
* connection made via an SSL/TLS transport layer.
*
* One-of ('matchType'): at most one of 'sni', 'hostHeader' could be set.
*/
sni?: string
/**
* The Host request header specifies the host of the server to which the
* request is being sent.
*
* One-of ('matchType'): at most one of 'sni', 'hostHeader' could be set.
*/
hostHeader?: string
}

/** Set acls response */
Expand Down