remove deprecated field

This commit is contained in:
Caleb Doxsey 2023-11-08 11:27:25 -07:00
parent 46ebdb858c
commit e98d5d763f
3 changed files with 597 additions and 617 deletions

View file

@ -273,11 +273,6 @@ func NewPolicyFromProto(pb *configpb.Route) (*Policy, error) {
IDPClientSecret: pb.GetIdpClientSecret(),
ShowErrorDetails: pb.GetShowErrorDetails(),
}
if pb.DeprecatedPassIdentityHeaders {
v := true
p.PassIdentityHeaders = &v
}
if pb.Redirect.IsSet() {
p.Redirect = &PolicyRedirect{
HTTPSRedirect: pb.Redirect.HttpsRedirect,
@ -393,9 +388,6 @@ func (p *Policy) ToProto() (*configpb.Route, error) {
Policies: sps,
SetResponseHeaders: p.SetResponseHeaders,
}
if p.PassIdentityHeaders != nil && *p.PassIdentityHeaders {
pb.DeprecatedPassIdentityHeaders = true
}
if p.IDPClientID != "" {
pb.IdpClientId = proto.String(p.IDPClientID)
}

File diff suppressed because it is too large Load diff

View file

@ -33,6 +33,7 @@ message RouteRedirect {
optional bool strip_query = 8;
}
// Next ID: 62.
message Route {
string name = 1;
@ -94,8 +95,7 @@ message Route {
// AuthorizationHeaderMode set_authorization_header = 54;
bool preserve_host_header = 24;
bool deprecated_pass_identity_headers = 25;
optional bool pass_identity_headers = 62;
optional bool pass_identity_headers = 25;
string kubernetes_service_account_token = 26;
bool enable_google_cloud_serverless_authentication = 42;
@ -128,7 +128,7 @@ message Policy {
string remediation = 9;
}
// Next ID: 117.
// Next ID: 118.
message Settings {
message Certificate {
bytes cert_bytes = 3;