Commit graph

49 commits

Author SHA1 Message Date
abhishek9686 fd95e80dc7 rm certs ref from upgrade script 2024-02-28 08:41:53 +07: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 916694b2cf
NET-664: Local Connections improvements (#2651)
* deprecate endpoint detection form config

* add peer network info to pull
2023-11-01 20:37:43 +04:00
Aceix bfc61fa359
session management for remote access client (#2592)
* feat(NET-584): wip: session mgmt for RAC

* feat(NET-584): session mgmt for RAC

* feat(NET-584): session mgmt for RAC

* feat(NET-584): session mgmt for RAC

* feat(NET-584): session mgmt for RAC

* feat(NET-584): session mgmt for RAC

* feat(NET-584): session mgmt for RAC

* feat(NET-584): session mgmt for RAC

* feat(NET-584): only enable if client is disabled

* feat(NET-584): check only for normal users

* feat(NET-584): fix condition
2023-10-02 08:57:58 +04: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
Abhishek K daaf488216
NET-406: fix typo in upgrade script (#2515)
* create gateways during migration

* set version for testing

* restruct migration

* debug logging

* enforce unique names for ext client names (#2476)

* enforce unique names for ext client names

* only check for unique id on creation

* check for unique id if changed

* prune(NET-483): remove defunct host.internetgateway field (#2487)

* don't reference host on err (#2493)

* deprecrate netclient install scripts (#2490)

* Net 500: validate network parameter passed to node endpoints (#2480)

* enforce unique names for ext client names

* only check for unique id on creation

* check for unique id if changed

* validate network parameter passed to node endpoints

---------

Co-authored-by: Abhishek K <32607604+abhishek9686@users.noreply.github.com>

* NET-513 (#2492)

nm-certs.sh now requests certificate for EE and CE edition domains accordingly.

* [NET-404] Run in limited mode when ee checks fail (#2474)

* Add limited http handlers functionality to rest handler

* Export ee.errValidation (ee.ErrValidation)

* Export a fatal error handled by the hook manager

* Export a new status variable for unlicensed server

* Mark server as unlicensed when ee checks fail

* Handle license validation failures with a (re)boot in a limited state

* Revert "Export a fatal error handled by the hook manager"

This reverts commit 069c21974a8d36e889c73ad78023448d787d62a5.

* Revert "Export ee.errValidation (ee.ErrValidation)"

This reverts commit 59dbab8c79773ca5d879f28cbaf53f3dd4297b9b.

* Revert "Add limited http handlers functionality to rest handler"

This reverts commit e2f1f28facaca54713db76a588839cd2733cf673.

* Revert "Handle license validation failures with a (re)boot in a limited state"

This reverts commit 58cfbbaf522a1345aac1fa67964ebff0a6d60cd8.

* Revert "Mark server as unlicensed when ee checks fail"

This reverts commit 77c6dbdd3c9cfa6e7d6becedef6251e8617ae367.

* Handle license validation failures with a middleware

* Forbid responses if unlicensed ee and not in status api

* Remove unused func

* feat(NET-449): add sync feature to request a host pull from server (#2491)

* fix(NET-486): change client name length validation (#2498)

set limit to 5<=x<=32

* [NET-477] Pick AMB URL dynamically (#2489)

* Introduce config for environment

* Introduce func to get environment

* Choose accounts api host from environment

* Test the ee package on workflows

* Use build tag ee for license_test.go

* [Feature]: nm-quick script tackling arm TODO support (#2488)

* domain flag for auto installs

* use static servers with custom domain (#2421)

* send delete peer update always

* fix add/remove host api calls

* keep mq updates in a single go func

* move branch test logic to devops (#2443)

* handle IOT OS

* save server name to env (#2460)

* ensure branch test servers available after test runs (#2467)

* save server name to env

* free server always; add PR to discord messages

* use correct method to delete droplets (#2468)

* quick fix for the launcher

* removed exit when triggering not supported exit and removed the TODO comments related to this issue

---------

Co-authored-by: Matthew R Kasun <mkasun@nusak.ca>
Co-authored-by: Alex Feiszli <31018251+afeiszli@users.noreply.github.com>
Co-authored-by: Christopher Blaha <crispspiceguitar@gmail.com>
Co-authored-by: Abhishek Kondur <abhi281342@gmail.com>
Co-authored-by: Abhishek K <32607604+abhishek9686@users.noreply.github.com>

* rebase conflict

* include pass and os in mirgration data

* node network ranges

* remove debugging logs

* add gateways

* use sent node

* upgrade shell script

* associate node to host during migration

* add node to host.Nodes and publish peer update

* save host outside loop

* fix script name

* simplify upgrade script

* don't migrate relays

* simplify upgrade script even more

* guard against blank address or address6

* typos

* fix convertsion of persistent keepalive

* remove weird paste

* another paste error

* fix command typo

---------

Co-authored-by: Matthew R Kasun <mkasun@nusak.ca>
Co-authored-by: Aceix <aceixsmartX@gmail.com>
Co-authored-by: Farukh Khan <farukhkhan21@gmail.com>
Co-authored-by: Gabriel de Souza Seibel <gabrielseibel1@gmail.com>
Co-authored-by: bornav <51048565+bornav@users.noreply.github.com>
Co-authored-by: Alex Feiszli <31018251+afeiszli@users.noreply.github.com>
Co-authored-by: Christopher Blaha <crispspiceguitar@gmail.com>
2023-08-16 16:43:29 +05:30
Matthew R Kasun 5c38b5b2d0
migration (#2509)
* create gateways during migration

* set version for testing

* restruct migration

* debug logging

* enforce unique names for ext client names (#2476)

* enforce unique names for ext client names

* only check for unique id on creation

* check for unique id if changed

* prune(NET-483): remove defunct host.internetgateway field (#2487)

* don't reference host on err (#2493)

* deprecrate netclient install scripts (#2490)

* Net 500: validate network parameter passed to node endpoints (#2480)

* enforce unique names for ext client names

* only check for unique id on creation

* check for unique id if changed

* validate network parameter passed to node endpoints

---------

Co-authored-by: Abhishek K <32607604+abhishek9686@users.noreply.github.com>

* NET-513 (#2492)

nm-certs.sh now requests certificate for EE and CE edition domains accordingly.

* [NET-404] Run in limited mode when ee checks fail (#2474)

* Add limited http handlers functionality to rest handler

* Export ee.errValidation (ee.ErrValidation)

* Export a fatal error handled by the hook manager

* Export a new status variable for unlicensed server

* Mark server as unlicensed when ee checks fail

* Handle license validation failures with a (re)boot in a limited state

* Revert "Export a fatal error handled by the hook manager"

This reverts commit 069c21974a8d36e889c73ad78023448d787d62a5.

* Revert "Export ee.errValidation (ee.ErrValidation)"

This reverts commit 59dbab8c79773ca5d879f28cbaf53f3dd4297b9b.

* Revert "Add limited http handlers functionality to rest handler"

This reverts commit e2f1f28facaca54713db76a588839cd2733cf673.

* Revert "Handle license validation failures with a (re)boot in a limited state"

This reverts commit 58cfbbaf522a1345aac1fa67964ebff0a6d60cd8.

* Revert "Mark server as unlicensed when ee checks fail"

This reverts commit 77c6dbdd3c9cfa6e7d6becedef6251e8617ae367.

* Handle license validation failures with a middleware

* Forbid responses if unlicensed ee and not in status api

* Remove unused func

* feat(NET-449): add sync feature to request a host pull from server (#2491)

* fix(NET-486): change client name length validation (#2498)

set limit to 5<=x<=32

* [NET-477] Pick AMB URL dynamically (#2489)

* Introduce config for environment

* Introduce func to get environment

* Choose accounts api host from environment

* Test the ee package on workflows

* Use build tag ee for license_test.go

* [Feature]: nm-quick script tackling arm TODO support (#2488)

* domain flag for auto installs

* use static servers with custom domain (#2421)

* send delete peer update always

* fix add/remove host api calls

* keep mq updates in a single go func

* move branch test logic to devops (#2443)

* handle IOT OS

* save server name to env (#2460)

* ensure branch test servers available after test runs (#2467)

* save server name to env

* free server always; add PR to discord messages

* use correct method to delete droplets (#2468)

* quick fix for the launcher

* removed exit when triggering not supported exit and removed the TODO comments related to this issue

---------

Co-authored-by: Matthew R Kasun <mkasun@nusak.ca>
Co-authored-by: Alex Feiszli <31018251+afeiszli@users.noreply.github.com>
Co-authored-by: Christopher Blaha <crispspiceguitar@gmail.com>
Co-authored-by: Abhishek Kondur <abhi281342@gmail.com>
Co-authored-by: Abhishek K <32607604+abhishek9686@users.noreply.github.com>

* rebase conflict

* include pass and os in mirgration data

* node network ranges

* remove debugging logs

* add gateways

* use sent node

* upgrade shell script

* associate node to host during migration

* add node to host.Nodes and publish peer update

* save host outside loop

* fix script name

* simplify upgrade script

* don't migrate relays

* simplify upgrade script even more

* guard against blank address or address6

* typos

---------

Co-authored-by: Aceix <aceixsmartX@gmail.com>
Co-authored-by: Abhishek K <32607604+abhishek9686@users.noreply.github.com>
Co-authored-by: Farukh Khan <farukhkhan21@gmail.com>
Co-authored-by: Gabriel de Souza Seibel <gabrielseibel1@gmail.com>
Co-authored-by: bornav <51048565+bornav@users.noreply.github.com>
Co-authored-by: Alex Feiszli <31018251+afeiszli@users.noreply.github.com>
Co-authored-by: Christopher Blaha <crispspiceguitar@gmail.com>
Co-authored-by: Abhishek Kondur <abhi281342@gmail.com>
2023-08-14 23:14:10 +05:30
afeiszli 9162b33208 updating compose files and install/upgrade scripts 2023-05-03 17:15:21 -04:00
Alex Feiszli 146f50a1ea
Merge pull request #2236 from gravitl/v0.18.8_develop
update develop to v0.19.0
2023-05-03 15:49:13 -04:00
theguy951357 ee27f22478 update to v0.19.0 instead 2023-05-02 22:18:05 -04:00
Noah Betzen 92a3fa4849
Update nm-upgrade.sh with correct nmctl download path 2023-04-29 21:01:36 +00:00
0xdcarns f394637c82 fix version 2023-04-13 16:44:05 -04:00
Matthew R Kasun 0c45e38939 fix path var in mosquitto.conf copy command
also corrected a couple of minor items reported by checkshell
2023-04-12 15:44:52 -04:00
Christopher Blaha 36ada8f672
Merge branch 'develop' into v0.18.6_develop 2023-04-03 10:34:59 -04:00
theguy951357 63175d234a version 2023-04-03 09:40:25 -04:00
theguy951357 e87c1a34f9 missing version 2023-04-03 09:36:02 -04:00
theguy951357 37334b21e7 docker not Docker 2023-03-31 13:58:57 -04:00
theguy951357 04b6c24d6f done 2023-03-31 13:52:32 -04:00
theguy951357 1d510172c3 space 2023-03-31 13:43:28 -04:00
theguy951357 74c2f98335 script upgrades to nm-upgrade.sh 2023-03-31 13:40:22 -04:00
theguy951357 bc6235f096 upgrade develop to v0.18.6 2023-03-30 15:08:24 -04:00
afeiszli 7c07f47d29 updating versions / pointers for release 2023-03-30 12:47:30 -04:00
dcarns b1b4fb821e
Merge pull request #2141 from gravitl/story/GRA-1431
Story/gra 1431
2023-03-22 15:42:13 -04:00
afeiszli 3fd55c1b45 fixed nm-upgrade.sh 2023-03-22 11:29:54 -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
Alex Feiszli cf6e4d0bde
Merge branch 'develop' into story/GRA-1252 2023-03-14 14:45:13 -04:00
afeiszli bec7b8f4bc change wss to ws 2023-03-09 16:54:26 -05:00
afeiszli e9f8ab78f2 fixing issue with keys, bad env vars 2023-03-09 15:33:26 -05:00
afeiszli 532f061f2a resolve conflicts 2023-03-09 13:45:17 -05:00
Alex Feiszli 6a89c81e01
Merge branch 'develop' into story/GRA-1252 2023-03-07 14:09:26 -05:00
theguy951357 7025c5eca2 updating develop to v0.18.3 2023-03-04 14:19:53 -05:00
afeiszli 3f79f95a2d version 2023-03-01 08:11:46 -05:00
afeiszli 7325c46719 moving back to host install 2023-03-01 08:10:44 -05:00
afeiszli f6d3ba9eb9 moving back to host install 2023-03-01 08:08:58 -05:00
Alex Feiszli 35f13bc341
Merge branch 'develop' into story/GRA-1147 2023-02-28 17:47:47 -05:00
Alex Feiszli 0205d3af62
Merge branch 'develop' into story/GRA-1252 2023-02-28 17:36:56 -05:00
Alex Feiszli ac6a5d912f
Merge branch 'develop' into story/GRA-1252 2023-02-23 18:56:06 -05:00
afeiszli 5b191c19b9 updating scripts 2023-02-23 18:49:30 -05:00
theguy951357 130d2de565 update develop to 0.18.2 2023-02-23 16:07:24 -05:00
theguy951357 3f27d4df4d upgrading quick scripts to 0.18.1 2023-02-23 08:48:35 -05:00
afeiszli 763e4973a5 add function comments 2023-02-21 18:42:56 -05:00
afeiszli f68f8a1b4c upgrade script functional 2023-02-21 18:36:37 -05:00
afeiszli 3c31755787 change versions 2023-02-17 14:07:31 -05:00
afeiszli b07bab4002 saving progress 2023-02-10 13:34:25 -05:00
afeiszli 37c8a253b8 set STUN port 2023-01-23 13:35:40 -05:00
afeiszli 0d92bf4aa1 added comments 2023-01-23 08:11:20 -05:00
afeiszli 60952bdc1c script now working besides blockers 2023-01-23 08:06:27 -05:00
afeiszli f2b63ae2d0 added script 2023-01-04 16:15:12 -05:00