netmaker/controllers
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
..
config remove agentbackend 2023-02-20 02:22:00 -07:00
controller.go [NET-404] Run in limited mode when ee checks fail (#2474) 2023-08-03 12:16:58 +05:30
debug.go memory issue work 2021-12-08 16:52:32 -05:00
dns.go Added user sorting and fixed error 2023-04-03 14:36:38 -04:00
dns_test.go fix integration tests 2023-06-27 22:15:36 +05:30
docs.go update develop to v0.20.6 (#2485) 2023-08-01 11:45:17 +05:30
enrollmentkeys.go NET-152 enrollment keys for non admins (#2346) 2023-05-31 13:11:54 +05:30
ext_client.go [NET-494 / ACC-322] New free tier limits (#2495) 2023-08-08 23:17:49 +05:30
files.go Update swagger docs 2022-09-10 21:51:59 -07:00
hosts.go NET-507 (#2506) 2023-08-10 20:27:44 +05:30
ipservice.go Replaced string methods with HTTP consts 2022-12-23 09:49:08 -05:00
legacy.go added ability to remove legacy nodes 2023-03-07 11:02:51 -05:00
limits.go [NET-494 / ACC-322] New free tier limits (#2495) 2023-08-08 23:17:49 +05:30
logger.go Replaced string methods with HTTP consts 2022-12-23 09:49:08 -05:00
migrate.go migration (#2509) 2023-08-14 23:14:10 +05:30
network.go [NET-494 / ACC-322] New free tier limits (#2495) 2023-08-08 23:17:49 +05:30
network_test.go Net 509 515 (#2496) 2023-08-08 23:17:22 +05:30
node.go [NET-494 / ACC-322] New free tier limits (#2495) 2023-08-08 23:17:49 +05:30
node_test.go db cache nodes and hosts 2023-06-27 16:10:04 +05:30
regex.go fix(NET-486): change client name length validation (#2498) 2023-08-08 15:59:02 +05:30
regex_test.go fix(NET-486): change client name length validation (#2498) 2023-08-08 15:59:02 +05:30
response_test.go refactoring for ee 2022-09-14 13:26:31 -04:00
server.go [NET-494 / ACC-322] New free tier limits (#2495) 2023-08-08 23:17:49 +05:30
test.db renamed integration test to *_test.go.bak until they can be fixed. Should enable the workflow action to run successfully 2021-09-06 15:36:53 -04:00
user.go [NET-494 / ACC-322] New free tier limits (#2495) 2023-08-08 23:17:49 +05:30
user_test.go Don't expose user hashed password (#2419) 2023-06-26 10:53:00 +05:30