gRPC¶
The gRPC helper owns server setup and lifecycle. Application code still owns the
SignerServicer implementation and signing policy.
- class paramiko_cloud.grpc_server.GRPCServer¶
Bases:
objectA gRPC server object that can be used to respond to signing requests
- Parameters:
signer_servicer – an object that can process the incoming requests
bind_addr – address to which the gRPC server should bind
port – the port on which the server should listen
server_credentials – server credentials, if a secure channel should be used
max_workers – maximum number of workers to use in the thread pool
- __init__(signer_servicer, bind_addr='[::]', port=50051, server_credentials=None, max_workers=10, shutdown_grace=None)¶
- Parameters:
signer_servicer (SignerServicer)
bind_addr (str)
port (int)
server_credentials (ServerCredentials | None)
max_workers (int)
shutdown_grace (int | None)
Generated Modules¶
The protobuf and gRPC modules are generated into paramiko_cloud.protobuf by
scripts/build_proto.py:
paramiko_cloud.protobuf.csr_pb2paramiko_cloud.protobuf.rpc_pb2paramiko_cloud.protobuf.rpc_pb2_grpc
They are not committed to the repository. Initialize the ssh-cert-proto
submodule and run the build script before importing them directly.