From 980bd76b0466d112cc1c5cdd918618993d53b061 Mon Sep 17 00:00:00 2001 From: GuanLuo <41310872+GuanLuo@users.noreply.github.com> Date: Tue, 21 Mar 2023 10:27:29 -0700 Subject: [PATCH] Add GRPC option for restricted protocol access (#5397) * [WIP] simple example * WIP * Implement GRPC restricted protocol option * Add GRPC restricted protocol test. Fix bug * Add documentation for endpoint configuration * Add missing protocol * Change option documentation based on change in detail * Update command line option to restrict protocol access * minor fix * Update doc * Address comment * fix up * Address comment --- .../inference_protocols.md | 52 +- docs/protocol/README.md | 12 +- qa/L0_grpc/python_unit_test.py | 154 ++++++ qa/L0_grpc/test.sh | 39 ++ src/command_line_parser.cc | 95 +++- src/command_line_parser.h | 7 + src/grpc_server.cc | 473 ++++++++++++------ src/grpc_server.h | 12 + 8 files changed, 688 insertions(+), 156 deletions(-) create mode 100644 qa/L0_grpc/python_unit_test.py diff --git a/docs/customization_guide/inference_protocols.md b/docs/customization_guide/inference_protocols.md index 03b9d31e68..3c67371d1f 100644 --- a/docs/customization_guide/inference_protocols.md +++ b/docs/customization_guide/inference_protocols.md @@ -1,5 +1,5 @@