mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-06 10:21:05 +02:00
remove deprecated field
This commit is contained in:
parent
46ebdb858c
commit
e98d5d763f
3 changed files with 597 additions and 617 deletions
|
@ -273,11 +273,6 @@ func NewPolicyFromProto(pb *configpb.Route) (*Policy, error) {
|
||||||
IDPClientSecret: pb.GetIdpClientSecret(),
|
IDPClientSecret: pb.GetIdpClientSecret(),
|
||||||
ShowErrorDetails: pb.GetShowErrorDetails(),
|
ShowErrorDetails: pb.GetShowErrorDetails(),
|
||||||
}
|
}
|
||||||
if pb.DeprecatedPassIdentityHeaders {
|
|
||||||
v := true
|
|
||||||
p.PassIdentityHeaders = &v
|
|
||||||
}
|
|
||||||
|
|
||||||
if pb.Redirect.IsSet() {
|
if pb.Redirect.IsSet() {
|
||||||
p.Redirect = &PolicyRedirect{
|
p.Redirect = &PolicyRedirect{
|
||||||
HTTPSRedirect: pb.Redirect.HttpsRedirect,
|
HTTPSRedirect: pb.Redirect.HttpsRedirect,
|
||||||
|
@ -393,9 +388,6 @@ func (p *Policy) ToProto() (*configpb.Route, error) {
|
||||||
Policies: sps,
|
Policies: sps,
|
||||||
SetResponseHeaders: p.SetResponseHeaders,
|
SetResponseHeaders: p.SetResponseHeaders,
|
||||||
}
|
}
|
||||||
if p.PassIdentityHeaders != nil && *p.PassIdentityHeaders {
|
|
||||||
pb.DeprecatedPassIdentityHeaders = true
|
|
||||||
}
|
|
||||||
if p.IDPClientID != "" {
|
if p.IDPClientID != "" {
|
||||||
pb.IdpClientId = proto.String(p.IDPClientID)
|
pb.IdpClientId = proto.String(p.IDPClientID)
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -33,6 +33,7 @@ message RouteRedirect {
|
||||||
optional bool strip_query = 8;
|
optional bool strip_query = 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Next ID: 62.
|
||||||
message Route {
|
message Route {
|
||||||
string name = 1;
|
string name = 1;
|
||||||
|
|
||||||
|
@ -94,8 +95,7 @@ message Route {
|
||||||
// AuthorizationHeaderMode set_authorization_header = 54;
|
// AuthorizationHeaderMode set_authorization_header = 54;
|
||||||
|
|
||||||
bool preserve_host_header = 24;
|
bool preserve_host_header = 24;
|
||||||
bool deprecated_pass_identity_headers = 25;
|
optional bool pass_identity_headers = 25;
|
||||||
optional bool pass_identity_headers = 62;
|
|
||||||
|
|
||||||
string kubernetes_service_account_token = 26;
|
string kubernetes_service_account_token = 26;
|
||||||
bool enable_google_cloud_serverless_authentication = 42;
|
bool enable_google_cloud_serverless_authentication = 42;
|
||||||
|
@ -128,7 +128,7 @@ message Policy {
|
||||||
string remediation = 9;
|
string remediation = 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Next ID: 117.
|
// Next ID: 118.
|
||||||
message Settings {
|
message Settings {
|
||||||
message Certificate {
|
message Certificate {
|
||||||
bytes cert_bytes = 3;
|
bytes cert_bytes = 3;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue