tailscale / github-action

A GitHub Action to connect your workflow to your Tailscale network.
BSD 3-Clause "New" or "Revised" License
519 stars 78 forks source link

Hangs when connecting tailscale #99

Closed offbyone closed 7 months ago

offbyone commented 7 months ago

I have this action run that should be setting up tailscale:

https://github.com/ChicagoWorldcon/infrastructure/actions/runs/7065526605/job/19235706210

I have configured my OAuth client and provided that as organization secrets, and wired them in to that workflow.

I can see the machines being created and appearing in my tailscale admin, but the command never returns

The logs for old runs don't appear to allow the tailscale section to expand, but here's what they look like:

image
offbyone commented 7 months ago

I've done a bit further investigation here; tailscale itself seems to be running fine, but what isn't is that all outbound network connectivity on the actions runner seems to have stopped functioning completely as soon as I set up an exit node. If I leave the exit node off, then the whole purpose of this addition isn't working -- I need an exit node so that the action can use a static IP to talk to an API that requires me to manually add client IP address -- but that feature seems to break all other GitHub actions.

DentonGentry commented 7 months ago

I don't have a way to know what tailnet this is, but one possibility is that the ACLs do not allow the tag being used for the GitHub action to access autogroup:internet

If you can generate a tailscale bugreport from any other node on the tailnet, we can use it to look up the account. Alternately you can contact support and reference https://github.com/tailscale/github-action/issues/99

offbyone commented 7 months ago

That was, in fact, the issue; I had set the ACL to allow access to the bastion node, but not to the autogroup.

Sorry, folks; PEBKAC here.