Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions interceptor/_gen/datamodel_pb2.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Generated by interceptor/regen.sh from OpenShell's protos. Do not edit.
# source-tag v0.1.2
# source-tag v0.1.5
# sha256 e50bd875a760f54b80269c65ee47984cae424fb623b7f59551ba62550c23e70b datamodel.proto
# sha256 60f28ee9dc846d41152f4db7e82a439c78d024786efaceb464900d1d1ad129ad extension.proto
# sha256 931411aaae512b41117039f35b8c8727c8aefa87e898879e8b6f277c0149f79d gateway_interceptor.proto
# sha256 2e31d0faca652b91729f88bd4053447e5d162e74de7dbacdcc06327ed82e5b95 openshell.proto
# sha256 10c8a99b505047f759951285fdae6068afd267ef672d00a65385a91ee8d027ee options.proto
# sha256 ed3d2650c8d1c4cbb653259c6055adba2dba8a51498ab6a1b2cfc339997ab2b9 sandbox.proto
# sha256 905df827e50abb54ca1d2745341f38ad769cb3453c8c7301182590525f1da86f gateway_interceptor.proto
# sha256 ea574b501987611ea637ba249013584fc566e24ad9a3db185a217158caee2927 openshell.proto
# sha256 b0e03562c92777978f6f3e0f46260cdb82f1d88d1c1837eab0e53cdd0f195eb7 options.proto
# sha256 93536b8fa5c1e253d0d3aef031fde273b1bd13ce819192b0a7727fa9f28d55fb sandbox.proto

# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
Expand Down
10 changes: 5 additions & 5 deletions interceptor/_gen/datamodel_pb2_grpc.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Generated by interceptor/regen.sh from OpenShell's protos. Do not edit.
# source-tag v0.1.2
# source-tag v0.1.5
# sha256 e50bd875a760f54b80269c65ee47984cae424fb623b7f59551ba62550c23e70b datamodel.proto
# sha256 60f28ee9dc846d41152f4db7e82a439c78d024786efaceb464900d1d1ad129ad extension.proto
# sha256 931411aaae512b41117039f35b8c8727c8aefa87e898879e8b6f277c0149f79d gateway_interceptor.proto
# sha256 2e31d0faca652b91729f88bd4053447e5d162e74de7dbacdcc06327ed82e5b95 openshell.proto
# sha256 10c8a99b505047f759951285fdae6068afd267ef672d00a65385a91ee8d027ee options.proto
# sha256 ed3d2650c8d1c4cbb653259c6055adba2dba8a51498ab6a1b2cfc339997ab2b9 sandbox.proto
# sha256 905df827e50abb54ca1d2745341f38ad769cb3453c8c7301182590525f1da86f gateway_interceptor.proto
# sha256 ea574b501987611ea637ba249013584fc566e24ad9a3db185a217158caee2927 openshell.proto
# sha256 b0e03562c92777978f6f3e0f46260cdb82f1d88d1c1837eab0e53cdd0f195eb7 options.proto
# sha256 93536b8fa5c1e253d0d3aef031fde273b1bd13ce819192b0a7727fa9f28d55fb sandbox.proto

# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
Expand Down
10 changes: 5 additions & 5 deletions interceptor/_gen/extension_pb2.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Generated by interceptor/regen.sh from OpenShell's protos. Do not edit.
# source-tag v0.1.2
# source-tag v0.1.5
# sha256 e50bd875a760f54b80269c65ee47984cae424fb623b7f59551ba62550c23e70b datamodel.proto
# sha256 60f28ee9dc846d41152f4db7e82a439c78d024786efaceb464900d1d1ad129ad extension.proto
# sha256 931411aaae512b41117039f35b8c8727c8aefa87e898879e8b6f277c0149f79d gateway_interceptor.proto
# sha256 2e31d0faca652b91729f88bd4053447e5d162e74de7dbacdcc06327ed82e5b95 openshell.proto
# sha256 10c8a99b505047f759951285fdae6068afd267ef672d00a65385a91ee8d027ee options.proto
# sha256 ed3d2650c8d1c4cbb653259c6055adba2dba8a51498ab6a1b2cfc339997ab2b9 sandbox.proto
# sha256 905df827e50abb54ca1d2745341f38ad769cb3453c8c7301182590525f1da86f gateway_interceptor.proto
# sha256 ea574b501987611ea637ba249013584fc566e24ad9a3db185a217158caee2927 openshell.proto
# sha256 b0e03562c92777978f6f3e0f46260cdb82f1d88d1c1837eab0e53cdd0f195eb7 options.proto
# sha256 93536b8fa5c1e253d0d3aef031fde273b1bd13ce819192b0a7727fa9f28d55fb sandbox.proto

# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
Expand Down
10 changes: 5 additions & 5 deletions interceptor/_gen/extension_pb2_grpc.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Generated by interceptor/regen.sh from OpenShell's protos. Do not edit.
# source-tag v0.1.2
# source-tag v0.1.5
# sha256 e50bd875a760f54b80269c65ee47984cae424fb623b7f59551ba62550c23e70b datamodel.proto
# sha256 60f28ee9dc846d41152f4db7e82a439c78d024786efaceb464900d1d1ad129ad extension.proto
# sha256 931411aaae512b41117039f35b8c8727c8aefa87e898879e8b6f277c0149f79d gateway_interceptor.proto
# sha256 2e31d0faca652b91729f88bd4053447e5d162e74de7dbacdcc06327ed82e5b95 openshell.proto
# sha256 10c8a99b505047f759951285fdae6068afd267ef672d00a65385a91ee8d027ee options.proto
# sha256 ed3d2650c8d1c4cbb653259c6055adba2dba8a51498ab6a1b2cfc339997ab2b9 sandbox.proto
# sha256 905df827e50abb54ca1d2745341f38ad769cb3453c8c7301182590525f1da86f gateway_interceptor.proto
# sha256 ea574b501987611ea637ba249013584fc566e24ad9a3db185a217158caee2927 openshell.proto
# sha256 b0e03562c92777978f6f3e0f46260cdb82f1d88d1c1837eab0e53cdd0f195eb7 options.proto
# sha256 93536b8fa5c1e253d0d3aef031fde273b1bd13ce819192b0a7727fa9f28d55fb sandbox.proto

# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
Expand Down
10 changes: 5 additions & 5 deletions interceptor/_gen/gateway_interceptor_pb2.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Generated by interceptor/regen.sh from OpenShell's protos. Do not edit.
# source-tag v0.1.2
# source-tag v0.1.5
# sha256 e50bd875a760f54b80269c65ee47984cae424fb623b7f59551ba62550c23e70b datamodel.proto
# sha256 60f28ee9dc846d41152f4db7e82a439c78d024786efaceb464900d1d1ad129ad extension.proto
# sha256 931411aaae512b41117039f35b8c8727c8aefa87e898879e8b6f277c0149f79d gateway_interceptor.proto
# sha256 2e31d0faca652b91729f88bd4053447e5d162e74de7dbacdcc06327ed82e5b95 openshell.proto
# sha256 10c8a99b505047f759951285fdae6068afd267ef672d00a65385a91ee8d027ee options.proto
# sha256 ed3d2650c8d1c4cbb653259c6055adba2dba8a51498ab6a1b2cfc339997ab2b9 sandbox.proto
# sha256 905df827e50abb54ca1d2745341f38ad769cb3453c8c7301182590525f1da86f gateway_interceptor.proto
# sha256 ea574b501987611ea637ba249013584fc566e24ad9a3db185a217158caee2927 openshell.proto
# sha256 b0e03562c92777978f6f3e0f46260cdb82f1d88d1c1837eab0e53cdd0f195eb7 options.proto
# sha256 93536b8fa5c1e253d0d3aef031fde273b1bd13ce819192b0a7727fa9f28d55fb sandbox.proto

# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
Expand Down
10 changes: 5 additions & 5 deletions interceptor/_gen/gateway_interceptor_pb2_grpc.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Generated by interceptor/regen.sh from OpenShell's protos. Do not edit.
# source-tag v0.1.2
# source-tag v0.1.5
# sha256 e50bd875a760f54b80269c65ee47984cae424fb623b7f59551ba62550c23e70b datamodel.proto
# sha256 60f28ee9dc846d41152f4db7e82a439c78d024786efaceb464900d1d1ad129ad extension.proto
# sha256 931411aaae512b41117039f35b8c8727c8aefa87e898879e8b6f277c0149f79d gateway_interceptor.proto
# sha256 2e31d0faca652b91729f88bd4053447e5d162e74de7dbacdcc06327ed82e5b95 openshell.proto
# sha256 10c8a99b505047f759951285fdae6068afd267ef672d00a65385a91ee8d027ee options.proto
# sha256 ed3d2650c8d1c4cbb653259c6055adba2dba8a51498ab6a1b2cfc339997ab2b9 sandbox.proto
# sha256 905df827e50abb54ca1d2745341f38ad769cb3453c8c7301182590525f1da86f gateway_interceptor.proto
# sha256 ea574b501987611ea637ba249013584fc566e24ad9a3db185a217158caee2927 openshell.proto
# sha256 b0e03562c92777978f6f3e0f46260cdb82f1d88d1c1837eab0e53cdd0f195eb7 options.proto
# sha256 93536b8fa5c1e253d0d3aef031fde273b1bd13ce819192b0a7727fa9f28d55fb sandbox.proto

# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
Expand Down
1,098 changes: 583 additions & 515 deletions interceptor/_gen/openshell_pb2.py

Large diffs are not rendered by default.

116 changes: 106 additions & 10 deletions interceptor/_gen/openshell_pb2_grpc.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Generated by interceptor/regen.sh from OpenShell's protos. Do not edit.
# source-tag v0.1.2
# source-tag v0.1.5
# sha256 e50bd875a760f54b80269c65ee47984cae424fb623b7f59551ba62550c23e70b datamodel.proto
# sha256 60f28ee9dc846d41152f4db7e82a439c78d024786efaceb464900d1d1ad129ad extension.proto
# sha256 931411aaae512b41117039f35b8c8727c8aefa87e898879e8b6f277c0149f79d gateway_interceptor.proto
# sha256 2e31d0faca652b91729f88bd4053447e5d162e74de7dbacdcc06327ed82e5b95 openshell.proto
# sha256 10c8a99b505047f759951285fdae6068afd267ef672d00a65385a91ee8d027ee options.proto
# sha256 ed3d2650c8d1c4cbb653259c6055adba2dba8a51498ab6a1b2cfc339997ab2b9 sandbox.proto
# sha256 905df827e50abb54ca1d2745341f38ad769cb3453c8c7301182590525f1da86f gateway_interceptor.proto
# sha256 ea574b501987611ea637ba249013584fc566e24ad9a3db185a217158caee2927 openshell.proto
# sha256 b0e03562c92777978f6f3e0f46260cdb82f1d88d1c1837eab0e53cdd0f195eb7 options.proto
# sha256 93536b8fa5c1e253d0d3aef031fde273b1bd13ce819192b0a7727fa9f28d55fb sandbox.proto

# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
Expand Down Expand Up @@ -197,6 +197,11 @@ def __init__(self, channel):
request_serializer=openshell__pb2.GetProviderRequest.SerializeToString,
response_deserializer=openshell__pb2.ProviderResponse.FromString,
_registered_method=True)
self.GetProviderCredentials = channel.unary_unary(
'/openshell.v1.OpenShell/GetProviderCredentials',
request_serializer=openshell__pb2.GetProviderCredentialsRequest.SerializeToString,
response_deserializer=openshell__pb2.GetProviderCredentialsResponse.FromString,
_registered_method=True)
self.ListProviders = channel.unary_unary(
'/openshell.v1.OpenShell/ListProviders',
request_serializer=openshell__pb2.ListProvidersRequest.SerializeToString,
Expand Down Expand Up @@ -367,6 +372,11 @@ def __init__(self, channel):
request_serializer=openshell__pb2.GetSandboxProviderStatusRequest.SerializeToString,
response_deserializer=openshell__pb2.GetSandboxProviderStatusResponse.FromString,
_registered_method=True)
self.PeerNotifyConfigUpdate = channel.unary_unary(
'/openshell.v1.OpenShell/PeerNotifyConfigUpdate',
request_serializer=openshell__pb2.PeerNotifyConfigUpdateRequest.SerializeToString,
response_deserializer=openshell__pb2.PeerNotifyConfigUpdateResponse.FromString,
_registered_method=True)
self.WatchSandbox = channel.unary_stream(
'/openshell.v1.OpenShell/WatchSandbox',
request_serializer=openshell__pb2.WatchSandboxRequest.SerializeToString,
Expand Down Expand Up @@ -687,6 +697,14 @@ def GetProvider(self, request, context):
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')

def GetProviderCredentials(self, request, context):
"""Export selected usable runtime credentials. Only directly authenticated
mTLS operators may call this method; refresh material is never returned.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')

def ListProviders(self, request, context):
"""List providers.
"""
Expand Down Expand Up @@ -779,7 +797,9 @@ def DeleteProviderProfile(self, request, context):
raise NotImplementedError('Method not implemented!')

def GetSandboxConfig(self, request, context):
"""Get sandbox settings by id (called by sandbox entrypoint and poll loop).
"""Get sandbox settings by id (called by users, and by supervisors at startup
and in their poll loop). A supervisor whose session pushes configuration
receives later updates over ConnectSupervisor and stops polling.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
Expand Down Expand Up @@ -849,7 +869,9 @@ def ReportSandboxConfiguration(self, request, context):
raise NotImplementedError('Method not implemented!')

def GetSandboxProviderEnvironment(self, request, context):
"""Get provider environment for a sandbox (called by sandbox supervisor at startup).
"""Get provider environment for a sandbox (called by the sandbox supervisor at
startup and by its poll loop). Polling projection of the provider
environment delivered over ConnectSupervisor; removed with the polling RPCs.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
Expand Down Expand Up @@ -882,9 +904,11 @@ def ConnectSupervisor(self, request_iterator, context):

The supervisor opens this stream at startup and keeps it alive for the
sandbox lifetime. The gateway uses it to coordinate relay channels for
SSH connect, ExecSandbox, and targetable sandbox services. Raw service
bytes flow over RelayStream calls (separate HTTP/2 streams on the same
connection), not over this stream.
SSH connect, ExecSandbox, targetable sandbox services, and configuration
delivery. Supervisors advertise optional stream features in
SupervisorHello, and the gateway sends only payloads the supervisor
advertises. Raw service bytes flow over RelayStream calls (separate HTTP/2
streams on the same connection), not over this stream.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
Expand Down Expand Up @@ -953,6 +977,14 @@ def PeerGetSandboxProviderStatus(self, request, context):
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')

def PeerNotifyConfigUpdate(self, request, context):
"""Best-effort notification to the replica that owns a supervisor session.
The receiver rebuilds snapshots from authoritative state.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')

def WatchSandbox(self, request, context):
"""Watch a sandbox and stream updates.

Expand Down Expand Up @@ -1256,6 +1288,11 @@ def add_OpenShellServicer_to_server(servicer, server):
request_deserializer=openshell__pb2.GetProviderRequest.FromString,
response_serializer=openshell__pb2.ProviderResponse.SerializeToString,
),
'GetProviderCredentials': grpc.unary_unary_rpc_method_handler(
servicer.GetProviderCredentials,
request_deserializer=openshell__pb2.GetProviderCredentialsRequest.FromString,
response_serializer=openshell__pb2.GetProviderCredentialsResponse.SerializeToString,
),
'ListProviders': grpc.unary_unary_rpc_method_handler(
servicer.ListProviders,
request_deserializer=openshell__pb2.ListProvidersRequest.FromString,
Expand Down Expand Up @@ -1426,6 +1463,11 @@ def add_OpenShellServicer_to_server(servicer, server):
request_deserializer=openshell__pb2.GetSandboxProviderStatusRequest.FromString,
response_serializer=openshell__pb2.GetSandboxProviderStatusResponse.SerializeToString,
),
'PeerNotifyConfigUpdate': grpc.unary_unary_rpc_method_handler(
servicer.PeerNotifyConfigUpdate,
request_deserializer=openshell__pb2.PeerNotifyConfigUpdateRequest.FromString,
response_serializer=openshell__pb2.PeerNotifyConfigUpdateResponse.SerializeToString,
),
'WatchSandbox': grpc.unary_stream_rpc_method_handler(
servicer.WatchSandbox,
request_deserializer=openshell__pb2.WatchSandboxRequest.FromString,
Expand Down Expand Up @@ -2323,6 +2365,33 @@ def GetProvider(request,
metadata,
_registered_method=True)

@staticmethod
def GetProviderCredentials(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(
request,
target,
'/openshell.v1.OpenShell/GetProviderCredentials',
openshell__pb2.GetProviderCredentialsRequest.SerializeToString,
openshell__pb2.GetProviderCredentialsResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)

@staticmethod
def ListProviders(request,
target,
Expand Down Expand Up @@ -3241,6 +3310,33 @@ def PeerGetSandboxProviderStatus(request,
metadata,
_registered_method=True)

@staticmethod
def PeerNotifyConfigUpdate(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(
request,
target,
'/openshell.v1.OpenShell/PeerNotifyConfigUpdate',
openshell__pb2.PeerNotifyConfigUpdateRequest.SerializeToString,
openshell__pb2.PeerNotifyConfigUpdateResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)

@staticmethod
def WatchSandbox(request,
target,
Expand Down
10 changes: 5 additions & 5 deletions interceptor/_gen/options_pb2.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Generated by interceptor/regen.sh from OpenShell's protos. Do not edit.
# source-tag v0.1.2
# source-tag v0.1.5
# sha256 e50bd875a760f54b80269c65ee47984cae424fb623b7f59551ba62550c23e70b datamodel.proto
# sha256 60f28ee9dc846d41152f4db7e82a439c78d024786efaceb464900d1d1ad129ad extension.proto
# sha256 931411aaae512b41117039f35b8c8727c8aefa87e898879e8b6f277c0149f79d gateway_interceptor.proto
# sha256 2e31d0faca652b91729f88bd4053447e5d162e74de7dbacdcc06327ed82e5b95 openshell.proto
# sha256 10c8a99b505047f759951285fdae6068afd267ef672d00a65385a91ee8d027ee options.proto
# sha256 ed3d2650c8d1c4cbb653259c6055adba2dba8a51498ab6a1b2cfc339997ab2b9 sandbox.proto
# sha256 905df827e50abb54ca1d2745341f38ad769cb3453c8c7301182590525f1da86f gateway_interceptor.proto
# sha256 ea574b501987611ea637ba249013584fc566e24ad9a3db185a217158caee2927 openshell.proto
# sha256 b0e03562c92777978f6f3e0f46260cdb82f1d88d1c1837eab0e53cdd0f195eb7 options.proto
# sha256 93536b8fa5c1e253d0d3aef031fde273b1bd13ce819192b0a7727fa9f28d55fb sandbox.proto

# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
Expand Down
10 changes: 5 additions & 5 deletions interceptor/_gen/options_pb2_grpc.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Generated by interceptor/regen.sh from OpenShell's protos. Do not edit.
# source-tag v0.1.2
# source-tag v0.1.5
# sha256 e50bd875a760f54b80269c65ee47984cae424fb623b7f59551ba62550c23e70b datamodel.proto
# sha256 60f28ee9dc846d41152f4db7e82a439c78d024786efaceb464900d1d1ad129ad extension.proto
# sha256 931411aaae512b41117039f35b8c8727c8aefa87e898879e8b6f277c0149f79d gateway_interceptor.proto
# sha256 2e31d0faca652b91729f88bd4053447e5d162e74de7dbacdcc06327ed82e5b95 openshell.proto
# sha256 10c8a99b505047f759951285fdae6068afd267ef672d00a65385a91ee8d027ee options.proto
# sha256 ed3d2650c8d1c4cbb653259c6055adba2dba8a51498ab6a1b2cfc339997ab2b9 sandbox.proto
# sha256 905df827e50abb54ca1d2745341f38ad769cb3453c8c7301182590525f1da86f gateway_interceptor.proto
# sha256 ea574b501987611ea637ba249013584fc566e24ad9a3db185a217158caee2927 openshell.proto
# sha256 b0e03562c92777978f6f3e0f46260cdb82f1d88d1c1837eab0e53cdd0f195eb7 options.proto
# sha256 93536b8fa5c1e253d0d3aef031fde273b1bd13ce819192b0a7727fa9f28d55fb sandbox.proto

# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
Expand Down
Loading