syntax = "proto3"; // [#proto-status: draft] package envoy.service.auth.v2; option go_package = "v2"; option java_generic_services = true; import "envoy/service/auth/v2/attribute_context.proto"; import "google/rpc/status.proto"; // A generic interface for performing authorization check on incoming // requests to a networked service. service Authorization { // Performs authorization check based on the attributes associated with the // incoming request, and returns status `OK` or not `OK`. rpc Check(CheckRequest) returns (CheckResponse); } message CheckRequest { // The request attributes. AttributeContext attributes = 1; } message CheckResponse { // Status `OK` allows the request. Any other status indicates the request should be denied. google.rpc.Status status = 1; }