Skip to content

deprecate, remove {Node,PeerStatus}.Capabilities #11508

Open

Description

@bradfitz

We're deprecating Node.Capabilities (a []string) in favor of the more expressive Node.CapMap (a map from those same strings, but to zero or more values associated with that capability). (see https://tailscale.com/blog/acl-grants)

One place this shows up is tailscale status --json which has both forms.

We're going to remove the old Capabilities []string in 6 months or so. In the meantime the two will mirror each other, with the older form just lacking arguments.

/cc @maisem

Activity

  1. bradfitz commented on Mar 23, 2024

    @bradfitz
    MemberAuthor

    This arguments-in-string capability string now looks dated too:

    // CapabilityFunnelPorts specifies the ports that the Funnel is available on.
    // The ports are specified as a comma-separated list of port numbers or port
    // ranges (e.g. "80,443,8080-8090") in the ports query parameter.
    // e.g. https://tailscale.com/cap/funnel-ports?ports=80,443,8080-8090
    CapabilityFunnelPorts NodeCapability = "https://tailscale.com/cap/funnel-ports"

    We should probably convert that to a proper argument too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions