Skip to content

Commit

Permalink
feat: add http support to authz filter
Browse files Browse the repository at this point in the history
  • Loading branch information
ssttehrani committed Jan 28, 2024
1 parent 8af2735 commit a40d9c9
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apis/projectcontour/v1alpha1/extensionservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ type ExtensionServiceSpec struct {
// Values may be h2 or h2c. If omitted, protocol-selection falls back on Service annotations.
//
// +optional
// +kubebuilder:validation:Enum=h1,h2;h2c
// +kubebuilder:validation:Enum=h1;h2;h2c
Protocol *string `json:"protocol,omitempty"`

// The policy for load balancing GRPC service requests. Note that the
Expand Down
46 changes: 46 additions & 0 deletions examples/contour/01-crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,21 @@ spec:
timeout.
pattern: ^(((\d*(\.\d*)?h)|(\d*(\.\d*)?m)|(\d*(\.\d*)?s)|(\d*(\.\d*)?ms)|(\d*(\.\d*)?us)|(\d*(\.\d*)?µs)|(\d*(\.\d*)?ns))+|infinity|infinite)$
type: string
serverURI:
description: ServerURI sets the URI of the external HTTP authorization
server to which authorization requests must be sent. Only required
for http services.
type: string
serviceAPIType:
default: grpc
description: ServiceAPIType defines the external authorization
service API type. It indicates the protocol implemented by the
external server, specifying whether it's a raw HTTP authorization
server or a gRPC authorization server.
enum:
- http
- grpc
type: string
withRequestBody:
description: WithRequestBody specifies configuration for sending
the client request's body to authorization server.
Expand Down Expand Up @@ -4300,6 +4315,21 @@ spec:
no timeout.
pattern: ^(((\d*(\.\d*)?h)|(\d*(\.\d*)?m)|(\d*(\.\d*)?s)|(\d*(\.\d*)?ms)|(\d*(\.\d*)?us)|(\d*(\.\d*)?µs)|(\d*(\.\d*)?ns))+|infinity|infinite)$
type: string
serverURI:
description: ServerURI sets the URI of the external HTTP authorization
server to which authorization requests must be sent. Only
required for http services.
type: string
serviceAPIType:
default: grpc
description: ServiceAPIType defines the external authorization
service API type. It indicates the protocol implemented
by the external server, specifying whether it's a raw HTTP
authorization server or a gRPC authorization server.
enum:
- http
- grpc
type: string
withRequestBody:
description: WithRequestBody specifies configuration for sending
the client request's body to authorization server.
Expand Down Expand Up @@ -4961,6 +4991,7 @@ spec:
used to reach this Service. Values may be h2 or h2c. If omitted,
protocol-selection falls back on Service annotations.
enum:
- h1
- h2
- h2c
type: string
Expand Down Expand Up @@ -7224,6 +7255,21 @@ spec:
no timeout.
pattern: ^(((\d*(\.\d*)?h)|(\d*(\.\d*)?m)|(\d*(\.\d*)?s)|(\d*(\.\d*)?ms)|(\d*(\.\d*)?us)|(\d*(\.\d*)?µs)|(\d*(\.\d*)?ns))+|infinity|infinite)$
type: string
serverURI:
description: ServerURI sets the URI of the external HTTP authorization
server to which authorization requests must be sent. Only
required for http services.
type: string
serviceAPIType:
default: grpc
description: ServiceAPIType defines the external authorization
service API type. It indicates the protocol implemented
by the external server, specifying whether it's a raw HTTP
authorization server or a gRPC authorization server.
enum:
- http
- grpc
type: string
withRequestBody:
description: WithRequestBody specifies configuration for sending
the client request's body to authorization server.
Expand Down

0 comments on commit a40d9c9

Please sign in to comment.