Adrien Raffin-Caboisse
3d302441b6
fix: order error in the tests
2022-04-25 22:17:23 +02:00
Adrien Raffin-Caboisse
89a1a56328
feat: add unit tests and fmt
2022-04-16 13:15:04 +02:00
Kristoffer Dalby
5b169010be
Resolve merge conflict
2022-03-02 08:11:50 +00:00
Kristoffer Dalby
e4d81bbb16
Merge branch 'main' into registration-simplification
2022-03-02 07:31:02 +00:00
Adrien Raffin-Caboisse
361b4f7f4f
fix(machine): allow to use * in ACL sources
2022-03-01 22:48:21 +01:00
Kristoffer Dalby
49cd761bf6
Use new machine types in tests
2022-03-01 16:34:35 +00:00
Kristoffer Dalby
a8649d83c4
Remove all references to Machine.Registered from tests
2022-02-28 17:42:03 +00:00
Kristoffer Dalby
e03b3d558f
Remove boundries between namespaces
2022-02-25 10:26:34 +01:00
Adrien Raffin-Caboisse
25550f8866
chore(format): run prettier on repo
2022-02-21 16:06:20 +01:00
Adrien Raffin-Caboisse
4bbe0051f6
chore(machines): apply lint
2022-02-21 10:02:59 +01:00
Adrien Raffin-Caboisse
5ab62378ae
tests(machines): test all combinations of peer filtering
2022-02-21 09:58:19 +01:00
Adrien Raffin-Caboisse
f006860136
feat(machines): untie dependency with class for filter func
...
The dependency to the `headscale` struct makes tests harder to do.
This change allow to easily add some tests for this quite sensible function.
2022-02-21 09:58:19 +01:00
Adrien Raffin-Caboisse
d8c4c3163b
chore(fmt): apply make fmt command
2022-02-17 09:32:54 +01:00
Adrien Raffin-Caboisse
9cedbbafd4
chore(all): update some files for linter
2022-02-17 09:32:51 +01:00
Adrien Raffin
fb45138fc1
feat(acls): check acl owners and add bunch of tests
2022-02-17 09:30:08 +01:00
Adrien Raffin
e9949b4c70
feat(acls): simplify updating rules
2022-02-17 09:30:08 +01:00
Adrien Raffin
e482dfeed4
feat(machine): add ACLFilter if ACL's are enabled.
...
This commit change the default behaviour and remove the notion of namespaces between the hosts. It allows all namespaces to be only filtered by the ACLs. This behavior is closer to tailsnet.
2022-02-17 09:30:05 +01:00
Kristoffer Dalby
2bc8051ae5
Remove kv-namespace-worker
...
This commit removes the namespace kv worker and related code, now that
we talk over gRPC to the server, and not directly to the DB, we should
not need this anymore.
2022-02-12 20:46:05 +00:00
Kristoffer Dalby
445c04baf7
Fix lint
2022-01-30 08:35:10 +00:00
Csaba Sarkadi
1a6e5d8770
Add support for multiple IP prefixes
2022-01-16 14:18:22 +01:00
Kristoffer Dalby
bd1d1b1a3b
Implement ExpireMachine rpc
2021-11-21 13:40:19 +00:00
Kristoffer Dalby
a8a8f01429
Make "authKey" a constant
2021-11-18 08:49:55 +00:00
Kristoffer Dalby
8ae682b412
Fix var name length in tests
2021-11-15 16:16:04 +00:00
Kristoffer Dalby
f6a7564ec8
Add more test cases to prove that peers and shared peers work properly
2021-10-04 17:40:21 +00:00
Kristoffer Dalby
0d4a006536
Consitently use Machine pointers
...
This commit rewrites a bunch of the code to always use *Machine instead
of a mix of both, and a mix of tailcfg.Node and Machine.
Now we use *Machine, and if tailcfg.Node is needed, it is converted just
before needed.
2021-10-02 22:00:09 +01:00
Juan Font Alonso
97f7c90092
Added communication between Serve and CLI using KV table (helps in #52 )
2021-07-25 17:59:48 +02:00
Juan Font Alonso
39b756cf55
Fixed linting
2021-07-17 00:29:14 +02:00
Juan Font Alonso
9ca2ae7fc5
Implemented delete nodes ( #52 )
2021-07-17 00:23:12 +02:00
Juan Font Alonso
f3139d26c8
Added methods to delete nodes
2021-07-17 00:14:22 +02:00
Juan Font Alonso
ff9d99b9ea
Use gorm connection pool
2021-07-04 21:40:46 +02:00
Juan Font Alonso
d67be9ef58
go.mod updates
2021-06-24 15:49:27 +02:00
Ward Vandewege
41f6740ddd
Add support for ephemeral nodes via a special type of pre-auth key. Add
...
tests for that feature.
Other fixes: clean up a few typos in comments. Fix a bug that caused the
tests to run four times each. Be more consistent in the use of log
rather than fmt to print errors and notices.
2021-05-22 20:18:29 -04:00
Ward Vandewege
d2748f34aa
Add more tests.
2021-05-11 20:55:36 -04:00