Commit graph

5992 commits

Author SHA1 Message Date
abhishek9686 7d9589f2a5 abort on error 2024-06-23 17:55:30 +05:30
abhishek9686 d08c5b6995 fix jwt parsing 2024-06-23 17:36:38 +05:30
abhishek9686 aa9ea13564 add new func to get username from jwt 2024-06-23 16:26:27 +05:30
abhishek9686 31fc7efe5f fix middleware error nil check 2024-06-23 12:17:44 +05:30
abhishek9686 8af425b0bc add debug logs 2024-06-23 12:09:39 +05:30
abhishek9686 bfef87ebd6 fix get all nodes api 2024-06-23 11:59:43 +05:30
abhishek9686 5033aef702 comment middleware 2024-06-23 11:40:34 +05:30
abhishek9686 bff38b54be add debug logs 2024-06-23 11:16:54 +05:30
abhishek9686 ccf86757e4 invoke sync users migration func 2024-06-23 09:57:38 +05:30
abhishek9686 54c540ef64 migration funcs 2024-06-23 09:10:35 +05:30
abhishek9686 2a1d59b07b nodes handler 2024-06-23 08:38:46 +05:30
abhishek9686 56fdd6d98e replace auth checks, add network id to role model 2024-06-22 17:32:38 +05:30
abhishek9686 3f2716ce37 refer network controls form roles, add debug headers 2024-06-20 08:24:25 +05:30
abhishek9686 7d052e64e2 refer network controls form roles, add debug headers 2024-06-20 07:28:33 +05:30
abhishek9686 0ff57bcc81 Merge branch 'develop' of https://github.com/gravitl/netmaker into NET-1227 2024-06-19 14:46:09 +05:30
abhishek9686 16d438a390 add debug headers 2024-06-19 14:43:23 +05:30
abhishek9686 97140b3dd5 revert crypto version 2024-06-18 15:58:03 +05:30
dependabot[bot] 2ca7bf7481
Bump golang.org/x/oauth2 from 0.20.0 to 0.21.0 (#2968)
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.20.0 to 0.21.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.20.0...v0.21.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-06-18 08:08:39 +05:30
dependabot[bot] 24f8edcfde
Bump golang.org/x/crypto from 0.23.0 to 0.24.0 (#2969)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.23.0 to 0.24.0.
- [Commits](https://github.com/golang/crypto/compare/v0.23.0...v0.24.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-06-18 07:33:37 +05:30
dependabot[bot] 3e9436b78d
Bump github.com/go-playground/validator/v10 from 10.20.0 to 10.22.0 (#2981)
Bumps [github.com/go-playground/validator/v10](https://github.com/go-playground/validator) from 10.20.0 to 10.22.0.
- [Release notes](https://github.com/go-playground/validator/releases)
- [Commits](https://github.com/go-playground/validator/compare/v10.20.0...v10.22.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-06-18 07:33:16 +05:30
dependabot[bot] 4e0889669b
Bump github.com/gorilla/websocket from 1.5.1 to 1.5.3 (#2982)
Bumps [github.com/gorilla/websocket](https://github.com/gorilla/websocket) from 1.5.1 to 1.5.3.
- [Release notes](https://github.com/gorilla/websocket/releases)
- [Commits](https://github.com/gorilla/websocket/compare/v1.5.1...v1.5.3)

---
updated-dependencies:
- dependency-name: github.com/gorilla/websocket
  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-06-18 07:32:59 +05:30
dependabot[bot] 5be4ea2148
Bump github.com/spf13/cobra from 1.8.0 to 1.8.1 (#2983)
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v1.8.0...v1.8.1)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  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-06-18 07:32:39 +05:30
dependabot[bot] 079f1176e1
Bump dawidd6/action-download-artifact from 3 to 6 (#2984)
Bumps [dawidd6/action-download-artifact](https://github.com/dawidd6/action-download-artifact) from 3 to 6.
- [Release notes](https://github.com/dawidd6/action-download-artifact/releases)
- [Commits](https://github.com/dawidd6/action-download-artifact/compare/v3...v6)

---
updated-dependencies:
- dependency-name: dawidd6/action-download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 07:32:20 +05:30
dependabot[bot] d18d60ff43
Bump docker/build-push-action from 5 to 6 (#2985)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5 to 6.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 07:32:01 +05:30
Christopher Blaha 7d001b81a7
update develop to v0.24.3 (#2977) 2024-06-18 07:23:20 +05:30
abhishek9686 fb1eae729a change json tag 2024-06-17 15:56:11 +05:30
abhishek9686 9fb83fa89c allow multiple groups for an user 2024-06-17 11:24:38 +05:30
abhishek9686 3d58241e14 Merge branch 'develop' of https://github.com/gravitl/netmaker into NET-1227 2024-06-14 17:48:01 +05:30
Abhishek K 595e05756f
V0.24.2 release notes (#2975)
* v0.24.2 release notes

* update notes

* Update release.md

* Update release.md

* Update release.md

* Update release.md
2024-06-13 22:00:27 +05:30
Max Ma 6fa084006a
NET-1355:peerUpdate for default host after new network created (#2974)
* peerUpdate for default host after new network created

* remove mq check for peerUpdate
2024-06-12 17:33:26 +05:30
Abhishek K aeb76764c4
NET-1357: add endpoint to exisiting peer config (#2973)
* debug logs

* add endpoint to exisiting peer config

* rm debug logs

* don't set port to public port when host is static
2024-06-12 17:32:43 +05:30
Abhishek K 1ce38f7c7c
NET-1349: add new user to pending user via RAC login (#2967)
* add new user to pending user via RAC login

* fix: add check for allowed domains

---------

Co-authored-by: the_aceix <aceixsmartx@gmail.com>
2024-06-11 18:07:32 +05:30
abhishek9686 6eaedc5fb0 setup user access middlerware controller 2024-06-11 07:32:10 +05:30
abhishek9686 d226deaf4d untracked 2024-06-10 19:02:51 +05:30
abhishek9686 607a2d98ee add new user to pending user via RAC login 2024-06-10 18:28:21 +05:30
Abhishek K 72838eafb5
Merge pull request #2966 from gravitl/NET-1227-b
Net 1227 b
2024-06-06 00:50:39 +05:30
abhishek9686 bb44816800 refactor user groups models 2024-06-06 00:43:00 +05:30
abhishek9686 78fc3ab508 refactor user role models 2024-06-06 00:34:28 +05:30
Abhishek K 50d8da2dc2
Merge pull request #2958 from gravitl/NET-1268
NET-1268:seperate static port and static endpoint
2024-06-05 12:47:45 +05:30
Abhishek K ce98883c43
Merge pull request #2962 from gravitl/NET-1311
NET-1311:fix egressing exclient set route issue
2024-06-05 12:47:26 +05:30
Max Ma f10bce783b update legacy back to isStatic 2024-06-04 11:53:22 +02:00
Abhishek K 87b2c1bb33
NET-1307: restrict failover node from being relayed (#2960)
* restrict failover node from being relayed

* set errors on failover valid checks
2024-06-04 15:07:35 +05:30
Max Ma 0180481ddb fix egressing exclient set route issue 2024-06-03 19:41:13 +02:00
Max Ma c7469c79d0 rename isstaticendpoint to isstatic 2024-06-03 10:37:19 +02:00
Abhishek K 7ff30599ed
NET-1252: Restrict inetGws, Relays from getting failedOver (#2937)
* add additional checks to avoid failovers

* add failover defence check on signal handler

* only add check for victim node

* avoid failover reset on pull

* add relayed for failoverme

* misc changes for failover

* remove resetfailoverpeers for InetNode

* add egress route back to allowedip list if relayed is egressGW

* add extclient back to allowedip list if peer is ingressGW

* reset failover on pull

---------

Co-authored-by: Max Ma <mayabin@gmail.com>
2024-06-03 10:49:02 +04:00
dependabot[bot] e7e2ba4829
Bump alpine from 3.19.1 to 3.20.0 (#2952)
Bumps alpine from 3.19.1 to 3.20.0.

---
updated-dependencies:
- dependency-name: alpine
  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-06-03 10:30:16 +04:00
dependabot[bot] af71231956
Bump github.com/hashicorp/go-version from 1.6.0 to 1.7.0 (#2951)
Bumps [github.com/hashicorp/go-version](https://github.com/hashicorp/go-version) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/hashicorp/go-version/releases)
- [Changelog](https://github.com/hashicorp/go-version/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/go-version/compare/v1.6.0...v1.7.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-version
  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-06-03 10:29:54 +04:00
Max Ma 35a8528030
NET-1154:fix stale node issue on multinet when deleting host (#2940)
* fix stale node issue on multinet when deleting host

* fix stale node when deleting host or uninstall
2024-06-03 10:28:21 +04:00
Max Ma 5ea2c9f9ed
ipv6 only inetClient works on ipv10 inetGW (#2944) 2024-06-03 10:27:38 +04:00
Aceix d9237da2f6
feat(NET-1207): show network info on RAC (#2949) 2024-06-03 10:25:07 +04:00