Kristoffer Dalby
811d3d510c
Add grpc_listen_addr config option
2022-02-12 16:14:33 +00:00
Kristoffer Dalby
2aba37d2ef
Try to support plaintext http2 after termination
2022-02-12 14:42:23 +00:00
Kristoffer Dalby
8853ccd5b4
Terminate tls immediatly, mux after
2022-02-12 13:25:27 +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
e05c5e0b93
Merge pull request #303 from kradalby/migrate_ipaddresses
v0.13.0-beta2
2022-01-31 08:57:22 +00:00
Kristoffer Dalby
9e3318ca27
Simplify postgres uuid-ossp stirng
2022-01-30 14:53:40 +00:00
Kristoffer Dalby
e9adfcd678
Migrate ip_address field to ip_addresses
...
The automatic migration did not pick up this change and it breaks
current setups as it only adds a new field which is empty.
This means that clients who dont request a new IP will not have any IP
at all.
2022-01-30 14:18:24 +00:00
Kristoffer Dalby
5b5ecd52e1
Merge pull request #208 from enoperm/ipv6
...
Support for IPv6 prefixes in namespaces
v0.13.0-beta1
2022-01-30 10:46:20 +00:00
Kristoffer Dalby
eddd62eee0
Merge branch 'main' into ipv6
2022-01-30 10:09:52 +00:00
Kristoffer Dalby
38c27f6bf8
Merge pull request #300 from stensonb/patch-2
...
Typo
upstream/v0.12.4
v0.12.4
2022-01-30 10:09:35 +00:00
Kristoffer Dalby
90fb9aa4ed
Merge branch 'main' into ipv6
2022-01-30 10:08:44 +00:00
Kristoffer Dalby
3af1253a65
Merge branch 'main' into patch-2
2022-01-30 10:08:28 +00:00
Kristoffer Dalby
eb1ce64b7c
Merge pull request #301 from kradalby/goreleaser
...
Set goreleaser to only care about Go 1.17
2022-01-30 10:08:04 +00:00
Kristoffer Dalby
2c9ed63021
Merge branch 'main' into goreleaser
2022-01-30 10:07:35 +00:00
Kristoffer Dalby
4c779d306b
Merge pull request #302 from kradalby/build-avoidance
...
Set up build avoidance
2022-01-30 10:07:30 +00:00
Kristoffer Dalby
0862f60ff0
Put depth in the correct place
2022-01-30 09:54:26 +00:00
Kristoffer Dalby
991175f2aa
Add depth and avoidance for build
2022-01-30 09:49:15 +00:00
Kristoffer Dalby
1815040d98
Set up build build avoidance
...
This commit configures the CI to run specific parts of the CI when
relevant changes has been made.
This should help us not have to deal with the integration tests when we
do doc/admin changes.
2022-01-30 09:43:48 +00:00
Kristoffer Dalby
71ab4c9b2c
Fix type according to config schema
2022-01-30 08:59:25 +00:00
Kristoffer Dalby
e0c22a414b
Remove wrong comment
2022-01-30 08:56:28 +00:00
Kristoffer Dalby
4e63bba4fe
Only compat go 1.17 in go mod tidy
2022-01-30 08:55:41 +00:00
Kristoffer Dalby
445c04baf7
Fix lint
2022-01-30 08:35:10 +00:00
Kristoffer Dalby
ad4e3a89e0
Format changelog
2022-01-30 08:25:49 +00:00
Kristoffer Dalby
6f6018bad5
Merge branch 'main' into ipv6
2022-01-30 08:21:11 +00:00
Bryan Stenson
ccd41b9a13
Typo
2022-01-29 22:34:51 -08:00
Juan Font
d8ce440309
Merge pull request #299 from kradalby/0124prep
...
Tag 0.12.4 in CHANGELOG
2022-01-30 01:13:10 +01:00
Kristoffer Dalby
2f576b2fb1
Tag 0.12.4 in CHANGELOG
2022-01-29 20:04:56 +00:00
Kristoffer Dalby
853a5288f1
Merge pull request #292 from kradalby/socket-permission
...
Make Unix socket permissions configurable
2022-01-29 19:55:11 +00:00
Kristoffer Dalby
cd0df1e46f
Merge branch 'main' into socket-permission
2022-01-29 19:30:49 +00:00
Juan Font
b195c87418
Merge pull request #290 from kradalby/generate-privkey
...
Add generate private-key command
2022-01-29 20:24:52 +01:00
Csaba Sarkadi
45bcf39894
fixup! fixup! cmd/headscale/cli/utils: merge ip_prefix with ip_prefixes in config
2022-01-29 16:52:27 +01:00
Csaba Sarkadi
0a1db89d33
fixup! cmd/headscale/cli/utils: merge ip_prefix with ip_prefixes in config
2022-01-29 16:27:36 +01:00