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

ipn/ipnlocal: add support for multiple profiles #6022

Merged
merged 2 commits into from Nov 11, 2022
Merged

ipn/ipnlocal: add support for multiple profiles #6022

merged 2 commits into from Nov 11, 2022

Conversation

maisem
Copy link
Collaborator

@maisem maisem commented Oct 22, 2022

Signed-off-by: Maisem Ali maisem@tailscale.com

Updates #713

@maisem maisem force-pushed the maisem/fas2 branch 5 times, most recently from f99bf94 to 3b4e84a Compare October 23, 2022 17:27
types/views/views.go Outdated Show resolved Hide resolved
ipn/backend.go Outdated Show resolved Hide resolved
ipn/ipnlocal/local.go Outdated Show resolved Hide resolved
ipn/ipnlocal/local.go Outdated Show resolved Hide resolved
@maisem maisem force-pushed the maisem/fas2 branch 3 times, most recently from 6af1014 to c4bf475 Compare October 25, 2022 01:22
@maisem maisem requested a review from bradfitz October 25, 2022 01:22
@maisem maisem force-pushed the maisem/fas2 branch 2 times, most recently from 10d4aec to 17e9a06 Compare October 25, 2022 23:39
cmd/tailscale/cli/up.go Outdated Show resolved Hide resolved
ipn/ipnlocal/local.go Show resolved Hide resolved
ipn/ipnlocal/profiles.go Outdated Show resolved Hide resolved
ipn/ipnlocal/profiles.go Outdated Show resolved Hide resolved
ipn/ipnlocal/profiles.go Outdated Show resolved Hide resolved
ipn/ipnlocal/profiles.go Outdated Show resolved Hide resolved
ipn/store.go Outdated Show resolved Hide resolved
@maisem maisem force-pushed the maisem/fas2 branch 4 times, most recently from 6d5497a to 4246439 Compare November 9, 2022 16:56
@maisem maisem requested a review from mihaip November 9, 2022 17:51
cmd/tailscale/cli/up.go Outdated Show resolved Hide resolved
ipn/store.go Outdated Show resolved Hide resolved
control/controlclient/auto.go Outdated Show resolved Hide resolved
ipn/backend.go Show resolved Hide resolved
ipn/ipnlocal/local.go Show resolved Hide resolved
ipn/ipnlocal/profiles.go Outdated Show resolved Hide resolved
ipn/ipnlocal/profiles.go Outdated Show resolved Hide resolved
ipn/ipnlocal/profiles.go Outdated Show resolved Hide resolved
ipn/ipnlocal/profiles.go Outdated Show resolved Hide resolved
ipn/ipnlocal/profiles.go Outdated Show resolved Hide resolved
@maisem maisem force-pushed the maisem/fas2 branch 5 times, most recently from 11f35db to 3b7e842 Compare November 11, 2022 05:32
Signed-off-by: Maisem Ali <maisem@tailscale.com>
Signed-off-by: Maisem Ali <maisem@tailscale.com>
@maisem maisem merged commit f00a496 into main Nov 11, 2022
@maisem maisem deleted the maisem/fas2 branch November 11, 2022 05:45
maisem pushed a commit that referenced this pull request Nov 12, 2022
Exposes a REST-y API for interacting with the profile switching
introduced in #6022.

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
mihaip added a commit that referenced this pull request Nov 14, 2022
Exposes a REST-y API for interacting with the profile switching
introduced in #6022.

Updates #713

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
mihaip added a commit that referenced this pull request Nov 14, 2022
Exposes a REST-y API for interacting with the profile switching
introduced in #6022.

Updates #713

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
mihaip added a commit that referenced this pull request Nov 14, 2022
Exposes a REST-y API for interacting with the profile switching
introduced in #6022.

