fix(gateway): secure control and terminal ownership

This commit is contained in:
sechmachine
2026-07-30 11:15:48 +07:00
parent df75b1d250
commit baf4073f68
16 changed files with 488 additions and 36 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ import (
func TestHeartbeatReportsMeasuredEgressInsteadOfConfiguredCapacity(t *testing.T) {
heartbeats := make(chan protocol.GatewayHeartbeat, 1)
control := httptest.NewServer(http.HandlerFunc(func(response http.ResponseWriter, request *http.Request) {
control := httptest.NewTLSServer(http.HandlerFunc(func(response http.ResponseWriter, request *http.Request) {
if request.URL.Path == "/api/v1/gateway/heartbeat" {
heartbeat, err := protocol.DecodeGatewayHeartbeat(mustReadBody(t, request))
if err != nil {