-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
…#15520) * Create ext authz http fuzzer with dynamic metadata Signed-off-by: Asra Ali <asraa@google.com>
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
syntax = "proto3"; | ||
package envoy.extensions.filters.http.ext_authz; | ||
|
||
import "envoy/extensions/filters/http/ext_authz/v3/ext_authz.proto"; | ||
import "test/fuzz/common.proto"; | ||
import "envoy/config/core/v3/base.proto"; | ||
import "google/protobuf/empty.proto"; | ||
import "validate/validate.proto"; | ||
|
||
// We only fuzz a single request per iteration. | ||
message ExtAuthzTestCase { | ||
enum AuthResult { | ||
// Possible results for a check call. Taken from | ||
// https://github.com/envoyproxy/envoy/blob/945b5833f094dee31d2971cee8d40553bb0fe714/source/extensions/filters/common/ext_authz/ext_authz.h#L65 | ||
OK = 0; | ||
DENIED = 1; | ||
ERROR = 2; | ||
} | ||
|
||
envoy.extensions.filters.http.ext_authz.v3.ExtAuthz config = 1 | ||
[(validate.rules).message = {required: true}]; | ||
// HTTP request data. | ||
test.fuzz.HttpData request_data = 2 [(validate.rules).message = {required: true}]; | ||
// Set default auth check result. | ||
AuthResult result = 3; | ||
// Filter metadata. | ||
envoy.config.core.v3.Metadata filter_metadata = 4; | ||
// TODO: Add headers and data to ExtAuthz::Response and check that the request headers and data | ||
// were updated. | ||
} |