cthuang
b73c588254
TUN-5422: Define RPC to unregister session
2021-12-06 16:37:09 +00:00
cthuang
fc2333c934
TUN-5300: Define RPC to register UDP sessions
2021-12-06 16:37:09 +00:00
Igor Postelnik
da4d0b2bae
TUN-4067: Reformat code for consistent import order, grouping, and fix formatting. Added goimports target to the Makefile to make this easier in the future.
2021-03-24 10:53:29 -05:00
Areg Harutyunyan
870f5fa907
TUN-3470: Replace in-house logger calls with zerolog
2020-12-23 14:15:17 -06:00
cthuang
9ac40dcf04
TUN-3462: Refactor cloudflared to separate origin from connection
2020-11-11 15:11:42 +00:00
cthuang
2c9b7361b7
TUN-3427: Define a struct that only implements RegistrationServer in tunnelpogs
2020-10-01 09:08:32 +01:00
Adam Chalmers
9952ce0069
TUN-3221: ConnectionOptions tracks numPreviousAttempts.
2020-07-31 20:22:33 +00:00
Igor Postelnik
2a3d486126
TUN-3007: Implement named tunnel connection registration and unregistration.
...
Removed flag for using quick reconnect, this logic is now always enabled.
2020-07-01 04:19:30 +00:00
cthuang
3886021ba5
TUN-3107: UnregisterConnection shouldn't wrap nil error as RPC error
2020-06-18 21:17:43 +08:00
Igor Postelnik
8f75feac94
TUN-3085: Pass connection authentication information using TunnelAuth struct
2020-06-16 16:35:46 +00:00
Igor Postelnik
448a7798f7
TUN-3015: Add a new cap'n'proto RPC interface for connection registration as well as matching client and server implementations. The old interface extends the new one for backward compatibility.
2020-06-16 16:35:46 +00:00
cthuang
fb82b2ced5
TUN-3019: Remove declarative tunnel entry code
2020-05-30 05:54:17 +08:00
Dalton
046be63253
AUTH-2596 added new logger package and replaced logrus
2020-05-27 17:07:19 -05:00
Igor Postelnik
fbe2989f61
TUN-2955: Fix connection and goroutine leaks when tunnel conection is terminated on error. Only unregister tunnels that had connected successfully. Close edge connection used to unregister the tunnel. Use buffered channels for error channels where receiver may quit early on context cancellation.
2020-05-06 03:13:24 +00:00
Adam Chalmers
1b2a96f96b
TUN-2755: ReconnectTunnel RPC now transmits ConnectionDigest
2020-03-06 14:48:16 -06:00
Adam Chalmers
d50fee4fa0
TUN-2754: Add ConnDigest to cloudflared and its RPCs
2020-03-05 15:25:15 -06:00
Areg Harutyunyan
26f5f80811
TUN-2776: Add header serialization feature in cloudflared
2020-02-28 17:36:29 +00:00
Nick Vollmar
6aa48d2eb2
TUN-2554: cloudflared calls ReconnectTunnel
2019-12-13 18:48:48 +00:00
Nick Vollmar
5e7ca14412
TUN-2555: origin/supervisor.go calls Authenticate
2019-12-06 11:26:54 -06:00
Adam Chalmers
379cb16efe
TUN-2591: ReconnectTunnel now sends EventDigest
2019-11-25 18:11:50 +00:00
Ashcon Partovi
43babbc2f9
Fix "happy eyeballs" not being disabled since Golang 1.12 upgrade
...
* The Dialer.DualStack setting is now ignored and deprecated; RFC 6555 Fast Fallback ("Happy Eyeballs") is now enabled by default. To disable, set Dialer.FallbackDelay to a negative value.
2019-11-25 17:54:20 +00:00
Adam Chalmers
f51712bef9
TUN-2582: EventDigest field in tunnelrpc
2019-11-22 12:04:14 -06:00
Chung-Ting Huang
b0d31a0ef3
TUN-2573: Refactor TunnelRegistration into PermanentRegistrationError, RetryableRegistrationError and SuccessfulTunnelRegistration
2019-11-22 17:30:41 +00:00
Adam Chalmers
23e12cf5a3
TUN-2575: Constructors + simpler conversions for AuthOutcome
2019-11-22 02:08:57 +00:00
Adam Chalmers
7173da9359
TUN-2567: AuthOutcome can be turned back into AuthResponse
2019-11-19 04:34:00 +00:00
Nick Vollmar
0676923d24
TUN-2551: TunnelRPC definitions for ReconnectTunnel flow
2019-11-18 14:26:58 -06:00
Adam Chalmers
ca7fbf43da
TUN-2547: TunnelRPC definitions for Authenticate flow
2019-11-18 16:39:01 +00:00
Chung-Ting Huang
5bcb2da0fe
TUN-2309: Split ConnectResult into ConnectError and ConnectSuccess, each implementing its own capnp serialization logic
2019-09-19 13:47:41 -05:00
Adam Chalmers
4f23da2a6d
TUN-2315: Replace Scope with IntentLabel
2019-09-18 15:11:46 -05:00
Chung-Ting Huang
fe032843f3
TUN-2307: Capnp is the only serialization format used in tunnelpogs
2019-09-17 16:29:50 +00:00
Adam Chalmers
dd521aba29
TUN-2280: Revert "TUN-2260: add name/group to CapnpConnectParameters, remove Scope"
...
This reverts commit 817c3be9da5465043c2a2fda6c48f7ada760682e.
2019-09-06 15:59:32 +00:00
Nick Vollmar
dc730615f2
TUN-2260: add name/group to CapnpConnectParameters, remove Scope
2019-09-05 15:36:16 +00:00
Adam Chalmers
fb8ff33203
TUN-2165: Add ClientConfig to tunnelrpc.ConnectResult
2019-08-26 16:27:28 +00:00
Chung-Ting Huang
28f6c2ed7c
TUN-2163: Add GrapQLType method to Scope interface
2019-08-11 12:18:54 -05:00
Chung-Ting Huang
fd4ab314dc
TUN-2111: Implement custom serialization logic for FallibleConfig and OriginConfig
2019-08-06 10:56:16 -05:00
Chung-Ting Huang
bdd70e798a
TUN-2110: Implement custom deserialization logic for OriginConfig
2019-08-05 19:28:51 -05:00
Adam Chalmers
5feba7e3a9
TUN-2147: Implemented ScopeUnmarshaler
2019-08-05 18:14:32 -05:00
Adam Chalmers
d3d9460f64
TUN-2125: Add PostgresType() to Scope
2019-08-02 10:21:09 -05:00
Nick Vollmar
74f3a55c57
TUN-2117: read group/system-name from CLI, send it to edge
2019-08-01 22:04:05 +00:00
Chung-Ting Huang
4858ce79d0
TUN-1977: Validate OriginConfig has valid URL, and use scheme to determine if a HTTPOriginService is expecting HTTP or Unix
2019-07-01 15:31:58 -05:00
Chung-Ting Huang
c2a3ac3991
TUN-1982: Load custom origin CA when OriginCAPool is specified
2019-06-21 11:44:26 -05:00
Chung-Ting Huang
80a15547e3
TUN-1961: Create EdgeConnectionManager to maintain outbound connections to the edge
2019-06-18 16:37:38 -05:00
Chung-Ting Huang
ca619a97bc
TUN-1952: Group ClientConfig fields by the component that uses the config, and return the part of the config that failed to be applied
2019-06-13 14:39:51 -05:00
Chung-Ting Huang
d32fb8e82c
TUN-1913: Define OriginService for each type of origin
2019-06-04 17:02:34 -05:00
Chung-Ting Huang
39d60d1239
TUN-1914: Conflate HTTP and Unix OriginConfig, and add TLS config to WebSocketOriginConfig
2019-06-03 12:09:24 -05:00
Nick Vollmar
1485ca0fc7
TUN-1828: Update declarative tunnel config struct
2019-05-28 14:02:47 -05:00
Chung-Ting Huang
14f50d0922
TUN-1807: Send cloudflared version in Connect RPC
2019-05-06 16:13:12 -05:00
Nick Vollmar
13d25a52a9
TUN-1606: Define CloudflaredConfig RPC structure, interface for cloudflared's RPC server
2019-04-09 15:58:40 -05:00
Chung-Ting Huang
80d3d989eb
TUN-1673: Conflate Hello and Connect RPCs
2019-04-01 13:50:30 -05:00
Chung-Ting Huang
8c6cfa34aa
TUN-1604: Define Connect RPC call
2019-03-22 17:30:23 -05:00