handlers

package
v0.0.0-...-4567ff4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleSNIConn

func HandleSNIConn(hb *hbone.HBone, conn net.Conn)

HandleSNIConn implements SNI based routing. This can be used for compat with Istio. Was original method to tunnel for serverless.

This can be used for a legacy CNI to HBone bridge. The old Istio client expects an mTLS connection to the other end - the HBone proxy is untrusted.

func HandleSocksConn

func HandleSocksConn(hb *hbone.HBone, conn net.Conn) error

func InitExpvar

func InitExpvar(hb *hbone.HBone)

func InitMDS

func InitMDS(hb *hbone.HBone)

func InitXDSCluster

func InitXDSCluster(hb *hbone.HBone) *hbone.Cluster

func LoadMeshConfig

func LoadMeshConfig(hc *hbone.MeshSettings, path string) error

func MDSHandler

func MDSHandler(hb *hbone.HBone) func(writer http.ResponseWriter, request *http.Request)

Adapter emulating MDS using an authenticator (K8S or GCP) Allows Envoy, gRPC to work without extra code to handle token exchanges. "aud" is the special provider returning access and audience tokens.

func RemoteForward

func RemoteForward(hb *hbone.HBone, hg, sn, ns string) *hbone.EndpointCon

WIP: RemoteForward is similar with ssh -R remotePort. Will use the H2R protocol to open a remote H2C connection attached to the Hbone remote server.

func Start

func Start(hb *hbone.HBone)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL