tailscale / tailscale/tailscale

backend error: invalid key: API key <KEY> not valid

Open
#9,715 15 comments 9 reactions 1 assignee Claimed by @willnorris View on GitHub
bug L1 Very few P1 Nuisance T5 Usability
Dominant language
Go
Stars
36.5k
Forks
3.2k
Avg merge
1d 23h
Merged PRs (30d)
132

Description

### What is the issue?

I get the error: `backend error: invalid key: API key not valid`
when I try to use a pre-approved key to add my Mac book as follows:
```
tailscale up --authkey tskey-auth-xxxxx
```

### Steps to reproduce

1. Generate auth key from https://login.tailscale.com/admin/settings/keys
2. Go to mac book and run `tailscale up --authkey tskey-auth-xxxxx`
3. It did work once, but then I removed the device from the admin console and tried 5 more times, and it failed each time.

### Are there any recent changes that introduced the issue?

_No response_

### OS

macOS

### OS version

Monterey version 12.0.1

### Tailscale version

1.50.1

### Other software

_No response_

### Bug report

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.