Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

all: deprecate Node.Capabilities (more), remove PeerChange.Capabilities [capver 89] #11509

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

bradfitz
Copy link
Member

First we had Capabilities []string. Then
https://tailscale.com/blog/acl-grants (#4217) brought CapMap, a
superset of Capabilities. Except we never really finished the
transition inside the codebase to go all-in on CapMap. This does so.

Notably, this coverts Capabilities on the wire early to CapMap
internally so the code can only deal in CapMap, even against an old
control server.

In the process, this removes PeerChange.Capabilities support, which no
known control plane sent anyway. They can and should use
PeerChange.CapMap instead.

Updates #11508
Updates #4217

@bradfitz bradfitz requested a review from a team as a code owner March 23, 2024 23:27
@bradfitz bradfitz requested a review from maisem March 23, 2024 23:27
cmd/tailscale/cli/serve_legacy_test.go Outdated Show resolved Hide resolved
ipn/ipnlocal/local.go Outdated Show resolved Hide resolved
@bradfitz bradfitz force-pushed the bradfitz/merge_capabilities_into_mapcap branch 2 times, most recently from 2e26df4 to f4814c7 Compare March 24, 2024 01:02
…es [capver 89]

First we had Capabilities []string. Then
https://tailscale.com/blog/acl-grants (#4217) brought CapMap, a
superset of Capabilities. Except we never really finished the
transition inside the codebase to go all-in on CapMap. This does so.

Notably, this coverts Capabilities on the wire early to CapMap
internally so the code can only deal in CapMap, even against an old
control server.

In the process, this removes PeerChange.Capabilities support, which no
known control plane sent anyway. They can and should use
PeerChange.CapMap instead.

Updates #11508
Updates #4217

Change-Id: I872074e226b873f9a578d9603897b831d50b25d9
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
@bradfitz bradfitz force-pushed the bradfitz/merge_capabilities_into_mapcap branch from f4814c7 to 506e87b Compare March 24, 2024 01:08
@bradfitz
Copy link
Member Author

PTAL. Tests pass now.

Copy link
Collaborator

@maisem maisem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming the URL works

@bradfitz bradfitz merged commit 7b34154 into main Mar 25, 2024
46 checks passed
@bradfitz bradfitz deleted the bradfitz/merge_capabilities_into_mapcap branch March 25, 2024 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants