Skip to main content

shell_subprotocols

Function shell_subprotocols 

Source
pub fn shell_subprotocols(shell_jwe: &str) -> [String; 2]
Expand description

The two subprotocols a shell handshake offers: the marker and the credential.

Two, not three. Every other WebSocket through the proxy adds lambda-microvms.port.<n>, and the shell deliberately does not: the token names no port (CreateMicrovmShellAuthToken has no allowedPorts member) and the measured handshake succeeds without one. Offering the port value anyway would work today — measured as “neither helps nor hurts” — and would teach every reader that the shell is a port, which is the misunderstanding this crate keeps having to correct.