43 Commits

Author SHA1 Message Date
Fran Bull
27b69ca97b wip 2025-02-27 13:43:56 -08:00
Fran Bull
cd7d3ae4d2 add clarifying continue 2025-02-27 13:35:07 -08:00
Fran Bull
7dbcb388b8 shorten 2025-02-27 13:30:11 -08:00
Fran Bull
c4110ec886 Export functions in authorization file 2025-02-27 13:23:26 -08:00
Fran Bull
24ce3279f4 close the conn, don't leave it open 2025-02-27 13:01:05 -08:00
Fran Bull
ad7d1ee07a addr -> netip.AddrPortFrom().String() 2025-02-27 11:41:28 -08:00
Fran Bull
4175e2e21d don't try to http.Error after trying to encode to w 2025-02-27 10:18:30 -08:00
Fran Bull
af2fd8bd7e change comment style 2025-02-27 09:38:28 -08:00
Fran Bull
559643b034 command mux robustness 2025-02-27 08:47:24 -08:00
Fran Bull
b789daaf99 badrequest -> methodnotallowed 2025-02-27 08:01:23 -08:00
Fran Bull
ace8630d89 splithostport -> parseaddrport 2025-02-27 07:47:07 -08:00
Fran Bull
e8b2224932 401 -> 403 2025-02-27 07:39:16 -08:00
Fran Bull
69f76641ac auth getstatus max 1/s 2025-02-27 07:31:30 -08:00
Fran Bull
ae30f58b46 centralize cmd http auth 2025-02-27 05:15:49 -08:00
Fran Bull
5afa742b06 unnecessary export 2025-02-26 15:03:37 -08:00
Fran Bull
c35c3d1194 use a views.Slice 2025-02-26 14:45:44 -08:00
Fran Bull
66ecab9540 use a set for authorization, test it 2025-02-26 14:09:24 -08:00
Fran Bull
f63ce0066d comment use of mutex 2025-02-26 09:36:20 -08:00
Fran Bull
9d65e1fc22 use status code constants, and the right ones 2025-02-26 09:34:13 -08:00
Fran Bull
2d2b954006 no need to defer 2025-02-26 09:26:39 -08:00
Fran Bull
5e15c25937 no need for a blank return at the end 2025-02-26 09:25:36 -08:00
Fran Bull
f7ec770f03 use new encoder, not marshalindent 2025-02-26 09:10:10 -08:00
Fran Bull
3a35ac716d only serve debug monitor if asked for 2025-02-26 09:04:51 -08:00
Fran Bull
e13b8c271b log errors don't return to http client 2025-02-26 08:38:08 -08:00
Fran Bull
e0415e0221 use dnsname instead of strings split 2025-02-26 08:29:51 -08:00
Fran Bull
febe30ea68 error auth refresh if server not running 2025-02-26 08:29:13 -08:00
Fran Bull
5fa145674d make tests pass under -race 2025-02-25 14:57:50 -08:00
Fran Bull
8dfb749ea5 missed a direct events access 2025-02-24 12:01:15 -08:00
Fran Bull
773894638c lint says conn can't be nil 2025-02-24 11:55:45 -08:00
Fran Bull
0b971dffd3 configure logging 2025-02-24 11:41:53 -08:00
Fran Bull
f0223a9dba avoid race 2025-02-24 10:38:21 -08:00
Fran Bull
3ed0736ae9 protect nil pointer 2025-02-24 10:29:05 -08:00
Fran Bull
05277e020e move package doc to right place 2025-02-24 08:45:10 -08:00
Fran Bull
aee5b38001 use httpm i guess? 2025-02-21 13:38:53 -08:00
Fran Bull
89af057be5 add copyright headers 2025-02-21 13:10:59 -08:00
Fran Bull
d944cd1778 do we need to wait longer? 2025-02-21 13:07:41 -08:00
Fran Bull
0354836398 don't actually need those bits for the interface 2025-02-21 13:06:07 -08:00
Fran Bull
4040e14cb8 use the error value 2025-02-21 13:02:05 -08:00
Fran Bull
82e6b2508a fix test 2025-02-21 12:34:53 -08:00
Fran Bull
a828917152 allow concurrent usage of authorization 2025-02-21 11:24:00 -08:00
Fran Bull
d593a85bae comments, whitespace 2025-02-21 11:23:22 -08:00
Fran Bull
7c539e3d2f to squash: restrict communication to tagged nodes 2025-02-20 15:14:22 -08:00
Fran Bull
6ebb0c749d tsconsensus: add a tsconsensus package
tsconsensus enables tsnet.Server instances to form a consensus.

tsconsensus wraps hashicorp/raft with
 * the ability to do discovery via tailscale tags
 * inter node communication over tailscale
 * routing of commands to the leader

Updates #14667

Signed-off-by: Fran Bull <fran@tailscale.com>
2025-02-20 11:12:17 -08:00