Commit Graph

2772 Commits

Author SHA1 Message Date
Juan Font 874aa4277d
Minor changes in the README.md 2021-07-03 12:01:19 +02:00
Juan Font b161a92e58 Initial work on ACLs 2021-07-03 11:55:32 +02:00
Juan Font 95fee5aa6f
Merge pull request #43 from juanfont/use-plurals-for-cmds
Change all commands to plural words
2021-06-29 23:38:03 +02:00
Juan Font Alonso f5b8a3f710 Make all commands a plural word 2021-06-28 20:04:05 +02:00
Juan Font ba87ade9c5
Merge pull request #42 from juanfont/tailscale-1.8.x
Update Headscale to Tailscale 1.10
2021-06-26 18:36:46 +02:00
Juan Font Alonso aa27709e60 Update code to Tailscale 1.10 2021-06-25 18:57:08 +02:00
Juan Font Alonso 736182f651 Update dependencies, including Tailscale 1.10.x 2021-06-25 18:56:49 +02:00
Juan Font c4aa9d8aed
Merge pull request #41 from juanfont/gorm2
Migrate to GORM 2.0
2021-06-25 10:00:13 +02:00
Juan Font Alonso d8e0b16512 Do not apply the FK migrations on startup 2021-06-24 23:05:26 +02:00
Juan Font Alonso d67be9ef58 go.mod updates 2021-06-24 15:49:27 +02:00
Juan Font Alonso 69ba750b38 Update Headscale to depend on gorm v2 2021-06-24 15:44:19 +02:00
Juan Font df0d214faf
Merge pull request #38 from cmars/k8s
Add k8s deployment, standalone app Dockerfile.
2021-06-21 21:18:41 +02:00
Juan Font 73186eeb2f
Merge pull request #40 from cmars/upstream-fix-nodes-nil-lastseen
Fix nil dereference in nodes list command.
2021-06-20 11:12:10 +02:00
Casey Marshall fdcd3bb574
Fix nil dereference in nodes list command.
Fixes a nil pointer dereference observed when listing nodes that have
not yet connected.

```
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xb931a4]

goroutine 1 [running]:
github.com/juanfont/headscale/cmd/headscale/cli.glob..func8(0x13c93e0, 0xc0004c4220, 0x0, 0x2)
	/go/src/headscale/cmd/headscale/cli/nodes.go:74 +0x364
github.com/spf13/cobra.(*Command).execute(0x13c93e0, 0xc0004c41e0, 0x2, 0x2, 0x13c93e0, 0xc0004c41e0)
	/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:856 +0x2c2
github.com/spf13/cobra.(*Command).ExecuteC(0x13ca2e0, 0xc000497110, 0xe76416, 0x6)
	/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:960 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
	/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:897
main.main()
	/go/src/headscale/cmd/headscale/headscale.go:89 +0x805
command terminated with exit code 2
```
2021-06-19 18:20:27 -05:00
Casey Marshall c64d756ea7
Add k8s deployment, standalone app Dockerfile.
Tested with Rancher k3s. See k8s/README.md for site configuration and
deployment instructions.