Updates #713

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
mihaip added a commit that referenced this pull request Nov 16, 2022
It was previously only invoked from the CLI, which only runs from the
main .app. However, starting with #6022 we also invoke it from the
network extension.

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
mihaip added a commit that referenced this pull request Nov 16, 2022
It was previously only invoked from the CLI, which only runs from the
main .app. However, starting with #6022 we also invoke it from the
network extension.

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
mihaip added a commit that referenced this pull request Jan 27, 2023
The iOS has a command to reset the persisted state of the app, but it
was doing its own direct keychain manipulation. This proved to be
brittle (since we changed how preferences are stored with #6022), so
we instead add a LocalAPI endpoint to do do this, which can be updated
in tandem.

This clears the same state as the iOS implementation (tailscale/corp#3186),
that is the machine key and preferences (which includes the node key).
Notably this does not clear the logtail ID, so that logs from the device
still end up in the same place.

Updates tailscale/corp#8923

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
mihaip added a commit that referenced this pull request Jan 28, 2023
The iOS has a command to reset the persisted state of the app, but it
was doing its own direct keychain manipulation. This proved to be
brittle (since we changed how preferences are stored with #6022), so
we instead add a LocalAPI endpoint to do do this, which can be updated
in tandem.

This clears the same state as the iOS implementation (tailscale/corp#3186),
that is the machine key and preferences (which includes the node key).
Notably this does not clear the logtail ID, so that logs from the device
still end up in the same place.

Updates tailscale/corp#8923

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
mihaip added a commit that referenced this pull request Jan 28, 2023
The iOS has a command to reset the persisted state of the app, but it
was doing its own direct keychain manipulation. This proved to be
brittle (since we changed how preferences are stored with #6022), so
we instead add a LocalAPI endpoint to do do this, which can be updated
in tandem.

This clears the same state as the iOS implementation (tailscale/corp#3186),
that is the machine key and preferences (which includes the node key).
Notably this does not clear the logtail ID, so that logs from the device
still end up in the same place.

Updates tailscale/corp#8923

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
mihaip added a commit that referenced this pull request Jan 28, 2023
The iOS has a command to reset the persisted state of the app, but it
was doing its own direct keychain manipulation. This proved to be
brittle (since we changed how preferences are stored with #6022), so
we instead add a LocalAPI endpoint to do do this, which can be updated
in tandem.

This clears the same state as the iOS implementation (tailscale/corp#3186),
that is the machine key and preferences (which includes the node key).
Notably this does not clear the logtail ID, so that logs from the device
still end up in the same place.

Updates tailscale/corp#8923

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
mihaip added a commit that referenced this pull request Jan 28, 2023
The iOS has a command to reset the persisted state of the app, but it
was doing its own direct keychain manipulation. This proved to be
brittle (since we changed how preferences are stored with #6022), so
we instead add a LocalAPI endpoint to do do this, which can be updated
in tandem.

This clears the same state as the iOS implementation (tailscale/corp#3186),
that is the machine key and preferences (which includes the node key).
Notably this does not clear the logtail ID, so that logs from the device
still end up in the same place.

Updates tailscale/corp#8923

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
coadler pushed a commit to coder/tailscale that referenced this pull request Feb 2, 2023
Exposes a REST-y API for interacting with the profile switching
introduced in tailscale#6022.

Updates tailscale#713

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
coadler pushed a commit to coder/tailscale that referenced this pull request Feb 2, 2023
It was previously only invoked from the CLI, which only runs from the
main .app. However, starting with tailscale#6022 we also invoke it from the
network extension.

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
coadler pushed a commit to coder/tailscale that referenced this pull request Feb 2, 2023
The iOS has a command to reset the persisted state of the app, but it
was doing its own direct keychain manipulation. This proved to be
brittle (since we changed how preferences are stored with tailscale#6022), so
we instead add a LocalAPI endpoint to do do this, which can be updated
in tandem.

This clears the same state as the iOS implementation (tailscale/corp#3186),
that is the machine key and preferences (which includes the node key).
Notably this does not clear the logtail ID, so that logs from the device
still end up in the same place.

Updates tailscale/corp#8923

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
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

4 participants