From df4b730438274238cf996f93e43150095a4d2b57 Mon Sep 17 00:00:00 2001 From: Tom DNetto Date: Tue, 31 Oct 2023 11:15:44 -0700 Subject: [PATCH] types/appctype: define the nodeAttrs type for dns-driven app connectors Signed-off-by: Tom DNetto Updates: https://github.com/tailscale/corp/issues/15440 Code-authored-by: Podtato --- types/appctype/appconnector.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/types/appctype/appconnector.go b/types/appctype/appconnector.go index 178363008..6228d51d2 100644 --- a/types/appctype/appconnector.go +++ b/types/appctype/appconnector.go @@ -57,3 +57,16 @@ type SNIProxyConfig struct { // the domain starts with a `.` that means any subdomain of the suffix. AllowedDomains []string `json:",omitempty"` } + +// AppConnectorAttr describes a set of domains +// serviced by specified app connectors. +type AppConnectorAttr struct { + // Name is the name of this collection of domains. + Name string `json:"name,omitempty"` + // Domains enumerates the domains serviced by the specified app connectors. + // Domains can be of the form: example.com, or *.example.com. + Domains []string `json:"domains,omitempty"` + // Connectors enumerates the app connectors which service these domains. + // These can be any target type supported by Tailscale's ACL language. + Connectors []string `json:"connectors,omitempty"` +}