Juan Font Alonso
d0898ecabc
Move common parts of the protocol to dedicated file
2022-08-14 21:15:58 +02:00
Juan Font Alonso
aaa33cf093
Minor change in router
2022-08-14 21:07:05 +02:00
Juan Font Alonso
1f3032ad21
Merge branch 'main' into hs2021-v2
2022-08-14 17:05:51 +02:00
Juan Font Alonso
0d0042b7e6
Added zstd constant for linting
2022-08-14 17:04:07 +02:00
Juan Font Alonso
ff46f3ff49
Move reusable method to common api file
2022-08-14 16:13:17 +02:00
Juan Font Alonso
90bb6ea907
Minor formatting changes
2022-08-14 12:10:20 +02:00
Juan Font Alonso
5b14cafddd
Fixed another recurrence of MachineKey
2022-08-14 12:04:31 +02:00
Juan Font Alonso
39b85b02bb
Move getMapResponse into reusable function by TS2019 and TS2021
2022-08-14 03:20:53 +02:00
Juan Font Alonso
7a91c82cda
Merge branch 'main' into hs2021-v2
2022-08-14 03:07:43 +02:00
Juan Font Alonso
8c13f64d3c
Changed missing path
2022-08-13 21:55:44 +02:00
Juan Font Alonso
a7efc22045
Fix expired node registration URL
2022-08-13 21:17:05 +02:00
Juan Font Alonso
3e8f0e9984
Added support for Noise clients in /key handler
2022-08-13 11:24:05 +02:00
Juan Font Alonso
77bf1e81ec
Added missing dot in comment
2022-08-12 09:36:17 +02:00
Juan Font
a261e27113
Update api.go
...
Co-authored-by: Kristoffer Dalby <kradalby@kradalby.no>
2022-08-12 09:03:32 +02:00
Juan Font
f01a33491b
Update api.go
...
Co-authored-by: Kristoffer Dalby <kradalby@kradalby.no>
2022-08-12 09:03:11 +02:00
Juan Font
739e11e1ee
Update api.go
...
Co-authored-by: Kristoffer Dalby <kradalby@kradalby.no>
2022-08-12 09:02:58 +02:00
Juan Font Alonso
e1e3feb6a8
Add a sleep to reduce the impact of #727
2022-08-11 13:37:25 +02:00
Juan Font
8e56d8b425
Merge branch 'main' into switch-to-db-d
2022-08-11 13:11:38 +02:00
Juan Font Alonso
d586b9d285
Added comment clarifying registration API
2022-08-11 12:16:50 +02:00
Juan Font Alonso
fb3b2e6bc8
Improve protocol implementation for client registration ( fixes #706 )
2022-08-11 12:11:02 +02:00
Juan Font Alonso
e91c378bd4
Replace machine key with node key in preparation for Noise in auth related stuff
2022-08-10 15:35:26 +02:00
Adrien Raffin-Caboisse
79688e6187
chore(all): apply formater
2022-08-04 10:47:00 +02:00
Anton Schubert
c6aaa37f2d
ping db in health check
2022-07-12 22:56:53 +02:00
Juan Font Alonso
ffcc72876c
Lint fixes 7/n
2022-06-26 12:30:52 +02:00
Juan Font Alonso
c810b24eb9
Lint fixes 5/n
2022-06-26 12:21:35 +02:00
Juan Font Alonso
a913d1b521
Lint fixes 2/n
2022-06-26 11:55:37 +02:00
Juan Font Alonso
dec51348e6
Minor status change
2022-06-20 20:29:42 +02:00
Juan Font Alonso
dedeb4c181
Remove Gin from the Registration handler
2022-06-20 12:30:41 +02:00
Juan Font Alonso
367da0fcc2
Remove Gin from simple endpoints for TS2019
2022-06-17 16:48:04 +02:00
Anton Schubert
34be10840c
add ability to set randomizeClientPort
2022-06-09 21:26:40 +02:00
Kristoffer Dalby
0676aa11a9
Merge branch 'main' into db-error-handling
2022-05-31 10:18:13 +02:00
Kristoffer Dalby
a09633e859
Check errors of more database calls
2022-05-30 15:39:24 +02:00
Kristoffer Dalby
9175aca094
Merge branch 'main' into rename-fixess
2022-05-30 15:29:50 +02:00
Kristoffer Dalby
ff5f31b87e
Disable logtail for clients
2022-05-30 14:52:50 +02:00
Kristoffer Dalby
802eb931d1
Make sure givenname is set for preauthkeys
2022-05-17 22:02:18 +02:00
Kristoffer Dalby
5fa3016703
Generate unique givennames for hosts joining (and debug added)
2022-05-16 20:32:38 +02:00
Kristoffer Dalby
8504d0d8ba
Move todo to correct file
2022-04-24 21:12:45 +01:00
Kristoffer Dalby
6e2768097a
Rename name -> hostname, nickname -> givenname
2022-04-24 20:54:38 +01:00
hdhoang
52fd13bfc4
Fix labels cardinality error when registering unknown pre-auth key
2022-03-21 15:49:14 +07:00
Mevan Samaratunga
082a852c5e
fixed linting recommendation
2022-03-10 10:40:20 -05:00
Mevan Samaratunga
af081e9fd3
fixed lint errors
2022-03-10 10:22:21 -05:00
Mevan Samaratunga
8b5e8b7dfc
Refresh expired machine on re-auth - closes #489
2022-03-10 08:59:28 -05:00
e-zk
c06689dec1
fix: make register html/template consistent with other html
...
- makes the html/template for /register follow the same formatting
as /apple and /windows
- adds a <title> element
- minor change for consistency's sake
2022-03-08 18:34:46 +10:00
Adrien Raffin-Caboisse
41efe98953
fix: apply fmt and fix missing name changes
2022-03-07 23:20:30 +01:00
Adrien Raffin-Caboisse
f19c048569
fix: change normalization function name
2022-03-07 22:55:54 +01:00
Adrien Raffin-Caboisse
6cc8bbc24f
feat(api): add normalisation at machine register step
2022-03-07 22:46:29 +01:00
Kristoffer Dalby
ef422e6988
Protect against expiry nil
2022-03-02 07:29:56 +00:00
Kristoffer Dalby
5e92ddad43
Remove redundant caches
...
This commit removes the two extra caches (oidc, requested time) and uses
the new central registration cache instead. The requested time is
unified into the main machine object and the oidc key is just added to
the same cache, as a string with the state as a key instead of machine
key.
2022-02-28 22:42:30 +00:00
Kristoffer Dalby
54cc3c067f
Implement new machine register parameter
2022-02-28 16:34:50 +00:00
Kristoffer Dalby
469551bc5d
Register new machines needing callback in memory
...
This commit stores temporary registration data in cache, instead of
memory allowing us to only have actually registered machines in the
database.
2022-02-28 08:06:39 +00:00