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

Error message for missing tag is misleading #78

Open
v21 opened this issue Jul 26, 2023 · 4 comments · May be fixed by #82
Open

Error message for missing tag is misleading #78

v21 opened this issue Jul 26, 2023 · 4 comments · May be fixed by #82

Comments

@v21
Copy link

v21 commented Jul 26, 2023

If you leave out the "tag" parameter, you get this message: "OAuth identity empty, Maybe you need to populate it in the Secrets for your workflow, see more in https://docs.github.com/en/actions/security-guides/encrypted-secrets and https://tailscale.com/s/oauth-clients".

Ideally it should mention that the tag parameter might be the issue, or ideally flag a unique error.

@pmocek
Copy link

pmocek commented Dec 12, 2023

I see two problems being sort of muddled together, here.

  1. This error message includes a term, "OAuth identity," that is not mentioned in any of Tailscale's OAuth client or GitHub Actions action documentation.
    a. Possibly when @DentonGentry used the term, he meant to refer to the action's oauth-client-id input parameter, which when used must contain what the Tailscale docs refer to as an OAuth client's client ID, which seems to correspond to an OAuth2 client identifier.
    b. Simple solution: s/OAuth identity/OAuth client ID/ or s/OAuth identity/Input parameter oauth-client-id/
  2. This error message is provided not only when an OAuth client ID is expected but not provided, but also when an OAuth secret is provided without the required accompanying set of ACL tags.
    a. The patch supplied by @thisisparker attempts to solve this problem.

@rwenz3l
Copy link

rwenz3l commented Jun 12, 2024

Seconding this that the message is very misleading. I ran into this today and was very confused, because I double checked that the secrets exist and contain the values. There should be an emphasis in the README for the tags:

tags is a comma-separated list of one or more ACL Tags for the node. ⚠️ At least one tag is required!

@ji-podhead
Copy link

ji-podhead commented Jul 17, 2024

oh man not cool, please give better error report for this, or example workflow +acl and so on.
just starting out with tailscale and was really confused about this error

@shaft3796
Copy link

+1, got very confused, thankfully I found this thread.

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 a pull request may close this issue.

5 participants