Juan Font Alonso
48f5a9a18c
Fix error 500 when deleting shared node ( fixes #133 )
2021-10-10 23:55:03 +02:00
Raal Goff
8843188b84
add notes to README.md about OIDC
2021-10-10 22:52:30 +08:00
Kristoffer Dalby
087c461762
Merge pull request #145 from juanfont/discord
...
Remove gitter for discord
2021-10-10 12:24:50 +01:00
Juan Font
d579c1718c
Merge branch 'main' into discord
2021-10-10 13:05:33 +02:00
Juan Font
4c5f667504
Merge pull request #129 from juanfont/magic-dns-support
...
Add support for MagicDNS
2021-10-10 13:05:16 +02:00
Kristoffer Dalby
4c4c95198b
Remove gitter for discord
2021-10-10 12:00:45 +01:00
Juan Font Alonso
5ce1526a06
Do not return a pointer
2021-10-10 12:43:41 +02:00
Juan Font Alonso
d70c3d6189
Added more comments, plus renamed vars with better names
2021-10-10 12:34:55 +02:00
Raal Goff
74e6c1479e
updates from code review
2021-10-10 17:22:42 +08:00
Juan Font Alonso
9a0c9768ad
Merge branch 'magic-dns-support' of https://github.com/juanfont/headscale into magic-dns-support
2021-10-10 00:40:35 +02:00
Juan Font Alonso
6884798404
Added some comments
2021-10-10 00:40:25 +02:00
Juan Font
c4487b73c4
Merge branch 'main' into magic-dns-support
2021-10-09 12:24:07 +02:00
Juan Font Alonso
32c3f09eb4
Fixed conflict
2021-10-09 12:23:05 +02:00
Juan Font Alonso
d4dc133e20
Added unit tests
2021-10-09 12:22:21 +02:00
Juan Font Alonso
fc5153af3e
Generate MagicDNS search domains for any tailnet range
2021-10-09 12:22:13 +02:00
Kristoffer Dalby
2997f4d251
Merge branch 'main' into main
2021-10-08 22:21:41 +01:00
Raal Goff
e407d423d4
updates from code review
2021-10-08 17:43:52 +08:00
unreality
35795c79c3
Handle trailing slash on uris
...
Co-authored-by: Kristoffer Dalby <kradalby@kradalby.no>
2021-10-08 15:26:31 +08:00
Kristoffer Dalby
fd8d888ddb
Merge pull request #142 from kradalby/loopy-loop
2021-10-07 16:08:33 +01:00
Kristoffer Dalby
06f56411dd
Update machine.go
2021-10-07 15:45:45 +01:00
Kristoffer Dalby
e4f197b709
Merge branch 'main' into loopy-loop
2021-10-07 15:38:17 +01:00
Kristoffer Dalby
13406175c1
Merge pull request #144 from zekker6/main
2021-10-07 14:22:35 +01:00
Zakhar Bessarab
20117c51a2
Add CI builds with artifacts for PRs and main
2021-10-07 11:50:47 +03:00
Kristoffer Dalby
f0c54490ed
Allow multiple namespaces to be checked for state at the same time
2021-10-06 22:06:07 +00:00
Kristoffer Dalby
95f726fb31
Fix logic
2021-10-06 19:56:14 +00:00
Kristoffer Dalby
ba391bc2ed
Account for updates in shared namespaces
2021-10-06 19:32:15 +00:00
Raal Goff
c487591437
use go-oidc instead of verifying and extracting tokens ourselves, rename oidc_endpoint to oidc_issuer to be more inline with spec
2021-10-06 17:19:15 +08:00
Kristoffer Dalby
c582c8d206
Update metrics for new code
2021-10-05 21:59:15 +00:00
Juan Font
1a0f6f6e39
Added note on TODO
2021-10-05 19:01:56 +02:00
Juan Font
6981543db6
Only search domain from current namespace in MapResponse
2021-10-05 19:00:40 +02:00
Kristoffer Dalby
722084fbd3
Comment out aggressive logging
2021-10-05 16:51:42 +00:00
Kristoffer Dalby
a01a0d1039
Remove unstable update channel, replace with state updates
2021-10-05 16:24:46 +00:00
Kristoffer Dalby
8abc7575cd
Tear out all the complicated update logic
...
There is some weird behaviour that seem to storm the update channel. And
our solution with a central map of update channels isnt particularly
elegant.
For now, replace all the complicated stuff with a simple channel that
checks roughly every 10s if the node is up to date. Only generate and
update if there has been changes.
2021-10-05 16:17:18 +00:00
Juan Font
c9a411e341
Preload namespace
2021-10-05 17:47:21 +02:00
Juan Font Alonso
b02a9f9769
Go mod updates
2021-10-04 23:50:26 +02:00
Juan Font Alonso
a0fa652449
MagicDNS changes merged back
2021-10-04 23:49:16 +02:00
Juan Font Alonso
2eef535b4b
Merged main
2021-10-04 23:43:42 +02:00
Juan Font Alonso
61870a275f
WIP preparation for merge
2021-10-04 22:51:05 +02:00
Juan Font Alonso
088e8248d3
Improved doc
2021-10-04 22:50:33 +02:00
Juan Font Alonso
da4a9dadd5
Warn users when MagicDNS is set with no DNS servers
2021-10-04 22:16:53 +02:00
Juan Font
02bc7314f4
Update dns.go
...
Co-authored-by: Kristoffer Dalby <kradalby@kradalby.no>
2021-10-04 21:47:09 +02:00
Kristoffer Dalby
6fb8d67825
Merge pull request #136 from kradalby/db-cleaning
...
Code, pointer, variable cleanups. And metrics!
2021-10-04 20:44:54 +01:00
Juan Font Alonso
1a41a9f2c7
Updated readme
2021-10-04 20:27:45 +02:00
Juan Font
040a18e6f8
Merge branch 'main' into magic-dns-support
2021-10-04 19:45:12 +02:00
Juan Font Alonso
ec911981c2
Do not allow magicdns if not nameservers set up
2021-10-04 19:43:58 +02: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
2eb57e6288
Clean up pointer usage consistency.
...
This tries to make the same functions emit and consume the same type of
data all over the application.
If a function transform data, it should emit new data, not a pointer.
2021-10-04 17:39:01 +00:00
Kristoffer Dalby
94ba5181fc
Resolve merge conflict
2021-10-04 16:38:52 +00:00
Kristoffer Dalby
1d5b090579
Initial work on Prometheus metrics
...
This commit adds some Prometheus metrics to /metrics in headscale.
It will add the standard go metrics, some automatic gin metrics and some
initial headscale specific ones.
Some of them has been added to aid debugging #97 (loop bug)
In the future, we can use the metrics to get rid of the sleep in the
integration tests by checking that our expected number of nodes has been
registered:
```
headscale_machine_registrations_total
```
2021-10-04 16:28:07 +00:00
Juan Font Alonso
ef0f7c0c09
Integration tests for MagicDNS working
2021-10-04 18:04:08 +02:00