Kristoffer Dalby
8a95fe517a
Use specific types for all fields on machine (no datatypes.json)
...
This commit removes the need for datatypes.JSON and makes the code a bit
cleaner by allowing us to use proper types throughout the code when it
comes to hostinfo and other datatypes on the machine object.
This allows us to remove alot of unmarshal/marshal operations and remove
a lot of obsolete error checks.
This following commits will clean away a lot of untyped data and
uneccessary error checks.
2022-03-01 16:31:25 +00:00
Kristoffer Dalby
94c5474212
Merge pull request #369 from kradalby/update-dependencies
...
Update dependencies
2022-03-01 15:52:27 +01:00
Kristoffer Dalby
573008757d
Merge branch 'main' into update-dependencies
2022-03-01 15:16:56 +01:00
Kristoffer Dalby
4c74043f72
Merge pull request #359 from kradalby/yaml-acls
...
Add YAML support to ACLs
2022-03-01 15:16:37 +01:00
Kristoffer Dalby
0551b34de5
Merge branch 'main' into update-dependencies
2022-03-01 14:51:57 +01:00
Kristoffer Dalby
105812421e
Merge branch 'main' into yaml-acls
2022-03-01 14:49:37 +01:00
Kristoffer Dalby
4a9fd3a680
Merge pull request #368 from kradalby/apple-profile-fix
...
Fix apple profile issue being generated with escaped characters
2022-03-01 14:49:07 +01:00
Kristoffer Dalby
1cb39d914c
Update dependencies
2022-03-01 07:35:17 +00:00
Kristoffer Dalby
5157f356cb
Fix apple profile issue being generated with escaped characters
2022-03-01 07:30:35 +00:00
Kristoffer Dalby
d6f6939c54
Update changelog
2022-02-27 09:08:29 +01:00
Kristoffer Dalby
e0b9a317f4
Add note to config example
2022-02-27 09:05:08 +01:00
Kristoffer Dalby
c159eb7541
Add basic test of yaml parsing
2022-02-27 09:04:59 +01:00
Kristoffer Dalby
8a3a0b6403
Add YAML support to ACLs
2022-02-27 09:04:48 +01:00
Kristoffer Dalby
67d6c8f946
Remove oversensitive tracing output
2022-02-27 09:04:27 +01:00
Kristoffer Dalby
b1bd17f316
Merge pull request #350 from restanrm/feat-oidc-login-as-namespace
2022-02-25 13:22:26 +01:00
Adrien Raffin-Caboisse
b39faa124a
Merge remote-tracking branch 'origin/main' into feat-oidc-login-as-namespace
2022-02-25 11:28:17 +01:00
Kristoffer Dalby
8689a39c96
Merge pull request #357 from kradalby/make-namespace-to-users
...
Remove boundaries between Namespaces
2022-02-25 11:01:41 +01:00
Kristoffer Dalby
bae8ed3e70
Merge branch 'main' into make-namespace-to-users
2022-02-25 10:39:12 +01:00
Kristoffer Dalby
08c7076667
Merge pull request #346 from kradalby/integration-test-concurrent-join
...
Fix ip allocation bug, make integration tests faster
2022-02-25 10:37:35 +01:00
Kristoffer Dalby
91b50550ee
Update readme and glossary to reflect features and goals
2022-02-25 10:34:35 +01:00
Kristoffer Dalby
2c7064462a
Update changelog
2022-02-25 10:30:58 +01:00
Kristoffer Dalby
d9e7f37280
Uncomment previous test and update them for no boundries
2022-02-25 10:27:27 +01:00
Kristoffer Dalby
e03b3d558f
Remove boundries between namespaces
2022-02-25 10:26:34 +01:00
Kristoffer Dalby
2fd36dd254
Resolve merge
2022-02-25 09:08:15 +00:00
Kristoffer Dalby
381598663d
Merge pull request #347 from kradalby/remove-shared
...
Remove the concept of "shared nodes"
2022-02-25 10:06:58 +01:00
Kristoffer Dalby
6d699d3c29
Update changelog
2022-02-25 08:44:16 +00:00
Kristoffer Dalby
ebe59a5a27
Fix utils tests, use ipset datastructure
2022-02-25 08:28:22 +00:00
Kristoffer Dalby
eda0a9f88a
Lock allocation of IP address
...
current logic is not safe as it will allow an IP that isnt persisted to
the DB to be given out multiple times if machines joins in quick
succession.
This adds a lock around the "get ip" and machine registration and save
to DB so we ensure thiis isnt happning.
Currently this had to be done three places, which is silly, and outlined
in #294 .
2022-02-24 13:18:18 +00:00
Adrien Raffin-Caboisse
47e8442d91
Update CHANGELOG.md
...
Co-authored-by: Kristoffer Dalby <kradalby@kradalby.no>
2022-02-24 13:34:48 +01:00
Adrien Raffin-Caboisse
f9ce32fe1a
Update CHANGELOG.md
...
Co-authored-by: Kristoffer Dalby <kradalby@kradalby.no>
2022-02-24 13:34:36 +01:00
Kristoffer Dalby
189e883f91
Resolve merge
2022-02-24 11:41:54 +00:00
Kristoffer Dalby
aa506503e2
Merge branch 'main' into feat-oidc-login-as-namespace
2022-02-24 11:40:34 +00:00
Kristoffer Dalby
9c2c09fce7
Merge branch 'main' into remove-shared
2022-02-24 11:39:44 +00:00
Kristoffer Dalby
5596a0acef
Merge pull request #297 from arch4ngel/configurable-mtls
...
Configurable mtls
2022-02-24 11:32:02 +00:00
Kristoffer Dalby
9687e6768d
Remove retry from integration tests
2022-02-24 11:29:53 +00:00
Kristoffer Dalby
fb85c78e8a
Fail integration tests fast
2022-02-24 11:28:34 +00:00
Kristoffer Dalby
8c33907655
Sort lint
2022-02-24 11:10:40 +00:00
Kristoffer Dalby
afb67b6e75
Merge branch 'main' into configurable-mtls
2022-02-24 11:09:05 +00:00
Kristoffer Dalby
69f220fe5c
Merge branch 'main' into feat-oidc-login-as-namespace
2022-02-24 11:01:32 +00:00
Kristoffer Dalby
c46dfd761c
Merge pull request #349 from kradalby/remove-cgo
2022-02-24 10:11:15 +00:00
Adrien Raffin-Caboisse
95453cba75
Merge branch 'main' into feat-oidc-login-as-namespace
2022-02-23 17:56:45 +01:00
Kristoffer Dalby
ed2175706c
Merge branch 'remove-cgo' of github.com:kradalby/headscale into remove-cgo
2022-02-23 16:23:53 +00:00
Kristoffer Dalby
686e45cf27
Set all anti-cgo options and add comment
2022-02-23 16:15:20 +00:00
Adrien Raffin-Caboisse
ae6a20e4d9
fix: add valid test identified by linter
2022-02-23 14:28:25 +01:00
Adrien Raffin-Caboisse
046116656b
chore: update formatting
2022-02-23 14:22:21 +01:00
Adrien Raffin-Caboisse
972bef1194
feat: add length error if hostname too long
2022-02-23 14:21:46 +01:00
Adrien Raffin-Caboisse
4f1f235a2e
feat: add strip_email_domain to normalization of namespace
2022-02-23 14:03:07 +01:00
Adrien Raffin-Caboisse
7e4709c13f
fix(namespace): remove name validation for destroy and get
2022-02-23 13:35:57 +01:00
Adrien Raffin-Caboisse
cef0a2b0b3
fix(namespaces_test): fix missing namespace name
2022-02-23 11:40:48 +01:00
Adrien Raffin-Caboisse
fcdbe7c510
fix(utils_test): fix namespace name
2022-02-23 11:38:20 +01:00