mirror of
https://github.com/tailscale/tailscale.git
synced 2025-05-22 15:28:31 +00:00
tailcfg: read max key duration from node cap map [capver 114]
This will be used by clients to make better decisions on when to warn users about impending key expiry. Updates tailscale/corp#16016 Signed-off-by: James Sanderson <jsanderson@tailscale.com>
This commit is contained in:
parent
4c3c04a413
commit
717fa68f3a
@ -158,7 +158,8 @@ type CapabilityVersion int
|
|||||||
// - 111: 2025-01-14: Client supports a peer having Node.HomeDERP (issue #14636)
|
// - 111: 2025-01-14: Client supports a peer having Node.HomeDERP (issue #14636)
|
||||||
// - 112: 2025-01-14: Client interprets AllowedIPs of nil as meaning same as Addresses
|
// - 112: 2025-01-14: Client interprets AllowedIPs of nil as meaning same as Addresses
|
||||||
// - 113: 2025-01-20: Client communicates to control whether funnel is enabled by sending Hostinfo.IngressEnabled (#14688)
|
// - 113: 2025-01-20: Client communicates to control whether funnel is enabled by sending Hostinfo.IngressEnabled (#14688)
|
||||||
const CurrentCapabilityVersion CapabilityVersion = 113
|
// - 114: 2025-01-30: NodeAttrMaxKeyDuration CapMap defined, clients might use it (no tailscaled code change) (#14829)
|
||||||
|
const CurrentCapabilityVersion CapabilityVersion = 114
|
||||||
|
|
||||||
// ID is an integer ID for a user, node, or login allocated by the
|
// ID is an integer ID for a user, node, or login allocated by the
|
||||||
// control plane.
|
// control plane.
|
||||||
@ -2430,6 +2431,12 @@ const (
|
|||||||
// If multiple values of this key exist, they should be merged in sequence
|
// If multiple values of this key exist, they should be merged in sequence
|
||||||
// (replace conflicting keys).
|
// (replace conflicting keys).
|
||||||
NodeAttrServiceHost NodeCapability = "service-host"
|
NodeAttrServiceHost NodeCapability = "service-host"
|
||||||
|
|
||||||
|
// NodeAttrMaxKeyDuration represents the MaxKeyDuration setting on the
|
||||||
|
// tailnet. The value of this key in [NodeCapMap] will be only one entry of
|
||||||
|
// type float64 representing the duration in seconds. This cap will be
|
||||||
|
// omitted if the tailnet's MaxKeyDuration is the default.
|
||||||
|
NodeAttrMaxKeyDuration NodeCapability = "tailnet.maxKeyDuration"
|
||||||
)
|
)
|
||||||
|
|
||||||
// SetDNSRequest is a request to add a DNS record.
|
// SetDNSRequest is a request to add a DNS record.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user