API changes for multi-domain login redirects (#5565)

Add a depends_on field to the Route proto and update the to/from 
conversion methods.
This commit is contained in:
Kenneth Jenkins 2025-04-11 14:56:16 -07:00 committed by GitHub
parent 4af9150b39
commit 62addcf2a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 729 additions and 716 deletions

View file

@ -300,6 +300,7 @@ func NewPolicyFromProto(pb *configpb.Route) (*Policy, error) {
AllowWebsockets: pb.GetAllowWebsockets(),
CORSAllowPreflight: pb.GetCorsAllowPreflight(),
Description: pb.GetDescription(),
DependsOn: pb.GetDependsOn(),
EnableGoogleCloudServerlessAuthentication: pb.GetEnableGoogleCloudServerlessAuthentication(),
From: pb.GetFrom(),
HostPathRegexRewritePattern: pb.GetHostPathRegexRewritePattern(),
@ -458,6 +459,7 @@ func (p *Policy) ToProto() (*configpb.Route, error) {
AllowWebsockets: p.AllowWebsockets,
CorsAllowPreflight: p.CORSAllowPreflight,
Description: p.Description,
DependsOn: p.DependsOn,
EnableGoogleCloudServerlessAuthentication: p.EnableGoogleCloudServerlessAuthentication,
EnvoyOpts: p.EnvoyOpts,
From: p.From,

File diff suppressed because it is too large Load diff

View file

@ -52,7 +52,7 @@ enum BearerTokenFormat {
BEARER_TOKEN_FORMAT_IDP_IDENTITY_TOKEN = 3;
}
// Next ID: 71.
// Next ID: 72.
message Route {
message StringList { repeated string values = 1; }
@ -126,6 +126,7 @@ message Route {
optional IssuerFormat jwt_issuer_format = 65;
repeated string jwt_groups_filter = 66;
optional BearerTokenFormat bearer_token_format = 70;
repeated string depends_on = 71;
envoy.config.cluster.v3.Cluster envoy_opts = 36;