Skip to content

Commit

Permalink
fixup! WIP: ingress proxy go
Browse files Browse the repository at this point in the history
  • Loading branch information
burgerdev committed Jan 12, 2025
1 parent fde5a97 commit 10a36fd
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/by-name/service-mesh/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ buildGoModule rec {
};

proxyVendor = true;
vendorHash = "sha256-SlRxqvHfvWVtDABLnWiF8Sm8dedx2AX/rAU0cU8zHM4=";
vendorHash = "sha256-j3H7PbuxHRaykwVjHHpZb9KMDZk4bz/pDrAdvI805dk=";

subPackages = [ "." ];

Expand Down
1 change: 1 addition & 0 deletions service-mesh/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ go 1.23.0
require (
github.com/coreos/go-iptables v0.8.0
github.com/envoyproxy/go-control-plane/envoy v1.32.2
golang.org/x/sync v0.10.0
google.golang.org/protobuf v1.36.1
)

Expand Down
2 changes: 2 additions & 0 deletions service-mesh/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 h1:GFCKgmp0tecUJ0sJuv4pzYCqS9+RGSn52M3FUwPs+uo=
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10/go.mod h1:t/avpk3KcrXxUnYOhZhMXJlSEyie6gQbtLq5NM3loB8=
golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ=
golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142 h1:wKguEg1hsxI2/L3hUYrpo1RVi48K+uTyzKqprwLXsb8=
google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142/go.mod h1:d6be+8HhtEtucleCbxpPW9PA9XwISACu8nvpPqF0BVo=
google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 h1:e7S5W7MGGLaSu8j3YjdezkZ+m1/Nm0uRVRMEMGk26Xs=
Expand Down
2 changes: 1 addition & 1 deletion service-mesh/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func run() error {
Certificates: []tls.Certificate{cert},
ClientCAs: pool,
ClientAuth: tls.RequireAndVerifyClientCert,
}).Close()
})
},
}
return listener.ListenAndServe(context.TODO(), "0.0.0.0:15007")
Expand Down
2 changes: 1 addition & 1 deletion service-mesh/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (l *Listener) handle(ctx context.Context, downstreamConn *net.TCPConn) erro
}

type shutdownConn interface {
io.ReadWriteCloser
net.Conn
CloseWrite() error
}

Expand Down
2 changes: 1 addition & 1 deletion service-mesh/proxy_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ import "syscall"

const (
SOL_IP = syscall.SOL_IP
IP_TRANSPARENT = syscall.SOL_TRANSPARENT
IP_TRANSPARENT = syscall.IP_TRANSPARENT
SO_ORIGINAL_DST = 80
)

0 comments on commit 10a36fd

Please sign in to comment.