Commit graph

5900 commits

Author SHA1 Message Date
Max Ma
da11dc8a87
NET-1134:move oauth from CE build block to pro (#2919)
* move oauth from CE build block to pro

* move oauth code and api handler under pro

* move common func back to auth from pro/auth

* change log level to Info for information logs

* fix import issue
2024-05-08 12:44:39 +05:30
dependabot[bot]
7eb1cf49e0
Bump golang.org/x/crypto from 0.22.0 to 0.23.0 (#2928)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.22.0 to 0.23.0.
- [Commits](https://github.com/golang/crypto/compare/v0.22.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-08 12:19:09 +05:30
dependabot[bot]
fc5f84e04f
Bump github.com/go-playground/validator/v10 from 10.19.0 to 10.20.0 (#2927)
Bumps [github.com/go-playground/validator/v10](https://github.com/go-playground/validator) from 10.19.0 to 10.20.0.
- [Release notes](https://github.com/go-playground/validator/releases)
- [Commits](https://github.com/go-playground/validator/compare/v10.19.0...v10.20.0)

---
updated-dependencies:
- dependency-name: github.com/go-playground/validator/v10
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-08 12:17:56 +05:30
momantech
7e2b5b196a
chore: fix some comments (#2918) 2024-05-08 12:17:23 +05:30
Max Ma
1b86e80299
NET-1180: fix install issue for latest debian and centos distributions (#2921)
* fix install issue for Ubunut Fedora Centos Debian latest version

* fix install issue for rocky alma amazon suse latest version

* fix install issue for redhat latest version and misc dpkg command issues

* remove suse and add supported OS message

* change wireguard-tools package name and remove FreeBSD etc in the list

* add yum repo pacakge for centos8&7

* add sleep for nm-quick.sh to avoid failure
2024-05-08 12:15:09 +05:30
Max Ma
86fac41868
fix metric exporter mq connection issue (#2925) 2024-05-08 12:13:11 +05:30
Abhishek K
33846a5124
NET-1061: check if user exists, handle oauth not configured for host SSO (#2917)
* add debug logs

* check if user exists, handle oauth not configured for host SSO

* check if user exists, handle oauth not configured for host SSO

* check if user exists, handle oauth not configured for host SSO

* quit when websocket is closed

* quit when websocket is closed

* quit when websocket is closed

* avoid sending msg onb closed channel

* add debug log

* exit when oauth state is deleted

* add debug log

* handle oauth state not valid with appropirate message

* handle oauth state not valid with appropirate message

* check for invalid oauth state

* rm debug logs
2024-05-08 12:11:37 +05:30
Abhishek K
790681c992
Merge pull request #2930 from gravitl/master
Master
2024-05-07 16:21:58 +05:30
Abhishek K
a55a3cc4be
Merge pull request #2929 from gravitl/release-v0.24.0
Release v0.24.0
2024-05-07 16:21:18 +05:30
Abhishek K
24c05ca21c
Merge pull request #2922 from gravitl/hotfix/telemetry-trial-end-date
fix(NET-1175): use default trial end date
2024-05-07 16:20:54 +05:30
dependabot[bot]
f59dbc8bf9
Bump golang.org/x/oauth2 from 0.18.0 to 0.20.0 (#2926)
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.18.0 to 0.20.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.18.0...v0.20.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-07 16:18:12 +05:30
Abhishek K
2c38d1e8b1
Merge pull request #2923 from gravitl/hotfix/telemetry-trial-end-date
update develop with v0.24.0 hotfixes
2024-05-07 16:14:17 +05:30
the_aceix
5d02109252 fix(NET-1175): use default trial end date
this "more recent" arbitrary date is needed for hubspot to consume exported data without throwing out of date range exeptions
2024-05-03 12:52:55 +00:00
Abhishek K
76e0ba457a
Merge pull request #2910 from gravitl/kwesi/net-1175-posthog-trials-to-hubspot
fix(NET-1175): add "email" to telemetry data
2024-05-03 12:54:03 +05:30
Max Ma
1ad837ad72
NET-1164:PublishDeletedClientPeerUpdate when deleting user from RAGW (#2912)
* PublishDeletedClientPeerUpdate when deleting user from RAGW

* update ACLs after extClient is removed
2024-05-03 12:25:38 +05:30
Abhishek K
715c3051a9
Merge pull request #2911 from gravitl/kwesi/net-1175-posthog-trials-to-hubspot
fix(NET-1175): add "email" to telemetry data
2024-05-02 19:52:55 +05:30
Abhishek K
26e6ad53d1
Merge pull request #2916 from gravitl/master
Master
2024-04-30 21:43:18 +05:30
Abhishek K
fccc54d47e
Merge pull request #2915 from gravitl/release-v0.24.0
Release v0.24.0
2024-04-30 21:42:08 +05:30
Abhishek K
79d3d29f6f
Merge pull request #2914 from gravitl/release-v0.24.0-patch-1
fix: update nm-quick script to use create_remote_access_gateway
2024-04-30 21:41:42 +05:30
pwilson77
bd2cd00f9e fix: update nm-quick script to use create_remote_access_gateway 2024-04-30 16:09:49 +00:00
Aceix
117c8ba1f1
fix: fix typo "admin_email" 2024-04-30 09:20:15 +00:00
Aceix
4a8ce7b6fa
fix(NET-1155): sso login changes (#2905)
* fix(NET-1155): prompt for user account on each sso login

* fix(NET-1152): correct pending user response from rac
2024-04-30 09:57:48 +05:30
Max Ma
7de252f996
add ipv6 address/network for egress (#2906) 2024-04-30 09:57:17 +05:30
guangwu
4a2e2190fc
fix: close resp body (#2909) 2024-04-30 09:13:08 +05:30
the_aceix
42e522f96b fix(NET-1175): add "email" to telemetry data 2024-04-29 14:05:36 +00:00
Christopher Blaha
8b1294b5fb
update develop to v0.24.1 (#2904) 2024-04-26 09:06:40 +05:30
Aceix
365506930a
docs: update swagger spec (#2902) 2024-04-19 19:25:46 +05:30
Abhishek K
fc01ced034
Merge pull request #2903 from gravitl/master
Master
2024-04-19 19:25:10 +05:30
Abhishek K
6f5aafb76b
Update netmaker.default.env 2024-04-19 19:24:36 +05:30
Abhishek K
5693384ec3
Merge pull request #2901 from gravitl/release-v0.24.0
v0.24.0
2024-04-19 19:23:20 +05:30
Abhishek K
ba2c40cb9f
Merge pull request #2900 from gravitl/v0.24.0_release_notes 2024-04-17 22:38:36 +05:30
abhishek9686
2bd870804c v0.24.0 release notes 2024-04-17 22:04:14 +05:30
abhishek9686
04985cf31e v0.24.0 release notes 2024-04-17 22:03:30 +05:30
abhishek9686
338cd017e5 v0.24.0 release notes 2024-04-17 22:00:18 +05:30
Abhishek K
23359ae5ad
Merge pull request #2899 from gravitl/NET-1146
NET-1146: add user id check on RAG config creation, track failover usage
2024-04-17 18:21:53 +05:30
Abhishek K
001d078bbd
Merge branch 'develop' into NET-1146 2024-04-17 17:34:24 +05:30
abhishek9686
b2361be29b track failover usage 2024-04-17 17:22:47 +05:30
abhishek9686
84fa3a1406 change err description 2024-04-17 15:41:22 +05:30
abhishek9686
00838cab52 add user id check on extclient 2024-04-17 15:31:34 +05:30
Abhishek K
8b08ad1463
NET-1146: add node ipv6 addr to egress route (#2896)
* add node ipv6 addr to egress route

* fix egress route ipv6 address issue

* revert ipv6 peer addr change

---------

Co-authored-by: Max Ma <mayabin@gmail.com>
2024-04-16 19:22:14 +05:30
abhishek9686
564bcfc04e revert ipv6 peer addr change 2024-04-16 15:37:57 +05:30
Max Ma
b4184aaa88 fix egress route ipv6 address issue 2024-04-16 11:22:49 +02:00
abhishek9686
7dc4e6c465 add node ipv6 addr to egress route 2024-04-16 11:29:06 +05:30
abhishek9686
5ff9289462 set random id 2024-04-16 10:50:31 +05:30
abhishek9686
35ddb97b98 always set endpoint detection to true 2024-04-15 11:06:03 +05:30
Max Ma
961f8eab6e
NET-1119 (#2886)
* exclude IngressGW in failover

* resetfailoverpeer when adding IngressGw if failover enabled

* exclude InetGW in failover

* get egress ranges of failedover peer

---------

Co-authored-by: abhishek9686 <abhi281342@gmail.com>
2024-04-12 18:22:03 +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
loselarry
fa32c2ac58
chore: fix function names in comment (#2888)
Signed-off-by: loselarry <bikangning@yeah.net>
2024-04-11 21:04:24 +05:30
Aceix
08efea73ac
fix(NET-1055): fix auto-relay with enrollment key (#2887) 2024-04-11 18:14:15 +05:30