Kristoffer Dalby
d27f2bc538
Merge branch 'main' into metrics-listen
2022-02-24 11:16:57 +00:00
Kristoffer Dalby
c46dfd761c
Merge pull request #349 from kradalby/remove-cgo
2022-02-24 10:11:15 +00: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
Kristoffer Dalby
f0a73632e0
Merge branch 'main' into remove-cgo
2022-02-23 09:01:38 +00:00
Juan Font
a86b33f1ff
Merge pull request #345 from juanfont/update-contributors
...
docs(README): update contributors
2022-02-22 23:46:54 +01:00
Juan Font
28c2bbeb27
Merge branch 'main' into update-contributors
2022-02-22 23:35:34 +01:00
github-actions[bot]
d4761da27c
docs(README): update contributors
2022-02-22 22:34:27 +00:00
Juan Font
b0c7ebeb7d
Merge pull request #351 from pernila/patch-1
...
Added FreeBSD to the supported clients
2022-02-22 23:33:58 +01:00
Juan Font
5f375d69b5
Merge branch 'main' into update-contributors
2022-02-22 23:32:02 +01:00
Juan Font
9eb705a4fb
Merge branch 'main' into patch-1
2022-02-22 23:31:29 +01:00
Juan Font
1b87396a8c
Merge pull request #333 from ohdearaugustin/topic/renovatebot
...
Topic/renovatebot
2022-02-22 23:30:46 +01:00
Juan Font
bb14bcd4d2
Merge branch 'main' into topic/renovatebot
2022-02-22 23:29:08 +01:00
pernila
48c866b058
Added FreeBSD to the supported clients
...
Added FreeBSD to the supported clients
Now in ports: https://www.freshports.org/security/headscale/
2022-02-22 23:06:35 +02:00
Kristoffer Dalby
67f5c32b49
Only allow one connection to sqlite
2022-02-22 19:04:52 +00:00
Kristoffer Dalby
bfbcea35a0
Remove dependency on CGO
...
This commit changes the SQLite dependency to one that does not depend on
CGO. It uses a C-to-Go translated sqlite library that is Pure go.
2022-02-22 16:51:54 +00:00
Kristoffer Dalby
a37339fa54
Merge pull request #348 from restanrm/remove-comment
...
fix(machine): remove comment
2022-02-22 14:06:12 +00:00
Adrien Raffin-Caboisse
f2f8d834e8
fix(machine): remove comment
...
After some more tests in tailscale I couldn't replicate the behavior
described in there.
When adding a rule, allowing A to talk to B the reverse connection was
instantly added to B to allow communication to B.
The previous assumption was probably wrong.
2022-02-22 11:26:21 +01:00
Kristoffer Dalby
52db6188df
Merge branch 'main' into update-contributors
2022-02-21 23:38:56 +00:00
github-actions[bot]
bbadeb567a
docs(README): update contributors
2022-02-21 21:41:48 +00:00
Kristoffer Dalby
69cdfbb56f
Merge pull request #320 from restanrm/feat-improve-acls-usage
...
Improvements on the ACLs and bug fixing
2022-02-21 21:41:15 +00:00
Adrien Raffin-Caboisse
d971f0f0e6
fix(acls_test): fix comment in go code
2022-02-21 21:48:05 +01:00
Adrien Raffin-Caboisse
650108c7c7
chore(fmt): apply fmt
2022-02-21 21:46:40 +01:00
Adrien Raffin-Caboisse
baae266db0
Update acls_test.go
...
Co-authored-by: Kristoffer Dalby <kradalby@kradalby.no>
2022-02-21 20:25:41 +01:00
Adrien Raffin-Caboisse
50af44bc2f
fix: add error checking in acl and poll
...
If aclPolicy is not defined, in updateAclPolicy, return an error.
2022-02-21 20:06:31 +01:00
Nico Rey
e3bcc88880
Linter: make linter happy
2022-02-21 15:22:36 -03:00
Nico Rey
14e49885fb
metrics/kustomize: update Kustomize examples
2022-02-21 12:51:25 -03:00
Nico Rey
fbc1843889
metrics/tests: update tests
2022-02-21 12:51:05 -03:00
Nico Rey
45d5ab30ff
metrics/cfg: add a new entry for the Prometheus listen address
2022-02-21 12:50:44 -03:00
Nico Rey
d5fd7a5c00
metrics: add a new router and listener for Prometheus' metrics endpoint
2022-02-21 12:50:15 -03:00
Adrien Raffin-Caboisse
211fe4034a
chore(linter): ignore tt var as it's generated code (vscode)
2022-02-21 16:10:20 +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
9c6ce02554
fix(machines): use ListAllMachines function
...
added a simple filter to remove the current node
2022-02-21 09:58:19 +01:00
Adrien Raffin-Caboisse
960412a335
fix(machines): simplify complex if check
...
This should fix the performance issue with computation of `dst` variable. It's also easier to read now.
2022-02-21 09:58:19 +01:00
Kristoffer Dalby
ecb3ee6bfa
Merge branch 'main' into feat-improve-acls-usage
2022-02-21 08:51:21 +00:00
Adrien Raffin-Caboisse
5242025ab3
fix(machines): renaming following review comments
2022-02-20 23:50:08 +01:00
Adrien Raffin-Caboisse
b3d0fb7a93
fix(machine): revert modifications
...
Using h.ListAllMachines also listed the current machine in the result. It's unnecessary (I don't know if it's harmful).
Breaking the check with the `matchSourceAndDestinationWithRule` broke the tests. We have a specificity with the '*' destination that isn't symetrical.
I need to think of a better way to do this. It too hard to read.
2022-02-20 23:47:04 +01:00
Adrien Raffin-Caboisse
5e167cc00a
fix(tests): fix naming issues related to code review
2022-02-20 23:00:31 +01:00
Adrien Raffin-Caboisse
d00251c63e
fix(acls,machines): apply code review suggestions
2022-02-20 21:26:20 +01:00
Adrien Raffin-Caboisse
4f9ece14c5
Apply suggestions from code review on changelog
...
Co-authored-by: Kristoffer Dalby <kradalby@kradalby.no>
2022-02-20 20:47:12 +01:00
Kristoffer Dalby
602291df61
Merge pull request #338 from juanfont/update-contributors
2022-02-19 23:13:08 +00:00
github-actions[bot]
5245f1accc
docs(README): update contributors
2022-02-19 22:48:26 +00:00
Kristoffer Dalby
91babb5130
Merge pull request #336 from ohdearaugustin/topic/fix-contributors-action
2022-02-19 21:08:53 +00:00
ohdearaugustin
8798efd353
contributor: set specific version
2022-02-19 21:36:08 +01:00
Kristoffer Dalby
66a12004e7
Merge branch 'main' into topic/renovatebot
2022-02-19 19:34:30 +00:00
Kristoffer Dalby
74621e2750
Merge pull request #332 from e-zk/main
...
Fix spelling error
2022-02-19 19:34:24 +00:00
Kristoffer Dalby
74c3c6bb60
Merge branch 'main' into main
2022-02-19 19:32:34 +00:00