Skip to content

Commit

Permalink
Only allow header validation on gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishb-solo committed Jun 20, 2024
1 parent 9c94b4f commit ba0aff3
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 217 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions install/helm/gloo/crds/gateway.solo.io_v1_RouteOption.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -386,11 +386,6 @@ spec:
type: string
type: array
type: object
headerValidationSettings:
properties:
allowCustomHeaderMethods:
type: boolean
type: object
hostRewrite:
type: string
hostRewriteHeader:
Expand Down
5 changes: 0 additions & 5 deletions install/helm/gloo/crds/gateway.solo.io_v1_RouteTable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -496,11 +496,6 @@ spec:
type: string
type: array
type: object
headerValidationSettings:
properties:
allowCustomHeaderMethods:
type: boolean
type: object
hostRewrite:
type: string
hostRewriteHeader:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,11 +356,6 @@ spec:
type: string
type: array
type: object
headerValidationSettings:
properties:
allowCustomHeaderMethods:
type: boolean
type: object
includeAttemptCountInResponse:
nullable: true
type: boolean
Expand Down
10 changes: 0 additions & 10 deletions install/helm/gloo/crds/gateway.solo.io_v1_VirtualService.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -446,11 +446,6 @@ spec:
type: string
type: array
type: object
headerValidationSettings:
properties:
allowCustomHeaderMethods:
type: boolean
type: object
includeAttemptCountInResponse:
nullable: true
type: boolean
Expand Down Expand Up @@ -3334,11 +3329,6 @@ spec:
type: string
type: array
type: object
headerValidationSettings:
properties:
allowCustomHeaderMethods:
type: boolean
type: object
hostRewrite:
type: string
hostRewriteHeader:
Expand Down
13 changes: 0 additions & 13 deletions projects/gloo/api/v1/options.proto
Original file line number Diff line number Diff line change
Expand Up @@ -380,12 +380,6 @@ message VirtualHostOptions {
// Enterprise-only: External Processing filter settings for the virtual host. This can be used to
// override certain HttpListenerOptions settings, and can be overridden by RouteOptions settings.
extproc.options.gloo.solo.io.RouteSettings ext_proc = 30;

// Whether custom HTTP methods should be allowed. Defaults to false (custom
// HTTP methods are not allowed). The list of default-allowed HTTP methods
// can be found here:
// https://github.com/envoyproxy/envoy/blob/2970ddbd4ade787dd51dfbe605ae2e8c5d8ffcf7/source/common/http/http1/balsa_parser.cc#L54
header_validation.options.gloo.solo.io.HeaderValidationSettings header_validation_settings = 31;
}

// Optional, feature-specific configuration that lives on routes.
Expand Down Expand Up @@ -590,13 +584,6 @@ message RouteOptions {
// Enterprise-only: External Processing filter settings for the route. This can be used to
// override certain HttpListenerOptions or VirtualHostOptions settings.
extproc.options.gloo.solo.io.RouteSettings ext_proc = 30;

// Header Validation Settings. These can be used to configure Gloo with
// rules to customize whether requests should be accepted or rejected,
// based on the contents of the HTTP header.
// TODO: include some kind of warning that the behavior of these fields may
// change when we update Envoy to a new version.
header_validation.options.gloo.solo.io.HeaderValidationSettings header_validation_settings = 31;
}

// Configuration for Destinations that are tied to the UpstreamSpec or ServiceSpec on that destination
Expand Down
12 changes: 0 additions & 12 deletions projects/gloo/pkg/api/v1/options.pb.clone.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 0 additions & 20 deletions projects/gloo/pkg/api/v1/options.pb.equal.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ba0aff3

Please sign in to comment.