File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,8 @@ type ACL struct {
74
74
Postures map [string ][]string `json:"postures,omitempty" hujson:"Postures,omitempty"`
75
75
DefaultSourcePosture []string `json:"defaultSrcPosture,omitempty" hujson:"DefaultSrcPosture,omitempty"`
76
76
77
+ AttrConfig map [string ]* ACLAttrConfig `json:"attrConfig,omitempty" hujson:"AttrConfig,omitempty"`
78
+
77
79
// ETag is the etag corresponding to this version of the ACL
78
80
ETag string `json:"-"`
79
81
}
@@ -159,6 +161,12 @@ type NodeAttrGrantApp struct {
159
161
Domains []string `json:"domains,omitempty" hujson:"Domains,omitempty"`
160
162
}
161
163
164
+ type ACLAttrConfig struct {
165
+ Type string `json:"type,omitempty" hujson:"Type,omitempty"`
166
+ AllowSetByNode bool `json:"allowSetByNode,omitempty" hujson:"AllowSetByNode,omitempty"`
167
+ BroadcastToPeers []string `json:"broadcastToPeers,omitempty" hujson:"BroadcastToPeers,omitempty"`
168
+ }
169
+
162
170
// Get retrieves the [ACL] that is currently set for the tailnet.
163
171
func (pr * PolicyFileResource ) Get (ctx context.Context ) (* ACL , error ) {
164
172
req , err := pr .buildRequest (ctx , http .MethodGet , pr .buildTailnetURL ("acl" ))
You can’t perform that action at this time.
0 commit comments