Commit graph

23 commits

Author SHA1 Message Date
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
abhishek9686
c25a732015 fix acl mutex lock 2024-03-04 13:11:51 +07:00
abhishek9686
f165f5fcf4 add debug logs to removing host from network 2024-03-04 12:51:37 +07:00
Abhishek K
91bfcba8e2
NET-969: add additional acl mutex (#2827)
* add additional acl mutex

* fix acls race issue

* rm defer mutex
2024-02-28 09:04:36 +07:00
Abhishek K
2c4a27c53b
NET-735: HA Support (#2701)
* cache enabled option, cache hosts data if only enabled

* cache nodes only when enabled

* cache extclients only when enabled

* cache acls only when enabled
2023-12-05 12:01:35 +04:00
Abhishek Kondur
ef6e66fcc4 acl mutex on ISAllowed 2023-06-29 01:57:00 +05:30
Abhishek Kondur
68c7b20dd8 additional mutex locks for acls 2023-06-29 01:06:26 +05:30
Abhishek Kondur
b4081f43d1 use mutex for accessing acl container 2023-06-28 13:42:01 +05:30
Abhishek Kondur
65a683ad79 rm return 2023-06-27 21:48:07 +05:30
Abhishek Kondur
0c06e2b972 Merge branch 'NET-341/dont-panic' of https://github.com/gravitl/netmaker into NET-258-oldupdates 2023-06-27 16:39:12 +05:30
Abhishek Kondur
27ac920069 cache acls 2023-06-27 16:12:06 +05:30
Tobias Cudnik
59da2698a5
Update common.go 2023-06-16 15:48:53 +02:00
Tobias Cudnik
637f840a81
Update common.go 2023-06-16 15:46:23 +02:00
0xdcarns
112f03cf1f changed dir name and added to gitignore, removed log 2022-03-11 08:46:01 -05:00
0xdcarns
c25ea9fe15 comment changes 2022-03-10 16:01:36 -05:00
0xdcarns
af8918e35f added acl logic to affect peers 2022-03-10 14:55:40 -05:00
0xdcarns
aefc8b090b added basic api endpoints 2022-03-10 14:55:40 -05:00
0xdcarns
9668a84cd0 added one more test 2022-03-10 14:55:40 -05:00
0xdcarns
68c7014802 refactored node functions further 2022-03-10 14:55:40 -05:00
0xdcarns
1d92e4cf5a began generalizing 2022-03-10 14:55:40 -05:00
0xdcarns
da25da775c refactored some logic to use typed functions 2022-03-10 14:55:40 -05:00
0xdcarns
a8043accc9 node ACL logic + tests implemented 2022-03-10 14:55:40 -05:00
0xdcarns
6061ccec76 began ACL implementation 2022-03-10 14:55:40 -05:00