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
de59946447
feat(acls): rewrite functions to be testable
...
Rewrite some function to get rid of the dependency on Headscale object. This allows us
to write succinct test that are more easy to review and implement.
The improvements of the tests allowed to write the removal of the tagged hosts
from the namespace as specified here: https://tailscale.com/kb/1068/acl-tags/
2022-02-17 09:30:09 +01:00
Adrien Raffin
fb45138fc1
feat(acls): check acl owners and add bunch of tests
2022-02-17 09:30:08 +01:00
Csaba Sarkadi
1a6e5d8770
Add support for multiple IP prefixes
2022-01-16 14:18:22 +01:00
Kristoffer Dalby
a8a8f01429
Make "authKey" a constant
2021-11-18 08:49:55 +00:00
Kristoffer Dalby
0c005a6b01
Add and fix errname
2021-11-15 16:33:16 +00:00
Kristoffer Dalby
8ae682b412
Fix var name length in tests
2021-11-15 16:16:04 +00:00
Kristoffer Dalby
03b7ec62ca
Go format with shorter lines
2021-11-13 08:36:45 +00:00
Kristoffer Dalby
94dbaa6822
Clean up the return of "pointer list"
...
This commit is getting rid of a bunch of returned list pointers.
2021-11-04 22:16:56 +00:00
Juan Font Alonso
ecf258f995
Use gorm connection pool
2021-07-04 21:56:13 +02:00
Juan Font
a1b8f77b1b
Fixed tests
2021-07-04 13:40:45 +02:00
Juan Font
19443669bf
Fixed linting issues
2021-07-04 13:33:00 +02:00
Juan Font
401e6aec32
And more tests
2021-07-04 13:23:31 +02:00
Juan Font
d0e970f21d
Added more unit tests
2021-07-04 13:01:41 +02:00
Juan Font
07e95393b3
Rule generation kinda working, missing tests
2021-07-04 12:35:18 +02:00
Juan Font
136aab9dc8
Work in progress in rule generation
2021-07-03 17:31:32 +02:00
Juan Font
b161a92e58
Initial work on ACLs
2021-07-03 11:55:32 +02:00