Commit graph

  • da8014074c Added missing goreleaser file Juan Font 2021-06-14 09:17:23 +02:00
  • 42e147e46f Keep make build, just as an extra test Juan Font 2021-06-13 15:04:30 +02:00
  • 61054638d1 Use goreleaser on new tags Juan Font 2021-06-13 13:13:17 +02:00
  • e085d733d5 Rename original CI pipeline to test Juan Font 2021-06-13 13:12:48 +02:00
  • 6e86b2af0c
    Merge pull request #34 from juanfont/fix-polling-race Juan Font 2021-06-09 20:56:58 +02:00
  • 5db7716be2 Reduce the mutex size when the client closes the connection Juan Font Alonso 2021-06-09 20:55:25 +02:00
  • cb1a81fe4c Close the update channel when the client actually closes the connection. Fixes #32. Juan Font Alonso 2021-06-08 19:19:40 +02:00
  • f2e1e42144
    Merge pull request #33 from juanfont/fix-nodekey-change Juan Font 2021-06-07 09:11:12 +02:00
  • aab0bfe2d5 Removed redundant statement Juan Font Alonso 2021-06-05 12:21:49 +02:00
  • 47b22f3950 Minor improvement on login Juan Font Alonso 2021-06-05 12:19:48 +02:00
  • d4c2870d7e Handle client sending new NodeKey (fixes #32) Juan Font Alonso 2021-06-05 12:13:55 +02:00
  • 0fcd92fcce Minor fix to help testing Juan Font Alonso 2021-06-05 11:13:28 +02:00
  • 094fde36d1
    Merge pull request #31 from juanfont/improving-client-startup Juan Font 2021-05-30 00:05:40 +02:00
  • 4be39f9b83 Improved log messages, and case That Should Never Happen Juan Font Alonso 2021-05-26 21:39:57 +02:00
  • 064e448d22 Improved tailnode start up handling Juan Font Alonso 2021-05-24 21:59:03 +02:00
  • d1be440c89
    Merge pull request #30 from cure/bugfix-and-more-tests Juan Font 2021-05-24 19:52:38 +02:00
  • d1c3faae5f Remove superfluous test support code. Fix bug in node list cli command. Add tests. Ward Vandewege 2021-05-23 09:55:15 -04:00
  • 6a3b171e99
    Merge pull request #29 from cure/add-ephemeral-node-support Juan Font 2021-05-23 11:39:16 +02:00
  • 41f6740ddd Add support for ephemeral nodes via a special type of pre-auth key. Add tests for that feature. Ward Vandewege 2021-05-22 20:15:29 -04:00
  • 1faed2764f
    Merge pull request #28 from juanfont/sqlite-support-plus-integration Juan Font 2021-05-18 23:49:04 +02:00
  • 13b7b3ee8a Fix tests Juan Font Alonso 2021-05-18 23:33:18 +02:00
  • 5a42bace67 Use OS-independent paths for the abs method Juan Font Alonso 2021-05-18 23:33:08 +02:00
  • 460a23cf2b Check for abs/rel path in db_path Juan Font Alonso 2021-05-19 01:28:47 +02:00
  • b0adefc540 Remove trailing space Juan Font Alonso 2021-05-19 01:20:28 +02:00
  • 370fe3b192 Removed wrongly copypasted method Juan Font Alonso 2021-05-16 16:47:48 +02:00
  • 374a6eef7e Fixed panic when sending keep alives to a disconnected node Juan Font Alonso 2021-05-15 18:12:22 +02:00
  • 93a9284d84 Updated README with sqlite instructions Juan Font Alonso 2021-05-15 14:38:20 +02:00
  • 0b8d4a24ae minor update to gitignore Juan Font Alonso 2021-05-15 14:36:56 +02:00
  • da9a07ddf3 Added tests for the sqlite-based config Juan Font Alonso 2021-05-15 14:36:13 +02:00
  • 216c6d85b2 Added support for sqlite as database backend Juan Font Alonso 2021-05-15 14:32:26 +02:00
  • 619201ec9b
    Merge pull request #27 from juanfont/change-json-field Juan Font 2021-05-15 11:59:07 +02:00
  • ad4a61cc7b update in sum Juan Font Alonso 2021-05-15 00:08:22 +02:00
  • 84aba256bb Added some deps + updates Juan Font Alonso 2021-05-15 00:06:17 +02:00
  • e0d916bb5a Remove dependency on postgres' jsonb Juan Font Alonso 2021-05-15 00:05:41 +02:00
  • e7a626d3cc
    Merge pull request #26 from cure/more_tests Juan Font 2021-05-13 09:07:53 +02:00
  • be83281f58 Fix build breakage due to https://github.com/golang/go/issues/44129. Ward Vandewege 2021-05-12 08:45:41 -04:00
  • d2748f34aa Add more tests. Ward Vandewege 2021-05-11 20:55:36 -04:00
  • 0f933c1a46
    Merge pull request #24 from cure/add-destroy-namespace-command Juan Font 2021-05-09 18:33:28 +02:00
  • b20b664353 Add a DestroyNamespace command and tests for the Namespace functions. Ward Vandewege 2021-05-09 11:12:05 -04:00
  • 3cf599be64
    Merge pull request #22 from juanfont/json-output Juan Font 2021-05-08 19:55:19 +02:00
  • 8ad366f977 Use JsonOutput in version too Juan Font Alonso 2021-05-08 17:06:36 +02:00
  • 9eaac71762 Trim trailing spaces Juan Font Alonso 2021-05-08 16:56:27 +02:00
  • 5cbd2d43a8 Update README to mention json output + some minor updates Juan Font Alonso 2021-05-08 14:12:22 +02:00
  • 8a207374c6 Add some return when enabling routing succeedes + some comments... Juan Font Alonso 2021-05-08 13:59:18 +02:00
  • abde7dddb7 More json output Juan Font Alonso 2021-05-08 13:58:51 +02:00
  • 3b34f715ce Adding support for JSON-formatted output 1/n Juan Font Alonso 2021-05-08 13:28:22 +02:00
  • 4b3b48441f Return the machine when registering Juan Font Alonso 2021-05-08 13:27:53 +02:00
  • 33bee1df05 Do not print stuff in the library Juan Font Alonso 2021-05-08 13:27:40 +02:00
  • 32da9c0415
    Update README.md Juan Font 2021-05-07 13:54:15 +02:00
  • 5faa6cf59a Update README (although do not advirtise preauth keys that much yet) Juan Font Alonso 2021-05-06 23:58:26 +02:00
  • 8ca940ad30
    Merge pull request #21 from juanfont/working-preauth Juan Font 2021-05-06 23:50:28 +02:00
  • 13e086980a Removed logging Juan Font Alonso 2021-05-06 23:49:55 +02:00
  • 4183db840e Update README (although do not advirtise preauth keys that much yet) Juan Font Alonso 2021-05-06 23:25:40 +02:00
  • fc0c519206 Fill RegisterMethod field in Machine Juan Font Alonso 2021-05-06 18:26:01 +02:00
  • 9bac805d50 Removed spew Juan Font Alonso 2021-05-06 01:03:43 +02:00
  • 744c687d37 Fixed linting issues Juan Font Alonso 2021-05-06 01:01:45 +02:00
  • e17e10e0b7 Preauth keys kinda working Juan Font Alonso 2021-05-06 00:59:26 +02:00
  • 9ce8dc3fb6 Preload the namespace Juan Font Alonso 2021-05-06 00:59:16 +02:00
  • 3110dd1575 Added fields in Machine to store authkey + validation tests Juan Font Alonso 2021-05-06 00:08:36 +02:00
  • 486faa9656 WIP Working on authkeys + tests Juan Font Alonso 2021-05-05 23:00:04 +02:00
  • 03bb32083b
    Merge pull request #20 from cure/preauthkeys_improvements Juan Font 2021-05-03 22:56:18 +02:00
  • 13f809be87
    Merge pull request #19 from juanfont/node-cmd-improve Juan Font 2021-05-02 23:04:46 +02:00
  • b34e90c45d Fix bug in preauthkeys: namespace object was not populated in the return value from CreatePreAuthKey and GetPreAuthKeys. Add tests for that bug, and the rest of the preauthkeys functionality. Ward Vandewege 2021-05-02 14:47:36 -04:00
  • 45e9001787 Register cmd under node Juan Font Alonso 2021-05-01 20:05:10 +02:00
  • c71c13366f Minor fix Juan Font Alonso 2021-05-01 20:04:03 +02:00
  • 404fee8361 Added list node functionality Juan Font Alonso 2021-05-01 20:00:25 +02:00
  • 8198d2f8ed
    Merge pull request #18 from cure/add-actions Juan Font 2021-04-30 10:45:11 +02:00
  • 3532eafd8c
    Merge pull request #17 from juanfont/namespace-flag Juan Font 2021-04-30 09:55:17 +02:00
  • 68c21faf64 Check persistnt flag errors Juan Font Alonso 2021-04-30 09:55:39 +02:00
  • 5648337e68 Removed trailing space Juan Font Alonso 2021-04-30 09:53:44 +02:00
  • 491fb0adb3 Fix a few linter errors. Ward Vandewege 2021-04-29 21:03:15 -04:00
  • 283ca3b6f8 Add ci workflow. Ward Vandewege 2021-04-29 20:59:17 -04:00
  • b83318bfb3 Namespace is now a flag for all the commands Juan Font Alonso 2021-04-30 00:23:26 +02:00
  • 51139afa50
    Merge pull request #16 from juanfont/cmd-funcs-to-cli Juan Font 2021-04-29 09:49:23 +02:00
  • 7646bd8fd4 CLI stuff should be in the cmd/ path Juan Font Alonso 2021-04-28 16:55:29 +02:00
  • 77e5255fdd Move the CLI functiontionality to the CLI package Juan Font Alonso 2021-04-28 16:15:45 +02:00
  • 8f67bdba8c
    Merge pull request #15 from cure/add-first-tests Juan Font 2021-04-27 23:53:27 +02:00
  • f5010fd75b Add test for our config validation rules. Ward Vandewege 2021-04-26 20:30:06 -04:00
  • 37601f6b4d Add a very simple test. Ward Vandewege 2021-04-25 11:24:42 -04:00
  • 031c91a545
    Merge pull request #13 from cure/add-Makefile Juan Font 2021-04-25 22:40:34 +02:00
  • 6aedc1111b Add a Makefile with a few targets. The default is 'build'. The build target calls the new version-at-commit.sh script which will automatically populate the version variable inside the Headscale binary. Ward Vandewege 2021-04-25 10:21:04 -04:00
  • 6fa84004b3
    Merge pull request #11 from xpzouying/zy/fix-remove-dup-close-db Juan Font 2021-04-25 00:35:46 +02:00
  • 1bc4294241
    Merge pull request #10 from cure/linter-warnings Juan Font 2021-04-25 00:29:18 +02:00
  • c07f192dc4
    Merge pull request #12 from gitter-badger/gitter-badge Juan Font 2021-04-25 00:16:44 +02:00
  • 8c218189b0 Add Gitter badge The Gitter Badger 2021-04-24 21:26:38 +00:00
  • 07a9f95aeb fix: remove db twice zy 2021-04-25 00:29:40 +08:00
  • f7c7b4873a Address a bunch of golangci-lint warnings. Ward Vandewege 2021-04-24 11:41:29 -04:00
  • f7b6c68d22 Address a bunch of golint warnings. Ward Vandewege 2021-04-24 11:26:50 -04:00
  • d30b682a6e
    Merge pull request #9 from cure/add-tls-autocert Juan Font 2021-04-24 11:28:31 +02:00
  • 426b4fd98a Add support for automatic TLS certificates via Let's Encrypt. Add a configuration reference to the README.md file. Ward Vandewege 2021-04-23 22:54:15 -04:00
  • 1b30874cf8 Check for errors from the Serve() function. Ward Vandewege 2021-04-23 17:16:12 -04:00
  • 252c68c50a Add HTTPS support for the web endpoint with manually configured certificate/key files. Ward Vandewege 2021-04-23 16:54:35 -04:00
  • c5a3d0b01c In absPath, skip empty paths. Ward Vandewege 2021-04-23 16:42:27 -04:00
  • 328f6ea455
    Merge pull request #8 from cure/relative-paths-in-config Juan Font 2021-04-23 09:40:52 +02:00
  • 683b151f19 If the configuration file contains relative paths (e.g. in the values for private_key_path or derp_map_path), interpret them as relative to the directory where the config.json file was read from. Ward Vandewege 2021-04-22 21:10:50 -04:00
  • 9c40e829ec Create preauthkeys kinda working (not usable yet) Juan Font Alonso 2021-04-23 00:40:42 +02:00
  • 176eea4a84 WIP on PreAuthKeys Juan Font Alonso 2021-04-23 00:25:01 +02:00
  • 2555220a57 Merge branch 'main' of https://github.com/juanfont/headscale into main Juan Font Alonso 2021-04-22 23:58:18 +02:00
  • 3743f08c1f Minor fix on already defer db close Juan Font Alonso 2021-04-22 23:55:07 +02:00
  • 481a9a01f6
    Merge pull request #6 from cure/add-standard-config-locations Juan Font 2021-04-22 00:52:06 +02:00