From ce4413a0bc44bf0d5f31b921139c23b2c4c67fa2 Mon Sep 17 00:00:00 2001 From: Maisem Ali Date: Thu, 8 Aug 2024 22:52:20 -0700 Subject: [PATCH] client/tailscale: add Via to UserRuleMatch This adds the Via field for the https://tailscale.com/kb/1378/via feature to the ACLPreview response. Updates tailscale/corp#22239 Signed-off-by: Maisem Ali --- client/tailscale/acl.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/tailscale/acl.go b/client/tailscale/acl.go index 52bbb2a3f..fc672ded8 100644 --- a/client/tailscale/acl.go +++ b/client/tailscale/acl.go @@ -286,6 +286,9 @@ type UserRuleMatch struct { Users []string `json:"users"` Ports []string `json:"ports"` LineNumber int `json:"lineNumber"` + // Via is the list of targets through which Users can access Ports. + // See https://tailscale.com/kb/1378/via for more information. + Via []string `json:"via,omitempty"` // Postures is a list of posture policies that are // associated with this match. The rules can be looked