cloudflared-mirror/cmd/cloudflared/tunnel
Sudarsan Reddy 5e212a6bf3 TUN-7360: Add Get Host Details handler in management service
With the management tunnels work, we allow calls to our edge service
   using an access JWT provided by Tunnelstore. Given a connector ID,
   this request is then proxied to the appropriate Cloudflare Tunnel.

   This PR takes advantage of this flow and adds a new host_details
   endpoint. Calls to this endpoint will result in cloudflared gathering
   some details about the host: hostname (os.hostname()) and ip address
   (localAddr in a dial).

   Note that the mini spec lists 4 alternatives and this picks alternative
   3 because:

   1. Ease of implementation: This is quick and non-intrusive to any of our
      code path. We expect to change how connection tracking works and
      regardless of the direction we take, it may be easy to keep, morph
      or throw this away.

   2. The cloudflared part of this round trip takes some time with a
      hostname call and a dial. But note that this is off the critical path
      and not an API that will be exercised often.
2023-04-18 09:54:54 +00:00
..
cmd.go TUN-7360: Add Get Host Details handler in management service 2023-04-18 09:54:54 +00:00
cmd_test.go TUN-1669: Update license message in help text. Also fix test 2019-04-18 10:42:48 -05:00
config_test.go TUN-4075: Dedup test should not compare order of list 2021-03-10 13:48:59 -06:00
configuration.go TUN-7134: Acquire token for cloudflared tail 2023-04-12 09:43:38 -07:00
configuration_test.go GH-352: Add Tunnel CLI option "edge-bind-address" (#870) 2023-02-28 16:11:42 +00:00
credential_finder.go TUN-7134: Acquire token for cloudflared tail 2023-04-12 09:43:38 -07:00
filesystem.go TUN-3581: Tunnels can be run by name using only --credentials-file, no 2020-11-25 09:54:28 -06:00
fips.go RTG-1339 Support post-quantum hybrid key exchange 2022-09-07 19:32:53 +00:00
info.go TUN-5482: Refactor tunnelstore client related packages for more coherent package 2021-12-28 17:17:49 +00:00
ingress_subcommands.go TUN-5754: Allow ingress validate to take plaintext option 2022-02-22 16:56:22 +00:00
login.go TUN-7134: Acquire token for cloudflared tail 2023-04-12 09:43:38 -07:00
quick_tunnel.go TUN-7275: Make QuickTunnels only use a single connection to the edge 2023-03-13 15:32:46 +00:00
server.go Add max upstream connections dns-proxy option (#290) 2021-02-12 21:32:29 +04:00
signal.go 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
signal_test.go TUN-5551: Reintroduce FIPS compliance for linux amd64 now as separate binaries 2021-12-20 21:50:42 +00:00
subcommand_context.go TUN-7134: Acquire token for cloudflared tail 2023-04-12 09:43:38 -07:00
subcommand_context_teamnet.go TUN-5482: Refactor tunnelstore client related packages for more coherent package 2021-12-28 17:17:49 +00:00
subcommand_context_test.go TUN-7134: Acquire token for cloudflared tail 2023-04-12 09:43:38 -07:00
subcommand_context_vnets.go ZTC-446: Allow to force delete a vnet 2023-01-20 11:52:56 +00:00
subcommands.go TUN-7135: Add cloudflared tail 2023-04-05 10:20:53 -07:00
subcommands_test.go TUN-5679: Add support for service install using Tunnel Token 2022-03-03 18:59:03 +00:00
tag.go TUN-1099: Bring back changes in 2018.10.1 2018-10-08 14:20:28 -05:00
tag_test.go TUN-1099: Bring back changes in 2018.10.1 2018-10-08 14:20:28 -05:00
teamnet_subcommands.go TUN-5669: Change network command to vnet 2022-01-24 11:26:16 +00:00
vnets_subcommands.go ZTC-446: Allow to force delete a vnet 2023-01-20 11:52:56 +00:00