10 Commits

Author SHA1 Message Date
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
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
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
89af057be5 add copyright headers 2025-02-21 13:10:59 -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