From 6753422f7ae3783e588d3a6e4c48d8ad3f39d161 Mon Sep 17 00:00:00 2001 From: Veillax <126523099+Veillax@users.noreply.github.com> Date: Tue, 27 Oct 2026 03:29:26 -0600 Subject: [PATCH] model: Site and Mapping carry optional tags Co-Authored-By: Claude Sonnet 5.5 --- model/model.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/model/model.go b/model/model.go index ffd72ff..af730d4 100644 --- a/model/model.go +++ b/model/model.go @@ -61,7 +61,9 @@ type Site struct { Local bool `json:"local"` EdgeID string `json:"edgeId,omitempty"` // the edge a local site belongs to - TunnelIP string `json:"tunnelIp,omitempty"` // the site's address inside the tunnel network + Tags []string `json:"tags,omitempty"` // labels for grouping and filtering in the dashboard + + TunnelIP string `json:"tunnelIp,omitempty"` // the site's address inside the tunnel network PublicKey string `json:"publicKey,omitempty"` // WireGuard public key, reported by the agent // Version is the release the program reports (e.g. v0.1.5). AutoUpdate says whether it may update @@ -125,6 +127,7 @@ type Mapping struct { Hostname string `json:"hostname,omitempty"` // web/tls only; "*.example.com" allowed Targets []Target `json:"targets"` // udp uses only the first Enabled bool `json:"enabled"` + Tags []string `json:"tags,omitempty"` // labels for grouping and filtering in the dashboard // ProxyProtocol ("v1" or "v2") makes the edge start each tcp/tls connection to the // target with a PROXY protocol header carrying the real client address. ProxyProtocol string `json:"proxyProtocol,omitempty"`