# Functions
CheckPeerHeaders validates upstreams request.
CheckRelayLoops :does XRAY UUDI already present in header?.
CloneHeader clone http headers.
CopyHeader copy header.
DeleteCache delete value from cache.
Fatal to exit the program.
GenUUID generates a google UUID.
GetCache get value from cache.
GetRelayIP get relay IP address.
GetRelayIPPort get relay IP:PORT of user facing server.
InitCache initialize the cache to store dialin cluster-connection information of peers.
InsertCache inserts the value to cache.
IsHTTPS returns true if port is 443.
KeepAlive set keepalive.
PeerSetHeaderNonce header.
ReadControlMessage reads ControlMessage from HTTP headers.
No description provided by the author
SetXForwardedFor ...
SetXForwardedParalus set paralus headers.
SetXRAYUUID ...
SplitHostPort separates host and port.
Transfer transfer by io.Copy.
UnSetXForwardedParalus set paralus headers.
WriteFile overwrite if exist.
WriteToHeader writes ControlMessage to HTTP header.
# Constants
Known actions.
Relay Network Types.
Known server types.
Known server types.
- means standard out.
DefaultAuditPolicyPath default audit policy filter path k8s audit need a file path.
Known server types.
Known relay services.
HeaderAction ...
HeaderClearSecret to clear the current secret cache of user.
HeaderError ..
HeaderForwardedHost ..
HeaderForwardedService ..
HeaderParalusAllow ..
HeaderParalusAuthZRole yaml contains role.
HeaderParalusAuthZRoleBinding yaml contains rolebinding.
HeaderParalusAuthZSA yaml contains service account.
HeaderParalusNamespace ..
HeaderParalusScope ..
HeaderParalusServiceAccountNoExpire don't expire service account.
HeaderParalusUserName ..
Known protocol types.
Known protocol types.
Known relay services.
Known server types.
Known relay services.
Relay Network Types.
Relay Network Types.
Known dialin types.
Known relay services.
Known dialin types.
ParalusRelayServiceAccountNameSpace namespace used to create service account for relays.
Known dialin types.
Known server types.
Known server types.
Known protocol types.
Known protocol types.
# Variables
AgentID unique id for cd agent.
CDRelayConnectorCACert used for cd-relay-connector termination.
CDRelayConnectorCert used for cd-relay-connector termination.
CDRelayConnectorHost connector facing server host (domain).
CDRelayConnectorKey used for cd-relay-connector termination.
CDRelayConnectorPort connector facing server port.
CDRelayUserCACert used for client/peer communication.
CDRelayUserCert used for client/peer communication.
CDRelayUserHost client facing server host.
CDRelayUserKey used for client/peer communication.
CDRelayUserPort client facing server port.
ClusterID unique id of the cluster.
DefaultKeepAliveCount specifies maximal number of keepalive messages sent before marking connection as dead.
DefaultKeepAliveIdleTime specifies how long connection can be idle before sending keepalive message.
DefaultKeepAliveInterval specifies how often retry sending keepalive messages when no response is received.
DefaultMuxTimeout specifies vmux timeout.
DefaultPingTimeout specifies a ping timeout.
DefaultTCPUpstream default TCP upstream.
DefaultTimeout specifies a general purpose timeout.
DialoutProxy setting used while connecting to relay IP:PORT or HOST:PORT format.
DialoutProxyAuth Proxy-Authorization header base64 encoded value of user:password.
ExitChan trigger this channel to exit.
Fingerprint uuid of the agent namespace which acts as relay agent fingerprint.
Hour.
IdleTimeout is the maximum amount of time to wait for the next read/write before closing connection.
LogLevel loglevel set from commadline.
MaxDials max connections dialed.
MaxScaleMultiplier multiplier to limit max scaled connections.
MinDials minimum connections dialed.
Mode relay/relay-agent.
PeerCACertificate used for peering service communication.
PeerCache stores peer dialin info.
PeerCacheDefaultExpiry default expiry.
PeerCertificate used for peering service communication.
PeerHelloInterval heartbeat interval.
PeerPrivateKey used for peering service communication.
PeerServiceURI is the URI to join peering service.
PODNAME name of the pod.
ProxyProtocolSize Default PROXY PROTO buffer size.
RelayAgentConfig map of relay agent configurations.
RelayConnectorCACert used for relay-connector termination.
RelayConnectorCert used for relay-connector termination.
RelayConnectorHost connector facing server host (domain).
RelayConnectorKey used for relay-connector termination.
RelayConnectorPort connector facing server port.
RelayIPFromConfig IP address of the relay for peering.
RelayNetworks list of relaynemtworks from configmap.
RelayUserCACert used for user/peer communication.
RelayUserCert used for user/peer communication.
RelayUserHost user facing seerver host (domain).
RelayUserKey used for user/peer communication.
RelayUserPort user facing seerver port.
RelayUUID runtime Unique ID for relay.
ScalingStreamsRateThreshold new streams rate to trigger scaling.
ScalingStreamsThreshold concurrent streams count to trigger scaling.
ServiceAccountCache stores service account, role, role binding in relay-agetn in connector.
ServiceAccountCacheDefaultExpiry default expiry.
TerminateChan trigger this channel to exit.
need to change this from tmp to appropriate path after integration.
need to change this from tmp to appropriate path after integration.
# Structs
ControlMessage is sent from server to client before streaming data.
CountWriter to measure bytes.
FlushWriter flush writer.
ProxyConfig configs for the proxy.
ProxyProtocolMessage used across dialin unix socket.
Relaynetwork configmap data.
RelayNetworkConfig config for relay agent.
No description provided by the author
SNICertificate sni based certs.
# Type aliases
OnEvict cache on eviction call back function.