tailscale / tailscale

The easiest, most secure way to use WireGuard and 2FA.
https://tailscale.com
BSD 3-Clause "New" or "Revised" License
17.51k stars 1.34k forks source link

gitops acl worflow is failing as of 3 weeks ago #12416

Open morganism opened 3 weeks ago

morganism commented 3 weeks ago

What is the issue?

2s 1s 0s 34s Run tailscale/gitops-acl-action@v1 Run actions/setup-go@v4.0.0 Setup go version spec 1.22.1 Attempting to download 1.22.1... matching 1.22.1... Acquiring 1.22.1 from https://github.com/actions/go-versions/releases/download/1.22.1-8166692698/go-1.22.1-linux-x64.tar.gz Extracting Go... /usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /home/runner/work/_temp/51b3e1de-2fa8-4b0f-aede-b8f0c4fe87f3 -f /home/runner/work/_temp/1af0557e-a38e-459a-aec9-b86228182b78 Successfully extracted go to /home/runner/work/_temp/51b3e1de-2fa8-4b0f-aede-b8f0c4fe87f3 Adding to the cache ... Successfully cached go to /opt/hostedtoolcache/go/1.22.1/x64 Added go to the path Successfully set up Go version 1.22.1 /opt/hostedtoolcache/go/1.22.1/x64/bin/go env GOMODCACHE /opt/hostedtoolcache/go/1.22.1/x64/bin/go env GOCACHE /home/runner/go/pkg/mod /home/runner/.cache/go-build Warning: Restore cache failed: Dependencies file is not found in /home/runner/work/tailscale/tailscale. Supported file pattern: go.sum go version go1.22.1 linux/amd64

go env Run go run tailscale.com/cmd/gitops-pusher@v1.62.0 "--policy-file=./policy.hujson" "apply" go: downloading tailscale.com v1.62.0 go: downloading github.com/peterbourgon/ff/v3 v3.4.0 go: downloading github.com/tailscale/hujson v0.0.0-20221223112325-20486734a56a go: downloading golang.org/x/oauth2 v0.16.0 go: downloading go4.org/mem v0.0.0-20220726221520-4f986261bf13 go: downloading golang.org/x/sys v0.17.0 go: downloading github.com/mitchellh/go-ps v1.0.0 go: downloading github.com/fxamacker/cbor/v2 v2.5.0 go: downloading github.com/hdevalence/ed25519consensus v0.2.0 go: downloading golang.org/x/crypto v0.18.0 go: downloading go4.org/netipx v0.0.0-20231129151722-fdeea329fbba go: downloading github.com/jsimonetti/rtnetlink v1.4.0 go: downloading github.com/mdlayher/netlink v1.7.2 go: downloading filippo.io/edwards25519 v1.1.0 go: downloading github.com/x448/float16 v0.8.4 go: downloading github.com/josharian/native v1.1.1-0.20230202152459-5c7d0dd6ab86 go: downloading github.com/mdlayher/socket v0.5.0 go: downloading golang.org/x/net v0.20.0 go: downloading golang.org/x/sync v0.6.0 go: downloading golang.org/x/text v0.14.0 wanted HTTP status code 200 but got 401 exit status 1 Error: Process completed with exit code 1. 0s 0s 0s 0s

Steps to reproduce

The Github action runs on push Deploy ACL step in the workflow action fails

Warning: Restore cache failed: Dependencies file is not found in /home/runner/work/tailscale/tailscale. Supported file pattern: go.sum

Are there any recent changes that introduced the issue?

?

OS

Linux, macOS, iOS, Other

OS version

No response

Tailscale version

1.66.4

Other software

docker

Bug report

No response

noconnor29 commented 2 weeks ago

I've recently been getting a 404 instead of a 401 but have an issue with the same dependency. I first noticed it on Apr. 2 and got a 403 error at the time.

Apr. 2, 2024, v1.62.0

2024-04-02T13:53:27.8074682Z ##[group]Run go run tailscale.com/cmd/gitops-pusher@v1.62.0 "--policy-file=./policy.hujson" "test"
2024-04-02T13:53:27.8076017Z go run tailscale.com/cmd/gitops-pusher@v1.62.0 "--policy-file=./policy.hujson" "test"
2024-04-02T13:53:27.8117257Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2024-04-02T13:53:27.8117838Z env:
2024-04-02T13:53:27.8118520Z   TS_OAUTH_ID: ***
2024-04-02T13:53:27.8119263Z   TS_OAUTH_SECRET: ***
2024-04-02T13:53:27.8119588Z   TS_API_KEY: 
2024-04-02T13:53:27.8119858Z   TS_TAILNET: 
2024-04-02T13:53:27.8120136Z ##[endgroup]
2024-04-02T13:53:27.8663178Z go: downloading tailscale.com v1.62.0
2024-04-02T13:53:28.5745176Z go: downloading github.com/peterbourgon/ff/v3 v3.4.0
2024-04-02T13:53:28.5772760Z go: downloading github.com/tailscale/hujson v0.0.0-20221223112325-20486734a56a
2024-04-02T13:53:28.5997318Z go: downloading golang.org/x/oauth2 v0.16.0
2024-04-02T13:53:29.0264711Z go: downloading go4.org/mem v0.0.0-20220726221520-4f986261bf13
2024-04-02T13:53:29.1571408Z go: downloading golang.org/x/sys v0.17.0
2024-04-02T13:53:29.1576107Z go: downloading github.com/mitchellh/go-ps v1.0.0
2024-04-02T13:53:29.1840534Z go: downloading github.com/fxamacker/cbor/v2 v2.5.0
2024-04-02T13:53:29.2189353Z go: downloading github.com/hdevalence/ed25519consensus v0.2.0
2024-04-02T13:53:29.3401682Z go: downloading golang.org/x/crypto v0.18.0
2024-04-02T13:53:29.5197414Z go: downloading go4.org/netipx v0.0.0-20231129151722-fdeea329fbba
2024-04-02T13:53:29.5416587Z go: downloading github.com/jsimonetti/rtnetlink v1.4.0
2024-04-02T13:53:29.5456066Z go: downloading github.com/mdlayher/netlink v1.7.2
2024-04-02T13:53:29.6034890Z go: downloading github.com/x448/float16 v0.8.4
2024-04-02T13:53:29.6202267Z go: downloading filippo.io/edwards25519 v1.1.0
2024-04-02T13:53:29.6505143Z go: downloading github.com/josharian/native v1.1.1-0.20230202152459-5c7d0dd6ab86
2024-04-02T13:53:29.6656408Z go: downloading github.com/mdlayher/socket v0.5.0
2024-04-02T13:53:29.7511226Z go: downloading golang.org/x/net v0.20.0
2024-04-02T13:53:29.9451420Z go: downloading golang.org/x/sync v0.6.0
2024-04-02T13:53:29.9456399Z go: downloading golang.org/x/text v0.14.0
2024-04-02T13:53:53.8536521Z wanted HTTP status code 200 but got 403
2024-04-02T13:53:53.8542592Z exit status 1

Here's the output from a run form today with v1.66.4


2024-06-18T19:14:26.8250459Z ##[group]Run go run tailscale.com/cmd/gitops-pusher@v1.66.4 "--policy-file=./policy.hujson" "apply"
2024-06-18T19:14:26.8251562Z go run tailscale.com/cmd/gitops-pusher@v1.66.4 "--policy-file=./policy.hujson" "apply"
2024-06-18T19:14:26.8329583Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2024-06-18T19:14:26.8330106Z env:
2024-06-18T19:14:26.8330666Z   TS_OAUTH_ID: ***
2024-06-18T19:14:26.8331325Z   TS_OAUTH_SECRET: ***
2024-06-18T19:14:26.8331680Z   TS_API_KEY: 
2024-06-18T19:14:26.8332077Z   TS_TAILNET: 
2024-06-18T19:14:26.8332412Z ##[endgroup]
2024-06-18T19:14:27.0401089Z go: downloading tailscale.com v1.66.4
2024-06-18T19:14:27.8438447Z go: downloading github.com/peterbourgon/ff/v3 v3.4.0
2024-06-18T19:14:27.8488672Z go: downloading github.com/tailscale/hujson v0.0.0-20221223112325-20486734a56a
2024-06-18T19:14:27.8775229Z go: downloading golang.org/x/oauth2 v0.16.0
2024-06-18T19:14:28.8950740Z go: downloading go4.org/mem v0.0.0-20220726221520-4f986261bf13
2024-06-18T19:14:29.3397263Z go: downloading golang.org/x/sys v0.18.0
2024-06-18T19:14:29.5282610Z go: downloading github.com/mitchellh/go-ps v1.0.0
2024-06-18T19:14:29.5715842Z go: downloading github.com/fxamacker/cbor/v2 v2.5.0
2024-06-18T19:14:29.5861508Z go: downloading github.com/hdevalence/ed25519consensus v0.2.0
2024-06-18T19:14:29.6031821Z go: downloading golang.org/x/crypto v0.21.0
2024-06-18T19:14:30.6162612Z go: downloading go4.org/netipx v0.0.0-20231129151722-fdeea329fbba
2024-06-18T19:14:30.6164592Z go: downloading github.com/jsimonetti/rtnetlink v1.4.0
2024-06-18T19:14:30.6165904Z go: downloading github.com/mdlayher/netlink v1.7.2
2024-06-18T19:14:30.6166905Z go: downloading github.com/x448/float16 v0.8.4
2024-06-18T19:14:30.6167848Z go: downloading filippo.io/edwards25519 v1.1.0
2024-06-18T19:14:30.6169317Z go: downloading github.com/josharian/native v1.1.1-0.20230202152459-5c7d0dd6ab86
2024-06-18T19:14:30.6170606Z go: downloading github.com/mdlayher/socket v0.5.0
2024-06-18T19:14:30.6171598Z go: downloading golang.org/x/net v0.23.0
2024-06-18T19:14:30.6172686Z go: downloading golang.org/x/sync v0.6.0
2024-06-18T19:14:30.6173562Z go: downloading golang.org/x/text v0.14.0
2024-06-18T19:14:53.2812088Z wanted HTTP status code 200 but got 404
2024-06-18T19:14:53.2821036Z exit status 1
2024-06-18T19:14:53.3425017Z ##[error]Process completed with exit code 1.