You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you're trying to create resource tailscale_tailnet_key using scoped OAuth Client, with more than 1 allowed tag, but you create tailscale_tailnet_key only for 1 tag, you receive error requested tags are invalid or not permitted
When you use API access tokens or OAuth Client with only 1 allowed tag tag:test_tag, you get no errors.
To Reproduce
Steps to reproduce the behaviour:
Create OAuth Client with Devicesread\write permissions with allowed two tags tag:test_tag, tag:test_tag_2
Export TAILSCALE_OAUTH_CLIENT_ID and TAILSCALE_OAUTH_CLIENT_SECRET to env
Use this terraform code to create tailscale_tailnet_key resource
When you create an OAuth client with the scope devices, you must select one or more 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.
This means that if you have something like the following in the policy file:
and both test-tag and test-tag-2 were added to the OAuth client when it was created, then the tags section on tailscale_tailnet_key must include bothtest-tag and test-tag-2.
What you might want to be doing here instead if you want to be able to specify eithertest-tag or test-tag-2 in the tags for tailscale_tailnet_key is have something like the following in the policy file:
Describe the bug
When you're trying to create resource
tailscale_tailnet_key
using scoped OAuth Client, with more than 1 allowed tag, but you createtailscale_tailnet_key
only for 1 tag, you receive errorrequested tags are invalid or not permitted
When you use API access tokens or OAuth Client with only 1 allowed tag
tag:test_tag
, you get no errors.To Reproduce
Steps to reproduce the behaviour:
Devices
read\write
permissions with allowed two tagstag:test_tag, tag:test_tag_2
TAILSCALE_OAUTH_CLIENT_ID
andTAILSCALE_OAUTH_CLIENT_SECRET
to envtailscale_tailnet_key
resourcerequested tags [tag:test_tag] are invalid or not permitted
Expected behaviour
tailscale_tailnet_key
createdDesktop (please complete the following information):
1.3.4
0.16.2
and0.17.1
The text was updated successfully, but these errors were encountered: