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
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
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
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
Kristoffer Dalby
dbfb9e16e0
Merge branch 'main' into socket-permission
2022-01-29 15:26:19 +00:00
Kristoffer Dalby
8aa2606853
Merge branch 'main' into generate-privkey
2022-01-29 15:26:15 +00:00
Kristoffer Dalby
a238a8b33a
Merge pull request #291 from kradalby/tailscale-203
...
Upgrade to latest tailscale
2022-01-29 15:26:06 +00:00
Csaba Sarkadi
74f26d3685
fixup! CHANGELOG: document breaking configuration change regarding multiple prefixes
2022-01-29 16:08:02 +01:00
Csaba Sarkadi
e66f8b0eeb
cmd/headscale/cli/utils: merge ip_prefix with ip_prefixes in config
2022-01-29 16:04:15 +01:00
Kristoffer Dalby
e7b69dbf91
Merge branch 'main' into generate-privkey
2022-01-29 14:35:24 +00:00
Kristoffer Dalby
13f23d2e7e
Merge branch 'main' into socket-permission
2022-01-29 14:34:36 +00:00
Csaba Sarkadi
7a86321252
CHANGELOG: document breaking configuration change regarding multiple prefixes
2022-01-29 15:33:54 +01:00
Kristoffer Dalby
7aace7eb6b
Update CHANGELOG.md
2022-01-29 14:33:12 +00:00
Kristoffer Dalby
7a6be36f46
Merge branch 'main' into tailscale-203
2022-01-29 14:32:04 +00:00
Kristoffer Dalby
bb27c80bad
Update CHANGELOG.md
2022-01-29 14:31:42 +00:00