forked from envoyproxy/data-plane-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
authz_filter: configuration to support Ambassador authorization flow (e…
…nvoyproxy#563) This PR includes the necessary modifications in support of envoyproxy/envoy#2828. Added additional configuration to ext_authz.proto so that the filter is able to call an HTTP/1.1 authorization service. In external_auth.proto, added a nested message to CheckResponse that allows the authorization service to pass additional HTTP response attributes back to the authz filter. Signed-off-by: Gabriel <[email protected]>
- Loading branch information
Showing
8 changed files
with
68 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
envoy/config/filter/http/ext_authz/v2alpha/ext_authz.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
syntax = "proto3"; | ||
|
||
package envoy.config.filter.http.ext_authz.v2alpha; | ||
option go_package = "v2alpha"; | ||
|
||
import "envoy/api/v2/core/grpc_service.proto"; | ||
import "envoy/api/v2/core/http_uri.proto"; | ||
|
||
// The external authorization HTTP service configuration. | ||
message HttpService { | ||
// Sets the HTTP server URI which the authorization requests must be sent to. | ||
envoy.api.v2.core.HttpUri server_uri = 1; | ||
|
||
// Sets an optional prefix to the value of authorization request header `path`. | ||
string path_prefix = 2; | ||
} | ||
|
||
message ExtAuthz { | ||
|
||
oneof services { | ||
// The external authorization gRPC service configuration. | ||
envoy.api.v2.core.GrpcService grpc_service = 1; | ||
|
||
// The external authorization HTTP service configuration. | ||
HttpService http_service = 3; | ||
} | ||
|
||
// The filter's behaviour in case the external authorization service does | ||
// not respond back. If set to true then in case of failure to get a | ||
// response back from the authorization service or getting a response that | ||
// is NOT denied then traffic will be permitted. | ||
// Defaults to false. | ||
bool failure_mode_allow = 2; | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters