Juan Font
70e08462b3
Merge branch 'main' into web-auth-flow-tests
2022-11-13 16:51:53 +01:00
Juan Font Alonso
a231ece825
Added ts2019 buildtag to CI config
...
Otherwise we are getting utils.go:119:6: `decode` is unused (deadcode)
Signed-off-by: Juan Font Alonso <juanfontalonso@gmail.com >
2022-11-13 13:34:08 +01:00
Juan Font Alonso
ae43d82a33
Fixed gofumpt linting
2022-11-13 13:18:00 +01:00
Juan Font Alonso
ad3c36fd07
Wait for the tailscale clients to be ready in the web auth CreateHeadscaleEnv
...
Signed-off-by: Juan Font Alonso <juanfontalonso@gmail.com >
2022-11-13 13:13:29 +01:00
Juan Font Alonso
f176503448
Added WaitForReady() to Tailscale interface
...
When using running `tailscale up` in the AuthKey flow process, the tailscale client immediately enters PollMap after registration - avoiding a race condition.
When using the web auth (up -> go to the Control website -> CLI `register`) the client is polling checking if it has been authorized. If we immediately ask for the client IP, as done in CreateHeadscaleEnv() we might have the client in NotReady status.
This method provides a way to wait for the client to be ready.
Signed-off-by: Juan Font Alonso <juanfontalonso@gmail.com >
2022-11-13 13:13:29 +01:00
Juan Font Alonso
f7ad88aa08
Print the name of the registered machine
2022-11-13 13:13:29 +01:00
Juan Font Alonso
f63d22655c
Fixed conflict
2022-11-13 13:13:29 +01:00
Juan Font Alonso
89c468fc43
Added makefile and .github
2022-11-13 13:13:29 +01:00
Kristoffer Dalby
b0fda6b216
Merge branch 'main' into web-auth-flow-tests
2022-11-10 16:15:17 +00:00
Juan Font Alonso
154fb59bdb
Run auth test in main actions file
2022-11-04 16:14:57 +01:00
Juan Font
d3e9703fb5
Update integration/auth_web_flow_test.go
...
Co-authored-by: Kristoffer Dalby <kristoffer@dalby.cc >
2022-11-04 16:11:10 +01:00
Juan Font
7ce3f8c7d1
Update Makefile
...
Co-authored-by: Kristoffer Dalby <kristoffer@dalby.cc >
2022-11-04 16:10:59 +01:00
Kristoffer Dalby
58c8633cc1
Merge branch 'main' into web-auth-flow-tests
2022-11-04 13:05:39 +01:00
Juan Font Alonso
b3f5af30a4
Linting fixes + disable interfacebloat linter
2022-11-04 11:41:54 +01:00
Kristoffer Dalby
9f64ac8a33
Fix bitrotted versions in gh ci
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
2022-11-04 11:41:54 +01:00
Kristoffer Dalby
aa1cc05cfb
Run on correct change
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
2022-11-04 11:41:54 +01:00
Kristoffer Dalby
670ef9a93e
Add experimental kradalby gh runner
...
Remove old v2 runner in favour of self-hosted
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
2022-11-04 11:41:54 +01:00
Juan Font Alonso
987abcfdce
More linting fixes
2022-11-04 00:27:00 +01:00
Juan Font Alonso
c70f5696dc
Linting fixes
2022-11-04 00:23:20 +01:00
Juan Font Alonso
825e88311e
Renamed integration tests for auth
2022-11-04 00:16:19 +01:00
Juan Font Alonso
bbc8cb11da
Added makefile and .github
2022-11-04 00:11:34 +01:00
Juan Font Alonso
3a6ef6bece
Work in progress for web auth flow
2022-11-04 00:10:36 +01:00
Juan Font Alonso
b2dc480f22
Return the real port of the container
2022-11-04 00:05:01 +01:00
Juan Font Alonso
5d7eae46f8
Always attempt to parse login url
2022-11-04 00:04:04 +01:00
Juan Font Alonso
45cb0f3fa3
Typo
2022-11-03 23:59:06 +01:00
Juan Font Alonso
658478cba3
Add web flow auth basic integration test
2022-11-03 17:40:09 +01:00
Juan Font Alonso
ec90e9d716
Update Tailscale interface with new Execute signature
2022-11-03 17:00:23 +01:00
Juan Font Alonso
181f1eeb4f
Added method to run tailscale up without authkey
2022-11-03 16:56:19 +01:00
Juan Font Alonso
e270cf6d20
Return stderr in tsic.Execute
2022-11-03 16:50:20 +01:00