Commit graph

5568 commits

Author SHA1 Message Date
Christopher Blaha
64d2a4820c
update develop (#2633) 2023-10-18 22:51:36 +04:00
Abhishek K
4e3d39c693
Merge pull request #2635 from gravitl/master
update develop from master
2023-10-17 23:27:08 +04:00
Abhishek K
6aec0f66fe
Merge pull request #2634 from gravitl/release-v0.21.1
NET-674: clear extclients of an user when deleted, remove gw id from …
2023-10-17 23:23:01 +04:00
Abhishek K
4876bdb62f
NET-674: clear extclients of an user when deleted, remove gw id from user gws when deleted (#2631)
* remove client gw from user when deleted

* clear extclient of a user if deleted

* check if ingress gw on user gws

* debug log

* log change

* pr comments
2023-10-17 23:22:17 +04:00
Abhishek K
fb4647978a
Merge pull request #2630 from gravitl/release-v0.21.1
v0.21.1
2023-10-17 19:31:07 +04:00
Abhishek Kondur
3e26f5953b merge conflicts 2023-10-17 19:30:33 +04:00
Abhishek K
e864ba97d6
v0.21.1 release notes (#2629)
* update release notes

* update release notes

* update release notes
2023-10-16 19:29:43 +04:00
Matthew R Kasun
09b55286dd
Net 662 convert pka to seconds vice nsec (#2627)
* force listenport/persisentkeepalive to defaults if 0 during migration

* convert pka to seconds vice nsec
2023-10-13 19:39:54 +04:00
Matthew R Kasun
d767da16c6
force listenport/persisentkeepalive to defaults if 0 during migration (#2623) 2023-10-13 13:58:21 +04:00
Abhishek K
eb3ba2879c
Peerupdate bug (#2620)
* update static,mtu from client side host update

* update host fields if host exists already on registration

* add additional logging
2023-10-11 15:24:41 +04:00
Gabriel de Souza Seibel
f4a6f1673c
Make superadmins not be admins (#2615) 2023-10-06 16:28:13 +04:00
Gabriel de Souza Seibel
001442e75e
[NET-493] - Additional data fields to send to account management (#2583)
* Send relays and internet gws count to amb

* Unify usage funcs in logic pkg

* Fix ee build

* Revert "Unify usage funcs in logic pkg"

This reverts commit 28afc91f7e.

* Add more resource metrics on getUsage handler

* Use pro module's function to get server usage on lic val

* Move GetRelays to pro package
2023-10-06 10:22:58 +04:00
Matthew R Kasun
35673d6aba
let caddy do certificate management (#2611)
* let caddy do certificate management

* rm certs dir
2023-10-06 10:13:49 +04:00
Gabriel de Souza Seibel
cb4b99ffcb
[NET-562] Persistent Keep Alive from node to host (#2604)
* Move PKA field from models node to host level

* Move PKA field from api models node to host level

* Adapt logic package to node->host PKA

* Adapt migration-related code to node->host PKA

* Adapt cli code to node->host PKA

* Change host PKA default to 20s

* On IfaceDelta, check for PKA on host

* On handleHostRegister, set default PKA

* Use a default PKA

* Use int64 for api host pka

* Reorder imports

* Don't use host pka in iface delta

* Fix ConvertAPIHostToNMHost

* Add swagger doc for host PKA field

* Fix swagger.yml

* Set default PKA only for new hosts

* Remove TODO comment

* Remove redundant check

* Have api-host pka be specified in seconds
2023-10-06 10:09:19 +04:00
Jan Klare
234f226f89
docs: fix License section in docs to align with new license model (#2605)
* copy the short license description from the License.md to increase
  visibility
* update link to License.md (was License.txt before)

fixes: #2603

Signed-off-by: Jan Klare <jan.klare@bisdn.de>
2023-10-04 15:32:42 +04:00
dependabot[bot]
7baa7ae433
Bump github.com/go-playground/validator/v10 from 10.15.4 to 10.15.5 (#2612)
Bumps [github.com/go-playground/validator/v10](https://github.com/go-playground/validator) from 10.15.4 to 10.15.5.
- [Release notes](https://github.com/go-playground/validator/releases)
- [Commits](https://github.com/go-playground/validator/compare/v10.15.4...v10.15.5)

---
updated-dependencies:
- dependency-name: github.com/go-playground/validator/v10
  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>
2023-10-04 10:28:42 +04:00
dependabot[bot]
adeadbb415
Bump alpine from 3.18.3 to 3.18.4 (#2613)
Bumps alpine from 3.18.3 to 3.18.4.

---
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>
2023-10-04 10:28:12 +04:00
Matthew R Kasun
876778a1cc
open api spec file (#2595)
* remove usergroup

* superadmin

* superadmin creation

* generate openapi spec file

* statticcheck

* review comments
2023-10-04 10:26:38 +04:00
Abhishek K
7a8311092c
NET-647: Allow Role Update of OAuth User (#2609)
* allow update of oauth user role

* allow update of role for an oauth user
2023-10-04 10:15:41 +04:00
Abhishek K
3f1211795c
NET-383: Set Additional Host Fields From Client Side (#2566)
* update static,mtu from client side host update

* update host fields if host exists already on registration
2023-10-02 19:36:31 +04:00
Gabriel de Souza Seibel
23ad85bd8c
Add handler that sends MQ msg to upgrade a host (#2582) 2023-10-02 10:37:31 +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
Matthew R Kasun
622eb9899b
do not check for network header (#2599) 2023-09-28 14:28:56 +04:00
Matthew R Kasun
83f2f2ef28
publish node update on ifcace change (#2600) 2023-09-28 14:28:19 +04:00
Matthew R Kasun
cd80c03fa2
remove stunlist (#2572) 2023-09-22 11:34:13 +02:00
dependabot[bot]
86a4627fdb
Bump github.com/go-playground/validator/v10 from 10.15.3 to 10.15.4 (#2587)
Bumps [github.com/go-playground/validator/v10](https://github.com/go-playground/validator) from 10.15.3 to 10.15.4.
- [Release notes](https://github.com/go-playground/validator/releases)
- [Commits](https://github.com/go-playground/validator/compare/v10.15.3...v10.15.4)

---
updated-dependencies:
- dependency-name: github.com/go-playground/validator/v10
  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>
2023-09-22 11:21:27 +02:00
dependabot[bot]
0136df064f
Bump docker/login-action from 2 to 3 (#2589)
Bumps [docker/login-action](https://github.com/docker/login-action) from 2 to 3.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/login-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>
2023-09-22 11:19:54 +02:00
dependabot[bot]
104fca79fa
Bump docker/build-push-action from 3 to 5 (#2588)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 3 to 5.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v3...v5)

---
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>
2023-09-22 11:19:27 +02:00
dependabot[bot]
3c0efff017
Bump docker/setup-qemu-action from 2 to 3 (#2590)
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 2 to 3.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-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>
2023-09-22 11:17:32 +02:00
dependabot[bot]
d59b7aa971
Bump docker/setup-buildx-action from 2 to 3 (#2591)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2 to 3.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-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>
2023-09-22 11:16:59 +02:00
Abhishek K
791cf655f9
Merge pull request #2596 from gravitl/release-v0.21.0
Release v0.21.0 fixes
2023-09-22 10:45:50 +02:00
Abhishek K
e08ef4128e
change license to apache (#2598)
* change license to apache

* update license
2023-09-21 09:27:35 -04:00
Abhishek K
c13aa22e6f
Change License To Apache (#2597)
* change license to apache

* update license
2023-09-21 08:26:11 -04:00
Matthew R Kasun
c86a6f5811
Merge branch 'master' into release-v0.21.0 2023-09-20 13:42:14 -04:00
Abhishek K
0e4eda9e2d
Merge pull request #2574 from gravitl/NET-628-hotfix
remove quotes
2023-09-20 14:32:31 +02:00
Matthew R Kasun
adf795ba6e
remove quotes (#2573) 2023-09-20 14:32:08 +02:00
pwillis7
fe842e0f05
feat(NET-591): allow generic DNS entries (#2568) 2023-09-20 14:20:08 +02:00
Farukh Khan
7c4870e82f
NET-600 (#2571)
* NET-600

* Ext clients dns now properly set from ingress dns value provided that the individual ext client dns are not present.

* NET-468 & NET-600

* When individual extclient dns is changed or removed, it reflects on the UI properly and also gets updated on backend.
2023-09-18 09:58:04 +02:00
Abhishek K
c0d3a9e699
Merge pull request #2577 from gravitl/hot_fix_license_err
set license validation err always
2023-09-14 18:37:18 +05:30
Abhishek Kondur
11b6baa138 set license validation err always 2023-09-14 17:02:53 +04:00
Gabriel de Souza Seibel
ad551a0e6a
Set the validation error when err == nil too (#2575) 2023-09-14 16:59:20 +04:00
Matthew R Kasun
8c836a0eea remove quotes 2023-09-13 09:59:00 -04:00
dependabot[bot]
900949dc39
Bump golang.org/x/oauth2 from 0.11.0 to 0.12.0 (#2570)
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.11.0...v0.12.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>
2023-09-13 10:13:38 +05:30
Matthew R Kasun
3783d01ae5
set listenport in hostnetwork info (#2559) 2023-09-13 10:11:11 +05:30
Matthew R Kasun
823182cf09
add force flag to host/node delete (#2548)
* add force flag to host/node delete

* review comments

---------

Co-authored-by: Abhishek K <32607604+abhishek9686@users.noreply.github.com>
2023-09-13 10:10:17 +05:30
Christopher Blaha
5074e56e6a
update develop to v0.21.1 (#2567) 2023-09-12 15:43:08 +05:30
Abhishek K
f158cafb01
Merge pull request #2563 from gravitl/release-v0.21.0
v0.21.0
2023-09-12 10:53:28 +05:30
Matthew R Kasun
1e2fae0652
remove node uncordon (#2549) 2023-09-11 09:48:42 +05:30
Matthew R Kasun
f1f1b647d8
API documentation (#2545)
* migrate to open API 3.0.1

* pro features

* restruct response/request/schemas

---------

Co-authored-by: Abhishek K <32607604+abhishek9686@users.noreply.github.com>
2023-09-11 09:47:16 +05:30
Farukh Khan
9870920aac
NET-541 (#2544)
* NET-541

* Updated both zombie cleanup and expired nodes cleanup go routines to use tick timers for execution.

* NET-541 updated to ticker

* Changed from timer to ticker for periodic execution of zombie cleanup and expired nodes cleanup go routines.

---------

Co-authored-by: Abhishek K <32607604+abhishek9686@users.noreply.github.com>
2023-09-11 09:47:01 +05:30