mirror of https://github.com/grpc/grpc-go.git
30 lines
603 B
JSON
30 lines
603 B
JSON
{
|
|
"name": "authz",
|
|
"allow_rules": [
|
|
{
|
|
"name": "allow_UnaryEcho",
|
|
"request": {
|
|
"paths": ["/grpc.examples.echo.Echo/UnaryEcho"],
|
|
"headers": [
|
|
{
|
|
"key": "UNARY_ECHO:RW",
|
|
"values": ["true"]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "allow_BidirectionalStreamingEcho",
|
|
"request": {
|
|
"paths": ["/grpc.examples.echo.Echo/BidirectionalStreamingEcho"],
|
|
"headers": [
|
|
{
|
|
"key": "STREAM_ECHO:RW",
|
|
"values": ["true"]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"deny_rules": []
|
|
} |