Commit graph

5794 commits

Author SHA1 Message Date
abhishek9686 96f649393c increase verbosity on mq log 2024-03-05 12:02:02 +07:00
abhishek9686 a5dff67bfd delete server user on start up to re-initialize 2024-03-05 11:48:24 +07:00
abhishek9686 778d02581c Merge branch 'develop' of https://github.com/gravitl/netmaker into ACC-468 2024-03-04 18:20:17 +07:00
abhishek9686 2e3b640a9a migrate emqx 2024-03-01 14:59:47 +07:00
abhishek9686 81af1d92c0 migrate emqx 2024-03-01 14:46:32 +07:00
abhishek9686 83cdc1abf6 migrate emqx 2024-03-01 14:26:07 +07:00
abhishek9686 8e240ff701 migrate emqx 2024-03-01 13:35:59 +07:00
abhishek9686 0259c87f87 migrate emqx 2024-03-01 13:08:25 +07:00
abhishek9686 be0a5885ea use kick out clients 2024-03-01 12:58:00 +07:00
abhishek9686 01592b2ecc add additional logging 2024-02-29 19:58:18 +07:00
abhishek9686 4630925182 send pull syn over old mq for emqx migration 2024-02-29 13:30:51 +07:00
Aceix 6f61f8abcc
docs(NET-992): update release notes for v0.23.0 (#2833)
* docs(NET-992): update release notes for v0.23.0

* docs(NET-992): update release notes for v0.23.0

* docs(NET-992): update release notes for v0.23.0
2024-02-29 00:45:29 +07:00
Abhishek K 5b8711415b
check node is still valid on enrollment key to act as relay (#2832) 2024-02-29 00:08:45 +07:00
abhishek9686 eb28faf669 add emqx migration func 2024-02-28 17:57:25 +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
Aceix b79a457ce2
fix: fix extclient creation and ACL migration (#2831) 2024-02-28 09:01:07 +07:00
Abhishek K 0638dcac49
NET-940: Inet Gws (#2828)
* internet gws apis

* add validate check for inet request

* add default gw changes to peer update

* update json tag

* add OS checks for inet gws

* add set defaul gw pro func

* allow disable and enable inet gw

* add inet handlers to pro

* add fields to api node

* add inet allowed ips

* add default gw to pull

* unset node inet details on deletion

* unset internet gw on network nodes

* unset inet gw fix

* unset inet gw fix

* send default gw ip

* fix inet node endpoint

* add default gw endpoint ip to pull resp

* validate after unset gws

* add inet client peer allowedips to inet node

* validate after unset gws

* fix allowed ips for inet peer and gw node

* fix allowed ips for inet peer and gw node

* fix allowed ips for inet peer and gw node

* fix allowed ips for inet peer and gw node

* fix inet gw and relayed conflict

* fix inet gw and relayed conflict

* fix update req

* fix update inet gw api

* when inet gw is peer ignore other allowedIps

* test relay

* revert test relay

* revert inet peer update changes

* channel internet traffic of relayed node to relay's inetgw

* channel internet traffic of relayed node to relay's inetgw

* channel internet traffic of relayed node to relay's inetgw

* add check for relayed node

* add inet info to peer update

* add inet info to peer update

* fix update node to persist inet info

* fix go tests

* egress ranges with inet gw fix

* egress ranges with inet gw fix

* disallow node acting using inet gw to act as inet gw

* add check to validate inet gw

* fix typos

* add firewall check

* set inetgw on ingress req on community

* set inetgw to false on community on ingress del
2024-02-28 08:46:51 +07:00
abhishek9686 fd95e80dc7 rm certs ref from upgrade script 2024-02-28 08:41:53 +07:00
Abhishek K a9ce842d1e
fix relayed node issue (#2826) 2024-02-21 13:41:26 +07:00
Abhishek K 2d8f67db11
ignore post cmd for qr code and if empty (#2825) 2024-02-19 19:53:45 +07:00
dependabot[bot] 217c676ee7
Bump github.com/go-playground/validator/v10 from 10.17.0 to 10.18.0 (#2820)
Bumps [github.com/go-playground/validator/v10](https://github.com/go-playground/validator) from 10.17.0 to 10.18.0.
- [Release notes](https://github.com/go-playground/validator/releases)
- [Commits](https://github.com/go-playground/validator/compare/v10.17.0...v10.18.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-02-13 20:27:52 +07:00
dependabot[bot] b908db5df9
Bump golang.org/x/oauth2 from 0.16.0 to 0.17.0 (#2821)
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.16.0 to 0.17.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.16.0...v0.17.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-02-13 20:25:55 +07:00
Aceix 100b778449
fix(NET-897): uniform client and node acls (#2803) 2024-02-13 20:25:27 +07:00
Abhishek K 2c29a70df1
NET-941: allows creation of gws without client node or egress ranges (#2822)
* allow creation of relay without relayed nodes

* allow creation of egress gw without egress ranges

* initalize empty egress ranges
2024-02-13 20:24:22 +07:00
dependabot[bot] 1f592a60a2
Bump alpine from 3.19.0 to 3.19.1 (#2809)
Bumps alpine from 3.19.0 to 3.19.1.

---
updated-dependencies:
- dependency-name: alpine
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-08 23:31:04 +05:30
dependabot[bot] 28df620455
Bump github.com/mattn/go-sqlite3 from 1.14.19 to 1.14.22 (#2815)
Bumps [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) from 1.14.19 to 1.14.22.
- [Release notes](https://github.com/mattn/go-sqlite3/releases)
- [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.19...v1.14.22)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-sqlite3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-08 23:30:31 +05:30
Christopher Blaha eaa62d8f22
update develop to v0.23.0 (#2816) 2024-02-08 23:30:10 +05:30
Aceix 39fbb45cfe
feat(NET-817): add postup/down scripts for clients (#2810) 2024-02-08 23:29:43 +05:30
Abhishek K cba55e607b
Merge pull request #2799 from VertexToEdge/bugfix_v0.22.0_bump-gorqlite-to-a8a425b1a6aa
Bump github.com/rqlite/gorqlite from v0.0.0-20210514125552-08ff1e76b22f to v0.0.0-20240122221808-a8a425b1a6aa
2024-02-06 15:17:44 +05:30
Abhishek K ecd769ea07
Merge pull request #2780 from gravitl/kwesi/net-709-add-metadata-field-to-gateway-node
feat(NET-709): add node metadata for remote gateways
2024-02-06 14:59:59 +05:30
Abhishek K e685e3ca45
Merge pull request #2805 from gravitl/NET-908
NET-908: EMQX cloud Apis support
2024-02-06 14:59:18 +05:30
Abhishek K 48940ac429
Merge pull request #2808 from gravitl/dependabot/go_modules/develop/github.com/google/uuid-1.6.0
Bump github.com/google/uuid from 1.5.0 to 1.6.0
2024-02-06 14:59:05 +05:30
Abhishek K a4288aaaca
Merge pull request #2813 from gravitl/NET-928
NET-928: make default host failover and remote access gw on joining new network
2024-02-06 14:58:34 +05:30
abhishek9686 98d9979e8b create failover and remoteaccess gw 2024-02-05 11:34:50 +05:30
abhishek9686 43e82a2936 make defaul host failover and remote access gw on joining new network 2024-02-05 11:18:28 +05:30
dependabot[bot] 450c608ff4
Bump github.com/google/uuid from 1.5.0 to 1.6.0
Bumps [github.com/google/uuid](https://github.com/google/uuid) from 1.5.0 to 1.6.0.
- [Release notes](https://github.com/google/uuid/releases)
- [Changelog](https://github.com/google/uuid/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/uuid/compare/v1.5.0...v1.6.0)

---
updated-dependencies:
- dependency-name: github.com/google/uuid
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-29 23:23:59 +00:00
the_aceix 5882b86d40 feat(NET-709): add node metadata for remote gws 2024-01-26 10:06:36 +00:00
abhishek9686 82de96d9a3 if emqx, avoid sending mq creds from server to client 2024-01-26 11:23:50 +05:30
abhishek9686 8a777205d5 if emqx, avoid sending mq creds from server to client 2024-01-26 11:15:18 +05:30
abhishek9686 b5db86d1a7 format emqx urls 2024-01-26 10:45:55 +05:30
abhishek9686 fb0fead2f0 create emqx for server, get app creds from env 2024-01-26 10:24:29 +05:30
abhishek9686 b40ce30af5 implement node acls cloud api func 2024-01-26 00:19:29 +05:30
Abhishek K a9a53f6c86
Merge pull request #2801 from gravitl/master
master
2024-01-25 23:36:18 +05:30
Abhishek K b9563fbff4
Merge pull request #2800 from gravitl/release-v0.22.0
make default host failover on install
2024-01-25 23:35:44 +05:30
abhishek9686 e220143ff3 make default host failover on install 2024-01-25 23:35:01 +05:30
abhishek9686 6d3de8d565 node acls 2024-01-25 22:27:57 +05:30
abhishek9686 c556e9d77d add host acls and create user cloud emqx funcs 2024-01-25 18:24:43 +05:30
Seongbin Hong ea235a5d3f
Merge branch 'develop' into bugfix_v0.22.0_bump-gorqlite-to-a8a425b1a6aa 2024-01-25 20:25:45 +09:00
abhishek9686 155f2887b2 implement emqx interface methods for cloud and on-prem 2024-01-25 15:11:16 +05:30
dependabot[bot] 9334da9151
Bump golang.org/x/oauth2 from 0.15.0 to 0.16.0 (#2758)
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.15.0 to 0.16.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.15.0...v0.16.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-01-25 13:22:45 +05:30