You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/control/controlclient
Brad Fitzpatrick a01b545441 control/control{client,http}: don't noise dial localhost:443 in http-only tests
1eaad7d3de regressed some tests in another repo that were starting up
a control server on `http://127.0.0.1:nnn`. Because there was no https
running, and because of a bug in 1eaad7d3de (which ended up checking
the recently-dialed-control check twice in a single dial call), we
ended up forcing only the use of TLS dials in a test that only had
plaintext HTTP running.

Instead, plumb down support for explicitly disabling TLS fallbacks and
use it only when running in a test and using `http` scheme control
plane URLs to 127.0.0.1 or localhost.

This fixes the tests elsewhere.

Updates #13597

Change-Id: I97212ded21daf0bd510891a278078daec3eebaa6
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2 months ago
..
auto.go control/controlclient: delete unused Client.Login Oauth2Token field 6 months ago
client.go control/controlclient: delete unused Client.Login Oauth2Token field 6 months ago
controlclient_test.go all: use Go 1.22 range-over-int 7 months ago
direct.go control/controlclient: bound ReportHealthChange context lifetime to Direct client's 2 months ago
direct_test.go tka: test SigCredential signatures and netmap filtering 5 months ago
map.go all: use new Go 1.23 slices.Sorted more 3 months ago
map_test.go all: use Go 1.22 range-over-int 7 months ago
noise.go control/control{client,http}: don't noise dial localhost:443 in http-only tests 2 months ago
noise_test.go cmd/tailscale/cli: actually perform Noise request in 'debug ts2021' 5 months ago
sign.go all: update copyright and license headers 2 years ago
sign_supported.go control/controlclient,posture,util/syspolicy: use predefined syspolicy keys instead of string literals 3 months ago
sign_supported_test.go all: update copyright and license headers 2 years ago
sign_unsupported.go control/controlclient: support certstore without cgo 1 year ago
status.go all: implement AppendText alongside MarshalText (#9207) 1 year ago