Commit graph

343 commits

Author SHA1 Message Date
Abhishek Kondur
086ef25ac6 remove peer update context 2023-06-29 00:17:42 +05:30
Abhishek Kondur
950a303f66 Merge branch 'develop' of https://github.com/gravitl/netmaker into NET-390-scale-latest 2023-06-28 23:10:00 +05:30
Abhishek Kondur
b64cef3447 fix merge conflicts 2023-06-28 22:12:30 +05:30
Abhishek Kondur
eca3a16f9a broadcast port changes 2023-06-28 22:10:25 +05:30
Abhishek K
38454ece79
IOT-66: Single Peer update for IOT client (#2424)
* send peer update to IOT client only when it is relayed

* move node check

* send relay del update for iot client

* fix relay delete logic for iot

* set relay node to true for iot peer update

* add node addrs to peer update

* revert tag
2023-06-28 22:08:49 +05:30
Abhishek Kondur
1a67b4e49b Merge branch 'NET-390-endpointdetection-config-fix' of https://github.com/gravitl/netmaker into NET-390-scale-latest 2023-06-28 21:05:38 +05:30
Abhishek Kondur
4efbe6256f stop context cancel on peer updates 2023-06-28 21:05:21 +05:30
Abhishek K
230e062c84
GRA-1298: License check changes, free tier limits for saas (#2418)
* set free tier limits through config

* add host limit to config

* check for host limit on free tier

* fix license validation, replace node limit with hosts

* add hosts to telemetry data

* debug init

* validate license every 1hr

* hook manager, api to fetch server usage

* hook manager, server usage api

* encode json server usage api

* update ngork url

* update license validation endpoint

* avoid setting limits on eer

* adding hotfix

* correct users limits env var

* add comments to exported funcs

---------

Co-authored-by: afeiszli <alex.feiszli@gmail.com>
2023-06-28 20:33:06 +05:30
Abhishek Kondur
8d874b876b set mq order matters to false 2023-06-28 08:34:14 +05:30
Abhishek Kondur
243cc74490 remove endpoint detection from host model 2023-06-27 22:36:24 +05:30
Aceix
9787ce6ae8
fix(NET-312): increase log levels for verbose logs (#2403) 2023-06-20 16:28:40 +05:30
Tobias Cudnik
94ca72e370
NET-173 Sync EndpointDetection config (#2374)
* adding serverconfig logic and variable to hosts

* - sync EndpointDetection on peerupdate
- add EndpointDetection to env config

* - endpoint detection always comes from the server
- fixed ENDPOINT_DETECTION -> NETCLIENT_ENDPOINT_DETECTION

---------

Co-authored-by: afeiszli <alex.feiszli@gmail.com>
2023-06-13 16:33:53 -04:00
Matthew R Kasun
f94cda11f6
Net 262 - structured logging (#2366)
* structured logging infra

* structured logging mq handlers
2023-06-06 13:47:16 -04:00
Matthew R Kasun
6f11eb2bb0
update version/firewall in use if changed on checkin (#2335) 2023-05-31 09:10:05 +05:30
Alex Feiszli
9f0127578f
Merge pull request #2254 from gravitl/NET-32
random string
2023-05-02 17:01:36 -04:00
Matthew R Kasun
6d6ba3aa7d random string
update algorithm
consolidate MakeRandomString, RandomString & GenerateCrytoString into
one function
2023-05-02 13:28:00 -04:00
Abhishek Kondur
423abf0fe4 add use_turn option to config,check if server is using turn 2023-04-28 14:06:28 +05:30
Abhishek Kondur
5ad092343a pr comments addressed 2023-04-28 13:28:34 +05:30
Abhishek Kondur
9e0038f39c merge conflicts resolved 2023-04-25 11:12:22 +04:00
Matthew R Kasun
d5a83f3002 move servercfg.GetServer() out of loop 2023-04-19 09:43:07 -04:00
Abhishek Kondur
433b61417b merge conflicts resolved 2023-04-19 13:23:06 +04:00
Matthew R Kasun
cd89b4abef remove old peer when publickey updated 2023-04-17 18:20:09 -04:00
Abhishek Kondur
4f95e9f562 add basic auth to turn server apis, handle host registration on server 2023-04-17 15:33:05 +04:00
Abhishek Kondur
d4ceabd4b3 register host through server, add basic auth to turn apis 2023-04-17 11:21:28 +04:00
0xdcarns
9d230d3540 initial commit 2023-04-06 12:27:33 -04:00
dcarns
b5e6836a6c
Merge pull request #2175 from gravitl/master
EMQX hotfix
2023-04-04 13:23:49 -04:00
Abhishek Kondur
2bc5cb238f change emqx apis to support v5.0.09 2023-04-04 15:43:06 +04:00
0xdcarns
8f2c38b118 Merge branch 'develop' into GRA-1401/host-nattype 2023-03-30 17:27:09 -04:00
0xdcarns
fa40a5929d added turn ep + nat type to host model 2023-03-30 17:23:21 -04:00
Abhishek Kondur
45ea3be347 set proxy action based on proxy status 2023-03-29 10:39:18 +04:00
Abhishek Kondur
20cf3b00bc remove additional port field 2023-03-29 05:24:07 +04:00
Abhishek Kondur
60ddad3189 proxy only required connections 2023-03-28 14:04:27 +04:00
dcarns
158672a906
Merge pull request #2097 from gravitl/feature_emqx_acl
Add EMQX ACLs
2023-03-22 11:56:56 -04:00
0xdcarns
f25421f6c4 fixed update issue 2023-03-22 10:48:54 -04:00
Anish Mukherjee
852abcf4e7 update mq topics to use servername 2023-03-21 17:55:51 +05:30
Anish Mukherjee
949438d5b5 update ACLs 2023-03-21 17:47:58 +05:30
Anish Mukherjee
8a9f569c4f add emqx acls 2023-03-21 17:47:57 +05:30
0xdcarns
8f8b4c8b70 merge develop 2023-03-20 17:05:41 -04:00
0xdcarns
bf687dd478 add return 2023-03-20 08:55:28 -04:00
Anish Mukherjee
0e9c549d1b add server name to common topics 2023-03-16 16:39:41 +05:30
dcarns
99cb2195a0
Merge pull request #2119 from gravitl/GRA-1369-ext-acls
GRA-1369 - added logic for ext client ACLs
2023-03-15 13:19:41 -04:00
dcarns
3d5b0ceafc
Merge pull request #2113 from gravitl/GRA-1342-registration-dns
GRA-1342: added DNS publish when host add nodes
2023-03-15 08:52:39 -04:00
dcarns
abee5e104a
Merge pull request #2116 from gravitl/GRA-1321
GRA-1321: Metrics Fix
2023-03-15 08:49:55 -04:00
0xdcarns
0f3faceb93 added logic for ext client ACLs 2023-03-14 13:39:33 -04:00
0xdcarns
11daff3f1c added iot check in mq message handlers 2023-03-14 10:46:12 -04:00
0xdcarns
ba03fed905 added DNS publish when host add nodes 2023-03-14 08:33:14 -04:00
Abhishek Kondur
a701956d99 fix traffic sent and recieved metric 2023-03-14 07:00:59 +04:00
Abhishek Kondur
959ca622e3 add new field to proxy metrics 2023-03-14 06:55:25 +04:00
0xdcarns
58adef9e12 address non-functional comment 2023-03-07 11:00:21 -05:00
0xdcarns
28119c22ee added context to peer updates, moved nodes to memory 2023-03-06 12:21:51 -05:00