-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add Tailscale authentication modes
- Loading branch information
1 parent
c871e5c
commit 8ea80c1
Showing
10 changed files
with
112 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
--- | ||
title: Tailscale Authentication | ||
next: /docs/scenarios | ||
--- | ||
|
||
|
||
## OAuth | ||
|
||
{{% steps %}} | ||
|
||
### Disable AuthKey | ||
|
||
OAuth authentication mode is enable if no AuthKey is set in the configuration | ||
for Tailscale provider. | ||
|
||
Like: | ||
|
||
```yaml {filename="/config/tsdproxy.yaml"} | ||
tailscale: | ||
providers: | ||
default: | ||
authKey: "" | ||
authKeyFile: "" | ||
``` | ||
When the proxy starts, it will wait to be authenticated with the Tailscale. | ||
### Authenticate | ||
Go to TSDProxy Dashboard and click on the Proxy that should show "Authentication" status. | ||
>[!TIP] | ||
> Set "Ephemeral" to false in the Tailscale provider to avoid the need of | ||
authentication next time. See [docker Ephemeral label](../../docker/#tsdproxyephemeral) | ||
or [Proxy List configuration](../../list/#proxy-list-file-options) | ||
{{% /steps %}} | ||
## AuthKey | ||
{{% steps %}} | ||
### Generate Authkey | ||
1. Go to [https://login.tailscale.com/admin/settings/keys](https://login.tailscale.com/admin/settings/keys) | ||
2. Click in "Generate auth key" | ||
3. Add a Description | ||
4. Enable Reusable | ||
5. Enable Ephemeral | ||
6. Add Tags if you need | ||
7. Click in "Generate key" | ||
>[!WARNING] | ||
> If tags were added to the key, all proxies initialized with the same authkey | ||
> will get the same tags. | ||
> Add a new Tailscale provider to the configuration if | ||
> you need to use different) | ||
### Add to configuration | ||
Add you key to the configuration as follow: | ||
```yaml {filename="/config/tsdproxy.yaml"} | ||
tailscale: | ||
providers: | ||
default: | ||
authKey: "GENERATED KEY HERE" | ||
authKeyFile: "" | ||
``` | ||
### Restart | ||
Restart TSDProxy | ||
{{% /steps %}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
github.com/imfing/hextra v0.9.0 h1:1UyLZgS1eayce2ETCOjAQssXpkRz3HDrIs/fljH0lkU= | ||
github.com/imfing/hextra v0.9.0/go.mod h1:cEfel3lU/bSx7lTE/+uuR4GJaphyOyiwNR3PTqFTXpI= | ||
github.com/imfing/hextra v0.9.3 h1:p4vDm2TSgt3RpJdJm2mqkpoJCH2S08wzySyyYodtgCc= | ||
github.com/imfing/hextra v0.9.3/go.mod h1:cEfel3lU/bSx7lTE/+uuR4GJaphyOyiwNR3PTqFTXpI= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters