Commit graph

378 commits

Author SHA1 Message Date
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
0xdcarns 48aad9780c merge develop 2023-03-06 10:28:54 -05:00
0xdcarns 91373953e7 added ability to force delete if node is requested twice 2023-03-03 11:11:02 -05:00
0xdcarns 385232ca5a cleanup unnecessary routines + use peerindexmap for delete check 2023-03-01 10:55:34 -05:00
dcarns ad4bab064b
Merge pull request #2050 from gravitl/GRA-1198-enrollment_keys
Gra 1198 enrollment keys
2023-02-28 09:26:23 -05:00
dcarns dbf6f1034b
Merge pull request #2058 from gravitl/feature_emqx
Add emqx boilerplate
2023-02-28 08:41:39 -05:00
0xdcarns a0519cc16a merge develop 2023-02-27 19:13:48 -05:00
0xdcarns 2be3ff747a Merge branch 'develop' into GRA-1198-enrollment 2023-02-27 15:55:25 -05:00
dcarns 26df6f4016
Merge pull request #2076 from walkerwmanuel/GRA-1270-startup-log-rework
Added more accurate startup logs
2023-02-27 15:22:54 -05:00
walkerwmanuel b6e0a860ae Added more accurate startup logs 2023-02-27 14:52:50 -05:00
0xdcarns 2749e7311b Revert "adjusted main to use one single context"
This reverts commit 92d0d12e8f.
2023-02-27 13:36:32 -05:00
0xdcarns 977c9c8c19 send peer update after request + fix pass update issue 2023-02-27 12:32:07 -05:00
Anish Mukherjee 314af6b51d create emqx credentials for host upon creation 2023-02-27 17:18:35 +05:30
0xdcarns 5014c389ca adjusted main to use one single context 2023-02-24 15:46:06 -05:00
0xdcarns 92d0d12e8f adjusted main to use one single context 2023-02-24 15:37:53 -05:00
0xdcarns e759637750 Merge branch 'develop' into GRA-1198 2023-02-24 11:23:41 -05:00
0xdcarns adf3967e0d handled forced deleted peer 2023-02-24 10:41:04 -05:00
0xdcarns 80fda83c0c adjusted peer updates to remove peers properly, slowed zombie check 2023-02-23 10:55:42 -05:00
Anish Mukherjee 5279900b7c add /mqtt for EMQX websocket listen endpoint 2023-02-22 20:37:08 +05:30
Anish Mukherjee c7a3306d3e refresh emqx admin user on server startup 2023-02-22 20:37:08 +05:30
Anish Mukherjee a33ac33462 wait for EMQX rest endpoint startup 2023-02-22 20:37:08 +05:30
Anish Mukherjee d2adf88b21 add emqx boilerplate 2023-02-22 20:37:08 +05:30
0xdcarns 16f2093004 added empty string to params 2023-02-21 11:17:48 -05:00
0xdcarns a1f5d73a58 added request ack 2023-02-17 11:39:30 -05:00
0xdcarns 6b30cef968 handled node additions in more elegant manner 2023-02-17 11:32:02 -05:00
dcarns 92dbfa52a5
Merge pull request #2001 from gravitl/gra-1088_dns_updates
Gra 1088 dns updates
2023-02-15 12:55:58 -05:00
Matthew R Kasun bd9cf14c02 Merge branch 'develop' into gra-1088_dns_updates 2023-02-15 06:42:09 -05:00
Matthew R Kasun c7c864b229 break into smaller funcs 2023-02-14 13:29:20 -05:00
0xdcarns 93473a4e70 updated node topic for publishing 2023-02-14 13:00:08 -05:00
Abhishek Kondur 7f9552b04d remove duplicate peer update 2023-02-13 21:48:16 +04:00
Matthew R Kasun 6e061c49d0 fix typo 2023-02-10 11:03:08 -05:00
Matthew R Kasun 7c1784e74f log message on succesful alldns publish 2023-02-10 10:58:06 -05:00
Matthew R Kasun c7338888e4 error handling 2023-02-10 06:58:00 -05:00
Matthew R Kasun 98e66b7292 include ipv6 for extclients 2023-02-09 11:20:50 -05:00
Matthew R Kasun 0b0db1c0e8 add network name to dns 2023-02-09 10:49:56 -05:00
Matthew R Kasun e0478b9b54 ensure network add to new extclient for dns update 2023-02-08 15:58:32 -05:00
Matthew R Kasun 574583b3b1 include network on extcient dns update 2023-02-08 13:50:34 -05:00
Matthew R Kasun d4cd24e778 extclient update 2023-02-08 11:32:28 -05:00
Matthew R Kasun 88358f517c include old/new ip in dnsupdate for node ip change 2023-02-08 10:33:27 -05:00
Matthew R Kasun 8d6728bc41 add network when publishing custom dns creation 2023-02-08 10:11:36 -05:00
dcarns d5c85b1d87
Merge pull request #2002 from gravitl/GRA-1011/remove_mq_dyn_sec
Gra 1011/remove mq dyn sec
2023-02-08 08:55:23 -05:00
Matthew R Kasun 322bdb0af8 update dns mq topics to have four fields 2023-02-08 08:35:36 -05:00
Matthew R Kasun e1f644a453 add server name to dns publish topics 2023-02-07 15:17:11 -05:00
Matthew R Kasun 488ada670c cleanup: function comments, etc 2023-02-07 15:17:11 -05:00
Matthew R Kasun 5cac655f04 publish dns update on host name change 2023-02-07 15:17:11 -05:00
Matthew R Kasun dbad8ac463 publish dns update on custom dns deletion 2023-02-07 15:17:11 -05:00
Matthew R Kasun 4f7c038702 publish dns update on custom dns creation 2023-02-07 15:17:11 -05:00
Matthew R Kasun 89136f4832 publish dns update on ext client deletion 2023-02-07 15:17:10 -05:00
Matthew R Kasun a24263281c publish dns update on node ip change 2023-02-07 15:17:10 -05:00
Matthew R Kasun af66356061 publish dns on node deletion 2023-02-07 15:17:10 -05:00
Matthew R Kasun a441e35a09 publish dns on node creation 2023-02-07 15:17:10 -05:00
Abhishek Kondur bd878f79c1 merge conflicts resolved 2023-02-07 14:24:39 +04:00
0xdcarns 7a2c225eb1 added mq and database connected funcs and endpoint 2023-02-06 12:09:21 -05:00
Matthew R Kasun aad4abc181 remove dependencies on netclient 2023-01-27 14:51:06 -05:00
dcarns 6e50011ceb
Merge pull request #1978 from gravitl/GRA-1060/bug_proxy_listen_port
Gra 1060/bug public listen port
2023-01-26 18:28:30 -05:00
Abhishek Kondur acbd0d6337 only print host id in log 2023-01-26 14:02:47 +04:00
Anish Mukherjee 1b43d6bf1c increase log verbosity for legacy nodes 2023-01-26 14:41:50 +05:30
dcarns a4e5f84be8
Merge pull request #1976 from gravitl/bugfix_v0.18_0_address_of_loop_vars
correct use: address of loop vars
2023-01-25 21:33:17 -05:00
Matthew R Kasun 73dfc6fe47 correct using address of loop vars 2023-01-25 13:21:18 -05:00
dcarns 5fb3ec7b79
Merge pull request #1970 from gravitl/static_check_addressing
addressed majority of static checks
2023-01-24 13:14:47 -05:00
0xdcarns 706bba0593 addressed majority of static checks 2023-01-24 11:20:06 -05:00
Abhishek Kondur 18ddb3d5ca update host name on join 2023-01-24 12:10:03 +04:00
dcarns 94108e0007
Merge pull request #1962 from gravitl/GRA-1024/mq_dyn_sec_refactor
Gra 1024/mq dyn sec refactor
2023-01-23 15:00:33 -05:00
Matthew R Kasun 9b072e1050 remove network capabilities from netmaker
remove NET_ADMIN, NET_RAW, SYS_MODULE capabilities from docker-compose
files
remove sysctls from dockerfiles
remove ManageIPTables and PortForwardServices from ServerConfig
remove functions related to removed attributes
2023-01-23 12:37:07 -05:00
Abhishek Kondur 41afd3cd4d rm comment 2023-01-23 15:11:34 +04:00
Matthew R Kasun 1a739e6660 log level changed for hostUpdate 2023-01-22 17:32:53 -05:00