Csaba Sarkadi
761147ea3b
update CHANGELOG
2022-01-28 21:59:08 +01:00
Csaba Sarkadi
25ccf5ef18
PollNetMapStream: do not create any rows during long-poll operation
2022-01-28 21:59:08 +01:00
Kristoffer Dalby
b4f8961e44
Make Unix socket permissions configurable
2022-01-28 18:58:22 +00:00
Kristoffer Dalby
726ccc8c1f
Upgrade to latest tailscale
2022-01-28 18:15:41 +00:00
Kristoffer Dalby
126e694f26
Add generate private-key command
...
This commit adds a command to generate a private key for headscale.
Mostly useful for systems were you drive the deployment from another
machine and use a secret management system.
2022-01-28 18:08:52 +00:00
Kristoffer Dalby
ab45cd37f8
Only golint new problems
2022-01-28 17:40:39 +00:00
Kristoffer Dalby
f59071ff1c
Trim whitespace from privateKey before parsing
2022-01-28 17:23:01 +00:00
Kristoffer Dalby
537cd35cb2
Try to add the grpc cert correctly
2022-01-25 22:22:15 +00:00
Kristoffer Dalby
56b6528e3b
Run prettier
2022-01-25 22:11:15 +00:00
Kristoffer Dalby
bae7ba46de
Update changelog
2022-01-25 22:11:15 +00:00
Kristoffer Dalby
fa197cc183
Add docs for remote access
2022-01-25 22:11:15 +00:00
Kristoffer Dalby
00c69ce50c
Enable remote gRPC and HTTP API
...
This commit enables the existing gRPC and HTTP API from remote locations
as long as the user can provide a valid API key. This allows users to
control their headscale with the CLI from a workstation. 🎉
2022-01-25 22:11:15 +00:00
Kristoffer Dalby
a6e22387fd
Formatting of machine.go
2022-01-25 22:11:15 +00:00
Kristoffer Dalby
a730f007d8
Formatting of DNS files
2022-01-25 22:11:15 +00:00
Kristoffer Dalby
3393363a67
Add safe random hash generators
2022-01-25 22:11:15 +00:00
Kristoffer Dalby
8218ef96ef
Formatting of integration tests
2022-01-25 22:11:15 +00:00
Kristoffer Dalby
e8e573de62
Add apikeys command integration test
2022-01-25 22:11:15 +00:00
Kristoffer Dalby
05db1b7109
Formatting and improving logs for config loading
2022-01-25 22:11:15 +00:00
Kristoffer Dalby
6e14fdf0d3
More reusable stuff in cli
2022-01-25 22:11:15 +00:00
Kristoffer Dalby
1fd57a3375
Add apikeys command to create, list and expire
2022-01-25 22:11:15 +00:00
Kristoffer Dalby
b4259fcd79
Add helper function for colouring expiries
2022-01-25 22:11:15 +00:00
Kristoffer Dalby
f9137f3bb0
Create helper functions around gRPC interface
2022-01-25 22:11:15 +00:00
Kristoffer Dalby
b1a9b1ada1
Generate code from proto
2022-01-25 22:11:15 +00:00
Kristoffer Dalby
b8e9024845
Add proto model for api key
2022-01-25 22:11:15 +00:00
Kristoffer Dalby
70d82ea184
Add migration for new data model
2022-01-25 22:11:05 +00:00
Kristoffer Dalby
9dc20580c7
Add api key data model and helpers
...
This commits introduces a new data model for holding api keys for the
API. The keys are stored in the database with a prefix and a hash and
bcrypt with 10 passes is used to store the hash and it is "one way
safe".
Api keys have an expiry logic similar to pre auth keys.
A key cannot be retrieved after it has created, only verified.
2022-01-25 22:11:05 +00:00
Kristoffer Dalby
4d60aeae18
Merge pull request #282 from ryanfowler/main
2022-01-23 21:23:50 +00:00
Ryan Fowler
67d1dd984f
Fix missing return in PollNetMapHandler
2022-01-21 21:48:58 -08:00
Juan Font
b02f8dd45d
Merge pull request #274 from majst01/reduce-binary-size
...
Strip binary, update to go-1.17.6
2022-01-20 11:38:52 +01:00
Kristoffer Dalby
3837f1714a
Merge branch 'main' into reduce-binary-size
2022-01-17 08:47:19 +00:00
Kristoffer Dalby
ed5498ef86
Merge pull request #276 from jimt/patch-1
2022-01-17 08:46:42 +00:00
Csaba Sarkadi
e2f8c69e2e
integration-test: use tailscale ip to test dual-stack MagicDNS
2022-01-16 14:18:22 +01:00
Csaba Sarkadi
beb3e9abc2
integration-test: taildrop test refactor
2022-01-16 14:18:22 +01:00
Csaba Sarkadi
78039f4cea
integration-test: use TUN devices, enable IPv6 addresses on local interfaces in containers
2022-01-16 14:18:22 +01:00
Csaba Sarkadi
ed39b91f71
Dockerfiles: specify origin registry explicitly
2022-01-16 14:18:22 +01:00
Csaba Sarkadi
8f632e9062
machine: isOutdated: handle machines without LastSuccefulUpdate set
2022-01-16 14:18:22 +01:00
Csaba Sarkadi
a32175f791
PollNetMapHandler: refactor with chan lifetimes in mind
...
* Resolves an issue where sometimes attempted sends on a closed channel
happened by ensuring the channels remain open for the entire goroutine.
* May be of help with regards to issue #203
2022-01-16 14:18:22 +01:00
Csaba Sarkadi
d35fb8bba0
integration-test: add IPv6 prefix to configuration
2022-01-16 14:18:22 +01:00
Csaba Sarkadi
115d0cbe85
dns: IPv6 roots generation
2022-01-16 14:18:22 +01:00
Csaba Sarkadi
1a6e5d8770
Add support for multiple IP prefixes
2022-01-16 14:18:22 +01:00
Csaba Sarkadi
3a3aecb774
Regenerate files based on ProtoBuf schema.
2022-01-16 14:17:51 +01:00
Csaba Sarkadi
8b40343277
Add multiple IP prefixes support to ProtoBuf schema
2022-01-16 14:17:27 +01:00
Csaba Sarkadi
7ec8346179
Do not assume IPv4 during Tailscale node construction
2022-01-15 16:06:34 +01:00
Csaba Sarkadi
46cdce00af
Do not assume IPv4 during address generation
2022-01-15 16:06:34 +01:00
Jim Tittsler
86f3f26a18
Fix typos
2022-01-15 16:44:36 +09:00
Stefan Majer
febbb6006f
use most recent go 1.17 for tests
2022-01-14 12:59:53 +01:00
Stefan Majer
1d68509463
Strip binary, update to go-1.17.6
2022-01-14 09:19:16 +01:00
Kristoffer Dalby
b6d0c4f2aa
Merge pull request #273 from juanfont/tailscale-1-20
...
Add new tailscale version to integration test
2022-01-13 22:21:27 +00:00
Kristoffer Dalby
2c057c2d89
Update integration_test.go
2022-01-13 19:16:12 +00:00
Juan Font
cf7effda1b
Merge pull request #272 from juanfont/cl-0.12.3
...
Prepare CHANGELOG for 0.12.3
v0.12.3
2022-01-13 17:02:37 +01:00