Commit graph

5583 commits

Author SHA1 Message Date
Abhishek K 7169db78ea
NET-717: DNS Fixes (#2654)
* send dns with complete entry name

* publish dns records on adding host to network from UI

* publish node dns updates when host is removed
2023-11-08 17:43:41 +04:00
Abhishek K a9a237cafc
check if new network is overlapping (#2655) 2023-11-08 17:43:20 +04:00
Aceix 61ef6142ff
feat(NET-688): auto relaying via enrollment keys (#2647)
* feat(NET-688): auto relaying via enrollment keys

* feat(NET-688): address pr comments
2023-11-04 16:28:57 +04:00
dependabot[bot] 75e110a5a6
Bump github.com/google/uuid from 1.3.1 to 1.4.0 (#2649)
Bumps [github.com/google/uuid](https://github.com/google/uuid) from 1.3.1 to 1.4.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.3.1...v1.4.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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-02 07:27:24 +04:00
Gabriel de Souza Seibel abd6a9317c
Don't consider license invalid on 503/504 (#2650) 2023-11-01 23:37:01 +04:00
Abhishek K 800f6e2222
fix extclient caching (#2653) 2023-11-01 23:36:46 +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
Abhishek K 7a9dc3458f
NET-667: force delete daemon node (#2645)
* force delete zombie node

* return correct resp

* fix zombie hosts processing

* add nil check rather checking error

* pr comments
2023-10-31 14:34:28 +04:00
dependabot[bot] b72fef833d
Bump github.com/coreos/go-oidc/v3 from 3.6.0 to 3.7.0 (#2640)
Bumps [github.com/coreos/go-oidc/v3](https://github.com/coreos/go-oidc) from 3.6.0 to 3.7.0.
- [Release notes](https://github.com/coreos/go-oidc/releases)
- [Commits](https://github.com/coreos/go-oidc/compare/v3.6.0...v3.7.0)

---
updated-dependencies:
- dependency-name: github.com/coreos/go-oidc/v3
  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-10-26 14:04:54 +04:00
guangwu 92260170f5
fix: typo (#2624) 2023-10-24 20:52:40 +04:00
Abhishek K 2662063c02
NET-686: bring up grafana,promethues containers for pro installation (#2637)
* bring up promethues and grafana containers

* rm nm-certs ref
2023-10-24 20:51:24 +04:00
Gabriel de Souza Seibel 4acba03b62
Have hooks be initialized after apis (#2626) 2023-10-20 10:41:17 +04:00
dependabot[bot] 5ac7e5d2c9
Bump golang.org/x/oauth2 from 0.12.0 to 0.13.0 (#2618)
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.12.0 to 0.13.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.12.0...v0.13.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-10-19 09:05:41 +04:00
dependabot[bot] d95a5ea546
Bump golang.org/x/crypto from 0.13.0 to 0.14.0 (#2619)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.13.0 to 0.14.0.
- [Commits](https://github.com/golang/crypto/compare/v0.13.0...v0.14.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>
2023-10-19 09:00:19 +04:00
Abhishek K 675c4ec34c
NET-641: Enable/Disable Auto Update From UI (#2622)
* add support to disable/enable autoupdate on a host

* setting to older version for QA to test
2023-10-19 08:59:36 +04:00
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