diff --git a/src/lib/adapters/openshell/grpc-sandbox-control.test.ts b/src/lib/adapters/openshell/grpc-sandbox-control.test.ts index 32e04644127..bc4ec639a04 100644 --- a/src/lib/adapters/openshell/grpc-sandbox-control.test.ts +++ b/src/lib/adapters/openshell/grpc-sandbox-control.test.ts @@ -358,6 +358,14 @@ describe("gRPC OpenShell sandbox control", () => { expect(() => createOpenShellGrpcApi({ endpoint })).toThrow(message); }); + it.each([ + "http://127.0.0.1:8080", + "http://[::1]:8080", + ])("accepts literal loopback endpoint %s", (endpoint) => { + const api = createOpenShellGrpcApi({ endpoint }); + api.close(); + }); + it("rejects bearer tokens or TLS material on plaintext endpoints", () => { expect(() => createOpenShellGrpcApi({