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

Feature: allow usage of authkey without warning #110

Open
bram-arcsec opened this issue Feb 2, 2024 · 3 comments
Open

Feature: allow usage of authkey without warning #110

bram-arcsec opened this issue Feb 2, 2024 · 3 comments

Comments

@bram-arcsec
Copy link

The README recommends the use of the OAuth API to register the client. There seems to be no fine grained permissions to limit the usage of the OAuth credentials to only register devices to a certain tag. If the key is exposed somehow it can impact the security of your Tailnet.

With the authkey you can restrict the devices to a certain tag (that can be used in a ACL to restrict the runners to certain parts of the network).

What was the reasoning to retire the authkey functionality?

@evilhamsterman
Copy link

OAuth clients can restrict devices to certain tags, in fact you are are required to use tags unlike Auth keys which you can use without tags.

From the documentation https://tailscale.com/kb/1215/oauth-clients#generating-long-lived-auth-keys

When you create an OAuth client with the scope devices, you must select one or more ACL tags, which can be any tag or set of tags in your tailnet. Auth keys created with this client must have those exact tags, or tags owned by the client’s tags. Additionally, these tags need to be specified in the API call.

And when you generate an OAuth client with device:write permissions it forces you to select a tag(s) before it will generate the client
image

@GustavoKatel
Copy link

this info should be on the readme

@sylr
Copy link

sylr commented Apr 5, 2024

this info should be on the readme

Absolutely, the README should explain what are the least scopes needed for an Oauth Client.

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

No branches or pull requests

4 participants