gRPC

Server implementation

class paramiko_cloud.grpc_server.GRPCServer(signer_servicer: paramiko_cloud.protobuf.rpc_pb2_grpc.SignerServicer, bind_addr: str = '[::]', port: int = 50051, server_credentials: Optional[grpc.ServerCredentials] = None, max_workers: int = 10, shutdown_grace: Optional[int] = None)

Bases: object

A 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

Services

Client and server classes corresponding to protobuf-defined services.

class paramiko_cloud.protobuf.rpc_pb2_grpc.Signer

Bases: object

Missing associated documentation comment in .proto file.

static GetCertificateAuthority(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)
static SignCertificate(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)
class paramiko_cloud.protobuf.rpc_pb2_grpc.SignerServicer

Bases: object

Missing associated documentation comment in .proto file.

GetCertificateAuthority(request, context)

Missing associated documentation comment in .proto file.

SignCertificate(request, context)

Missing associated documentation comment in .proto file.

class paramiko_cloud.protobuf.rpc_pb2_grpc.SignerStub(channel)

Bases: object

Missing associated documentation comment in .proto file.

paramiko_cloud.protobuf.rpc_pb2_grpc.add_SignerServicer_to_server(servicer, server)

Protobuf messages

class paramiko_cloud.protobuf.csr_pb2.CSR

Bases: google.protobuf.pyext._message.CMessage, google.protobuf.message.Message

CriticalOption = <google.protobuf.internal.enum_type_wrapper.EnumTypeWrapper object>
class CriticalOptionValue

Bases: google.protobuf.pyext._message.CMessage, google.protobuf.message.Message

DESCRIPTOR = <google.protobuf.pyext._message.MessageDescriptor object>

The google.protobuf.descriptor.Descriptor for this message type.

type

Field ssh_cert.CSR.CriticalOptionValue.type

value

Field ssh_cert.CSR.CriticalOptionValue.value

DESCRIPTOR = <google.protobuf.pyext._message.MessageDescriptor object>

The google.protobuf.descriptor.Descriptor for this message type.

Extension = <google.protobuf.internal.enum_type_wrapper.EnumTypeWrapper object>
class ExtensionValue

Bases: google.protobuf.pyext._message.CMessage, google.protobuf.message.Message

DESCRIPTOR = <google.protobuf.pyext._message.MessageDescriptor object>

The google.protobuf.descriptor.Descriptor for this message type.

type

Field ssh_cert.CSR.ExtensionValue.type

value

Field ssh_cert.CSR.ExtensionValue.value

FORCE_COMMAND = 0
HOST = 1
NO_TOUCH_REQUIRED = 0
PERMIT_AGENT_FORWARDING = 2
PERMIT_PORT_FORWARDING = 3
PERMIT_PTY = 4
PERMIT_USER_RC = 5
PERMIT_X11_FORWARDING = 1
SOURCE_ADDRESS = 1
Type = <google.protobuf.internal.enum_type_wrapper.EnumTypeWrapper object>
USER = 0
criticalOptions

Field ssh_cert.CSR.criticalOptions

extensions

Field ssh_cert.CSR.extensions

keyId

Field ssh_cert.CSR.keyId

principals

Field ssh_cert.CSR.principals

publicKey

Field ssh_cert.CSR.publicKey

publicKeyType

Field ssh_cert.CSR.publicKeyType

serial

Field ssh_cert.CSR.serial

type

Field ssh_cert.CSR.type

validAfter

Field ssh_cert.CSR.validAfter

validBefore

Field ssh_cert.CSR.validBefore

class paramiko_cloud.protobuf.rpc_pb2.CloudCertificateSigningRequest

Bases: google.protobuf.pyext._message.CMessage, google.protobuf.message.Message

DESCRIPTOR = <google.protobuf.pyext._message.MessageDescriptor object>

The google.protobuf.descriptor.Descriptor for this message type.

kmsKeyId

Field ssh_cert.CloudCertificateSigningRequest.kmsKeyId

provider

Field ssh_cert.CloudCertificateSigningRequest.provider

signingRequestPayload

Field ssh_cert.CloudCertificateSigningRequest.signingRequestPayload

class paramiko_cloud.protobuf.rpc_pb2.CloudCertificateSigningResponse

Bases: google.protobuf.pyext._message.CMessage, google.protobuf.message.Message

DESCRIPTOR = <google.protobuf.pyext._message.MessageDescriptor object>

The google.protobuf.descriptor.Descriptor for this message type.

certificate

Field ssh_cert.CloudCertificateSigningResponse.certificate

certificateType

Field ssh_cert.CloudCertificateSigningResponse.certificateType