Commit graph

356 commits

Author SHA1 Message Date
Abhishek K
7e3bf3baea
NET-812: Deprecate Setting /etc/hosts entries (#2733)
* deprecate setting etc host dns entries, set coredns entries at neccessary places

* remove dns mq topics

* only set dns when set on

* add extcleints dns entries to coredns

* fix static checks

* run coredns with host network mode

* add bind address to coredns container
2023-12-20 10:24:53 +04:00
Abhishek K
98c01c4325
NET-814: Deprecating TURN (#2723)
* deprecate turn

* process signals through mq
2023-12-13 22:46:57 +04:00
Abhishek K
b78cc0a8a1
NET-725: Failovers (#2685)
* api to  to get host relayed from client

* add auto relay to api host

* add peer nat type

* set pro field on signal

* rm net check on relay me handler

* return success response

* re-establish failover logic

* set failOver ctx

* failOver with peer pub key

* failovered peer updates

* failover handlers, reset failovered peer on deletion

* rm unused funcs

* initialize failover handler on EE

* ignore failover node on signal

* failover changes

* set host id on signal

* extend signal model to include node ids

* add backwards compatibility

* add failover as node api

* set json response on failover handers

* add failover field to api node

* fix signal data check

* initialize failover peer map

* reset failovered status when relayed or deleted

* add failover info to api node

* reset network failover

* only proceed furtuer if failover exists in the network

* set failOver node defaults

* cannot set failover node as relayed

* debug log

* debug log

* debug changes

* debug changes

* debug changes

* revert debug changes

* don't add peers to idmap when removed

* reset failed Over

* fix static checks

* rm debug log

* add check for linux host
2023-11-29 20:10:07 +04:00
Abhishek K
27378b9c52
NET-765: publish deleted node update on disconnect (#2668)
* publish deleted node update on disconnect

* delete any daemon node

* set peer update for disconnected Node

* set peer update for disconnected Node
2023-11-15 19:53:52 +04:00
Abhishek K
83e83f8392
NET-751: Send deleted node peer update on uninstall (#2665)
* send deleted node peer update, when deleted host from client

* remove duplicate peer update
2023-11-10 11:37:38 +04:00
Abhishek K
7169db78ea
NET-717: DNS Fixes (#2654)
* send dns with complete entry name

* publish dns records on adding host to network from UI

* publish node dns updates when host is removed
2023-11-08 17:43:41 +04:00
guangwu
92260170f5
fix: typo (#2624) 2023-10-24 20:52:40 +04:00
Matthew R Kasun
83f2f2ef28
publish node update on ifcace change (#2600) 2023-09-28 14:28:19 +04:00
pwillis7
fe842e0f05
feat(NET-591): allow generic DNS entries (#2568) 2023-09-20 14:20:08 +02:00
Gabriel de Souza Seibel
1a1ba1ccf4
[NET-546] Move ee code to ee package, unify ee status and terminology (#2538)
* Move ee code to ee package and unify ee status to IsPro

* Consolidate naming for paid/professional/enterprise version as "pro". Notes:

- Changes image tags
- Changes build tags
- Changes package names
- Doesn't change links to docs that mention "ee"
- Doesn't change parameters sent to PostHog that mention "ee"

* Revert docker image tag being -pro, back to -ee

* Revert go build tag being pro, back to ee

* Add build tags for some ee content

* [2] Revert go build tag being pro, back to ee

* Fix test workflow

* Add a json tag to be backwards compatible with frontend "IsEE" check

* Add a json tag for the serverconfig struct for IsEE

* Ammend json tag to Is_EE

* fix ee tags

---------

Co-authored-by: Abhishek Kondur <abhi281342@gmail.com>
2023-09-01 07:42:05 +05:30
Farukh Khan
8be0409b6a
NET-555 (#2524)
* IoT peer updates remove flag is now only triggering on relay deletion. Not triggering on extclients deletion anymore.

* Small typo fix on publish dns update for new extclient function name.
2023-08-25 14:23:01 +05:30
Abhishek K
97f21d8b45
don't reference host on err (#2493) 2023-08-02 22:01:41 +05:30
Abhishek K
645bc4c126
NET-447: Removed proxy related fields and code (#2459)
* remove related fields and code

* remover metrics collection from server code

* fw update struct

* add ext client flag to metrics data

* simply nat types

* rm proxy update from cli
2023-07-26 11:22:49 +05:30
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