Commit graph

5742 commits

Author SHA1 Message Date
Abhishek K
5af7a6a50f
Merge pull request #2674 from gravitl/release-v0.21.2
v0.21.2
2023-11-19 20:34:26 +04:00
Abhishek K
7820d64f77
Merge pull request #2676 from gravitl/develop
Net 687 : fix license validation failure log (#2675)
2023-11-17 22:07:58 +04:00
Gabriel de Souza Seibel
291551b45c
Net 687 : fix license validation failure log (#2675)
* On license validation fail, parse and store the message of the response

* Return cached response body when necessary

* Have license validation return proper val,err

* Improve logs readability on lic val error
2023-11-17 22:07:22 +04:00
Abhishek K
82bbf9277a
V0.21.2 release notes (#2673)
* v0.21.2 release notes

* v0.21.2 release notes
2023-11-17 19:10:04 +04:00
Gabriel de Souza Seibel
0a88fdebd9
[NET-687] On license validation fail, parse and store the message of the response (#2669)
* On license validation fail, parse and store the message of the response

* Return cached response body when necessary

* Have license validation return proper val,err
2023-11-17 18:56:51 +04:00
Abhishek K
27378b9c52
NET-765: publish deleted node update on disconnect (#2668)
* publish deleted node update on disconnect

* delete any daemon node

* set peer update for disconnected Node

* set peer update for disconnected Node
2023-11-15 19:53:52 +04:00
Abhishek K
83e83f8392
NET-751: Send deleted node peer update on uninstall (#2665)
* send deleted node peer update, when deleted host from client

* remove duplicate peer update
2023-11-10 11:37:38 +04:00
Abhishek K
de85d29eb2
Update README.md 2023-11-08 17:45:05 +04:00
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
dependabot[bot]
fa4f125e1b
Bump github.com/gorilla/mux from 1.8.0 to 1.8.1
Bumps [github.com/gorilla/mux](https://github.com/gorilla/mux) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/gorilla/mux/releases)
- [Commits](https://github.com/gorilla/mux/compare/v1.8.0...v1.8.1)

---
updated-dependencies:
- dependency-name: github.com/gorilla/mux
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-06 23:29:33 +00: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