Add cert-manager, tls, remote headscale script.
2021-06-18 12:45:21 -05:00
Juan Font a63fb6b007
Update README.me on how to clear tailscaled data (#37) 2021-06-17 14:22:38 +02:00
Juan Font Alonso 27e97cbd09 Use crosscompiling and enable CGO in goreleaser 2021-06-16 19:24:30 +02:00
Juan Font Alonso 39550e262c Improved readme 2021-06-16 19:05:30 +02:00
Juan Font cfef55447f
Fix CI badge 2021-06-15 00:06:03 +02:00
Juan Font 9c276f33bd
Change the README to include the new releases 2021-06-14 22:21:54 +02:00
Juan Font 6df90a922c
Merge pull request #35 from juanfont/goreleaser
Use goreleaser to generate binary builds
2021-06-14 16:20:57 +02:00
Juan Font da8014074c Added missing goreleaser file 2021-06-14 09:17:23 +02:00
Juan Font 42e147e46f Keep make build, just as an extra test 2021-06-13 15:04:30 +02:00
Juan Font 61054638d1 Use goreleaser on new tags 2021-06-13 13:13:17 +02:00
Juan Font e085d733d5 Rename original CI pipeline to test 2021-06-13 13:12:48 +02:00
Juan Font 6e86b2af0c
Merge pull request #34 from juanfont/fix-polling-race
Fix a race condition when a client closes the connection
2021-06-09 20:56:58 +02:00
Juan Font Alonso 5db7716be2 Reduce the mutex size when the client closes the connection 2021-06-09 20:55:25 +02:00
Juan Font Alonso cb1a81fe4c Close the update channel when the client actually closes the connection. Fixes #32. 2021-06-08 19:19:40 +02:00
Juan Font f2e1e42144
Merge pull request #33 from juanfont/fix-nodekey-change
Handle client sending new NodeKey
2021-06-07 09:11:12 +02:00
Juan Font Alonso aab0bfe2d5 Removed redundant statement 2021-06-05 12:21:49 +02:00
Juan Font Alonso 47b22f3950 Minor improvement on login 2021-06-05 12:19:48 +02:00
Juan Font Alonso d4c2870d7e Handle client sending new NodeKey (fixes #32) 2021-06-05 12:13:55 +02:00
Juan Font Alonso 0fcd92fcce Minor fix to help testing 2021-06-05 11:13:28 +02:00
Juan Font 094fde36d1
Merge pull request #31 from juanfont/improving-client-startup
Improving how headscale handles the client startup process
2021-05-30 00:05:40 +02:00
Juan Font Alonso 4be39f9b83 Improved log messages, and case That Should Never Happen 2021-05-26 21:39:57 +02:00
Juan Font Alonso 064e448d22 Improved tailnode start up handling 2021-05-24 21:59:03 +02:00
Juan Font d1be440c89
Merge pull request #30 from cure/bugfix-and-more-tests
a bunch of smaller fixes
2021-05-24 19:52:38 +02:00
Ward Vandewege d1c3faae5f Remove superfluous test support code. Fix bug in node list cli command.
Add tests.
2021-05-23 09:55:15 -04:00
Juan Font 6a3b171e99
Merge pull request #29 from cure/add-ephemeral-node-support
Add support for ephemeral nodes via a special type of pre-auth key.
2021-05-23 11:39:16 +02:00
Ward Vandewege 41f6740ddd Add support for ephemeral nodes via a special type of pre-auth key. Add
tests for that feature.

Other fixes: clean up a few typos in comments. Fix a bug that caused the
tests to run four times each. Be more consistent in the use of log
rather than fmt to print errors and notices.
2021-05-22 20:18:29 -04:00
Juan Font 1faed2764f
Merge pull request #28 from juanfont/sqlite-support-plus-integration
Adding SQLite support
2021-05-18 23:49:04 +02:00
Juan Font Alonso 13b7b3ee8a Fix tests 2021-05-18 23:33:18 +02:00
Juan Font Alonso 5a42bace67 Use OS-independent paths for the abs method 2021-05-18 23:33:08 +02:00
Juan Font Alonso 460a23cf2b Check for abs/rel path in db_path 2021-05-19 01:28:47 +02:00
Juan Font Alonso b0adefc540 Remove trailing space 2021-05-19 01:20:28 +02:00
Juan Font Alonso 370fe3b192 Removed wrongly copypasted method 2021-05-16 16:47:48 +02:00
Juan Font Alonso 374a6eef7e Fixed panic when sending keep alives to a disconnected node 2021-05-15 18:12:22 +02:00
Juan Font Alonso 93a9284d84 Updated README with sqlite instructions 2021-05-15 14:38:20 +02:00
Juan Font Alonso 0b8d4a24ae minor update to gitignore 2021-05-15 14:36:56 +02:00
Juan Font Alonso da9a07ddf3 Added tests for the sqlite-based config 2021-05-15 14:36:13 +02:00