You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/tailcfg
Naman Sood f157f3288d
cmd/tailscale/cli,ipn/conffile: add declarative config mode for Services (#17435)
This commit adds the subcommands `get-config` and `set-config` to Serve,
which can be used to read the current Tailscale Services configuration
in a standard syntax and provide a configuration to declaratively apply
with that same syntax.

Both commands must be provided with either `--service=svc:service` for
one service, or `--all` for all services. When writing a config,
`--set-config --all` will overwrite all existing Services configuration,
and `--set-config --service=svc:service` will overwrite all
configuration for that particular Service. Incremental changes are not
supported.

Fixes tailscale/corp#30983.

cmd/tailscale/cli: hide serve "get-config"/"set-config" commands for now

tailscale/corp#33152 tracks unhiding them when docs exist.

Signed-off-by: Naman Sood <mail@nsood.in>
2 months ago
..
c2ntypes.go ipn/ipnlocal: add a C2N endpoint for fetching a netmap 3 months ago
derpmap.go tailcfg: add DERPRegion.NoMeasureNoHome, deprecate+document Avoid [cap 115] 9 months ago
proto_port_range.go cmd/tailscale/cli,ipn/conffile: add declarative config mode for Services (#17435) 2 months ago
proto_port_range_test.go tailcfg: implement text encoding for ProtoPortRange 2 years ago
tailcfg.go cmd/tailscale/cli,ipn/conffile: add declarative config mode for Services (#17435) 2 months ago
tailcfg_clone.go util/checkchange: stop using deephash everywhere 2 months ago
tailcfg_test.go tailcfg: add Hostinfo.ExitNodeID to report the selected exit node (#16625) 5 months ago
tailcfg_view.go util/checkchange: stop using deephash everywhere 2 months ago
tka.go tailcfg: add RPC structs for /tka/affected-sigs 3 years ago