Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Edit ¶
Edit applies the catalog policy to a HuJSON policy file. Comments and keys other than tagOwners, autoApprovers, and grants stay. Replacing a grant's dst drops comments on that value. prune rewrites the first grant whose destinations are all svc: names and whose ports are only 443, setting dst to the catalog's published services. tagOwners stay a union: owners already on the tag are not removed. The input string is returned unchanged when nothing was edited.
Types ¶
type Desired ¶
type Desired struct {
HostTag string // e.g. tag:server; empty skips host/tag mutations
TagOwners []string // owners of HostTag; default autogroup:admin
GrantSrc []string
GrantDst []string // svc:name entries
GrantIP []string // always 443
SrcDefaulted bool // GrantSrc was filled because access.src was empty
}
Desired is the catalog-driven slice of the tailnet policy.
func FromCatalog ¶
Click to show internal directories.
Click to hide internal directories.