Commit graph

184 commits

Author SHA1 Message Date
Christopher Blaha
8b1294b5fb
update develop to v0.24.1 (#2904) 2024-04-26 09:06:40 +05:30
Abhishek K
66069fbc34
NET-1082: Scale Testing Fixes (#2894)
* add additional mutex lock on node acls func

* increase verbosity

* disable acls on cloud emqx

* add emqx creds creation to go routine

* add debug log of mq client id

* comment port check

* uncomment port check

* check for connection mq connection open

* use username for client id

* add write mutex on acl is allowed

* add mq connection lost handler on server

* spin off zombie init as go routine

* get whole api path from config

* Revert "get whole api path from config"

This reverts commit 392f5f4c5f.

* update extclient acls async

* add additional mutex lock on node acls func

(cherry picked from commit 5325f0e7d7)

* increase verbosity

(cherry picked from commit 705b3cf0bf)

* add emqx creds creation to go routine

(cherry picked from commit c8e65f4820)

* add debug log of mq client id

(cherry picked from commit 29c5d6ceca)

* comment port check

(cherry picked from commit db8d6d95ea)

* check for connection mq connection open

(cherry picked from commit 13b11033b0)

* use username for client id

(cherry picked from commit e90c7386de)

* add write mutex on acl is allowed

(cherry picked from commit 4cae1b0bb4)

* add mq connection lost handler on server

(cherry picked from commit c82918ad35)

* spin off zombie init as go routine

(cherry picked from commit 6d65c44c43)

* update extclient acls async

(cherry picked from commit 6557ef1ebe)

* additionl logs for oauth user flow

(cherry picked from commit 61703038ae)

* add more debug logs

(cherry picked from commit 5980beacd1)

* add more debug logs

(cherry picked from commit 4d001f0d27)

* add set auth secret

(cherry picked from commit f41cef5da5)

* fix fetch pass

(cherry picked from commit 825caf4b60)

* make sure auth secret is set only once

(cherry picked from commit ba33ed02aa)

* make sure auth secret is set only once

(cherry picked from commit 920ac4c507)

* comment usage of emqx acls

* replace  read lock with write lock on acls

* replace  read lock with write lock on acls

(cherry picked from commit 808d2135c8)

* use deadlock pkg for visibility

* add additional mutex locks

* remove race flag

* on mq re-connecting donot exit if failed

* on mq re-connecting donot exit if failed

* revert mutex package change

* set mq clean session

* remove debug log

* go mod tidy

* revert on prem emqx acls del
2024-04-11 21:18:57 +05:30
Christopher Blaha
0b2422b848
update to 0.24.0 (#2893) 2024-04-11 21:05:06 +05:30
Christopher Blaha
83cb39db5a
update develop to 0.23.1 (#2835) 2024-03-05 18:08:54 +07:00
Christopher Blaha
eaa62d8f22
update develop to v0.23.0 (#2816) 2024-02-08 23:30:10 +05:30
Christopher Blaha
8449f5487c
update develop to v0.22.1 (#2779) 2024-01-25 13:21:29 +05:30
Abhishek K
718f739b7d
NET-891: Send deleted node peer update when expired (#2763)
* send deleted node peer update when expired

* set default expiration to 100 years

* pruge expired nodes

* send mq node delete update before deleting node

* initalise to new var

* revert expiration time interval
2024-01-12 16:01:40 +05:30
Christopher Blaha
6a6c55c21a
update develop (#2725) 2023-12-11 20:01:31 +04:00
Christopher Blaha
b26a18d425
update develop (#2679) 2023-11-22 11:50:49 +04:00
Gabriel de Souza Seibel
4acba03b62
Have hooks be initialized after apis (#2626) 2023-10-20 10:41:17 +04:00
Abhishek K
675c4ec34c
NET-641: Enable/Disable Auto Update From UI (#2622)
* add support to disable/enable autoupdate on a host

* setting to older version for QA to test
2023-10-19 08:59:36 +04:00
Christopher Blaha
64d2a4820c
update develop (#2633) 2023-10-18 22:51:36 +04:00
Christopher Blaha
5074e56e6a
update develop to v0.21.1 (#2567) 2023-09-12 15:43:08 +05:30
Abhishek K
719e0c254d
NET-551: User Mgmt Re-Design (#2547)
* add superadmin role, apis to create superadmin user

* apis to attach and remove user from remote access gateways

* add api to list user's remote client has gateway clients

* remove code related user groups

* remove networks and groups from user model

* refactor user CRUD operations

* fix network permission test

* add superadmin to authorize func

* remove user network and groups from cli

* api to transfer superadmin role

* add api to list users on a ingress gw

* restrict user access to resources on server

* deny request from remote access client if extclient is already created

* fix user tests

* fix static checks

* fix static checks

* add limits to extclient create handler

* set username to superadmin on if masterkey is used

* allow creation of extclients using masterkey

* add migration func to assign superadmin role for existing admin user

* check for superadmin on migration if users are present

* allowe masterkey to extcleint apis

* check ownerid

* format error, on jwt token verification failure return unauthorized rather than forbidden

* user update fix

* move user remote functionality to ee

* fix update user api

* security patch

* initalise ee user handlers

* allow user to use master key to update any user

* use slog

* fix auth user test

* table headers

* remove user role, it's covered in middleware

* setuser defaults fix
2023-09-01 14:27:08 +05:30
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
Christopher Blaha
fe470e92dc
update develop to 0.20.7 (#2522)
* update develop to 0.20.7

* change version to 0.21.0
2023-08-18 11:55:12 +05:30
Farukh Khan
a9a8596d71
NET-507 (#2506)
* NET-507

* Fixed server restart changing the node expiration date to the defaults.

* Removed expired nodes removal from zombie cleanup routine.

* Added a new expired nodes deletion routine which removes expired nodes every hour.

* NET-507 suggested changes

* Possible fix for zombie nodes upon node deletion from the UI.

* Suggested changes implemented for expired nodes deletion go routine.

* NET-507 typo fix

* typo fix for DeleteNode purge parameter
2023-08-10 20:27:44 +05:30
Christopher Blaha
44bc2461c4
update develop to v0.20.6 (#2485) 2023-08-01 11:45:17 +05:30
Christopher Blaha
30a557cc69
update develop to v0.20.5 (#2458) 2023-07-19 21:52:10 +05:30
Christopher Blaha
184011f1f2
upgrade develop to v0.20.4 (#2444) 2023-07-10 18:21:08 +05:30
Alex Feiszli
e4895ae4a1
Merge branch 'develop' into remove-stun 2023-06-28 13:53:46 -04:00
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
Christopher Blaha
2cc0da344f
update develop to v0.20.3 (#2412) 2023-06-21 19:45:44 +05:30
afeiszli
b9a18cf73d remove stun 2023-06-13 15:53:24 -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
Christopher Blaha
c6b1ec494c
update version to 0.20.2 for develop (#2363) 2023-06-06 13:46:46 -04:00
Matthew R Kasun
9ad6d63b45
version and release note updates (#2358) 2023-06-01 09:29:29 -04:00
Matthew R Kasun
242745a57a
versions (#2302) 2023-05-18 08:08:44 -04:00
Matthew R Kasun
204ed4be26 update version 2023-05-05 11:06:06 -04:00
Matthew R Kasun
3567811aab add type to enrollement key 2023-05-05 11:03:59 -04:00
theguy951357
ee27f22478 update to v0.19.0 instead 2023-05-02 22:18:05 -04:00
theguy951357
58cd6e4884 update develop to v0.18.8 2023-04-24 16:34:02 -04:00
theguy951357
bf884280cd upgrade develop to v0.18.7 2023-04-18 15:17:00 -04:00
theguy951357
e87c1a34f9 missing version 2023-04-03 09:36:02 -04:00
theguy951357
bc6235f096 upgrade develop to v0.18.6 2023-03-30 15:08:24 -04:00
theguy951357
c4be26f52a update develop to v0.18.5 2023-03-20 11:34:25 -04:00
theguy951357
84eca8682f upgrade to 0.18.4 2023-03-16 22:09:57 -04:00
theguy951357
7025c5eca2 updating develop to v0.18.3 2023-03-04 14:19:53 -05:00
0xdcarns
a0519cc16a merge develop 2023-02-27 19:13:48 -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
5014c389ca adjusted main to use one single context 2023-02-24 15:46:06 -05:00
theguy951357
130d2de565 update develop to 0.18.2 2023-02-23 16:07:24 -05:00
yearski
84efe5f643
remove AgentBackground
deprecated by 7152f6ccd4
2023-02-20 02:25:37 -07:00
afeiszli
3c31755787 change versions 2023-02-17 14:07:31 -05:00
Abhishek Kondur
cb308e11f4 Merge branch 'develop' of https://github.com/gravitl/netmaker into GRA-1011/remove_mq_dyn_sec 2023-02-07 20:46:57 +04:00
Abhishek Kondur
bd878f79c1 merge conflicts resolved 2023-02-07 14:24:39 +04:00
0xdcarns
6a5057f57b removed client mode and references 2023-02-06 12:14:52 -05:00
Anish Mukherjee
f16280dfe0 add error on peer update fail 2023-01-27 19:04:54 +05:30
Anish Mukherjee
10ffb517c1 refactor manage zombie logic 2023-01-27 18:57:54 +05:30