Commit graph

5406 commits

Author SHA1 Message Date
Alex Feiszli
f68158f263
Merge pull request #2429 from gravitl/remove-stun
remove stun refs
2023-06-28 21:26:31 -04:00
Matthew R Kasun
d5ed8ecefb
Merge branch 'develop' into remove-stun 2023-06-28 17:41:38 -04:00
Matthew R Kasun
ae1cd94fc8 remove stun refs 2023-06-28 17:39:40 -04:00
Alex Feiszli
0046baee1a
Merge pull request #2396 from gravitl/remove-stun
remove stun
2023-06-28 14:59:20 -04:00
Alex Feiszli
5857ff45d4
Merge branch 'develop' into remove-stun 2023-06-28 14:09:46 -04:00
Alex Feiszli
ae92499a32
Merge pull request #2427 from gravitl/NET-390-acl-panic-fix
NET-390: acl panic fix, DB cache
2023-06-28 13:59:05 -04:00
Alex Feiszli
2db6004029
Update docker-compose.yml
remove stun port
2023-06-28 13:54:40 -04:00
Alex Feiszli
e4895ae4a1
Merge branch 'develop' into remove-stun 2023-06-28 13:53:46 -04:00
Alex Feiszli
a7acb5dd4b
Merge pull request #2426 from gravitl/NET-390-endpointdetection-config-fix
remove endpoint detection from host model
2023-06-28 13:35:46 -04:00
Abhishek Kondur
b64cef3447 fix merge conflicts 2023-06-28 22:12:30 +05:30
Abhishek K
38454ece79
IOT-66: Single Peer update for IOT client (#2424)
* send peer update to IOT client only when it is relayed

* move node check

* send relay del update for iot client

* fix relay delete logic for iot

* set relay node to true for iot peer update

* add node addrs to peer update

* revert tag
2023-06-28 22:08:49 +05:30
Abhishek K
230e062c84
GRA-1298: License check changes, free tier limits for saas (#2418)
* set free tier limits through config

* add host limit to config

* check for host limit on free tier

* fix license validation, replace node limit with hosts

* add hosts to telemetry data

* debug init

* validate license every 1hr

* hook manager, api to fetch server usage

* hook manager, server usage api

* encode json server usage api

* update ngork url

* update license validation endpoint

* avoid setting limits on eer

* adding hotfix

* correct users limits env var

* add comments to exported funcs

---------

Co-authored-by: afeiszli <alex.feiszli@gmail.com>
2023-06-28 20:33:06 +05:30
Aceix
84617359fa
fix(NET-379): send host NAT type over api (#2423) 2023-06-28 20:23:11 +05:30
Abhishek Kondur
b4081f43d1 use mutex for accessing acl container 2023-06-28 13:42:01 +05:30
Abhishek Kondur
8d874b876b set mq order matters to false 2023-06-28 08:34:14 +05:30
Abhishek Kondur
243cc74490 remove endpoint detection from host model 2023-06-27 22:36:24 +05:30
Abhishek Kondur
cfdc15fc8d fix integration tests 2023-06-27 22:15:36 +05:30
Abhishek Kondur
65a683ad79 rm return 2023-06-27 21:48:07 +05:30
Abhishek Kondur
845bb33c68 unlock mutex 2023-06-27 21:31:04 +05:30
Abhishek Kondur
50e093b456 cache ext clients 2023-06-27 20:48:53 +05:30
Abhishek Kondur
0c06e2b972 Merge branch 'NET-341/dont-panic' of https://github.com/gravitl/netmaker into NET-258-oldupdates 2023-06-27 16:39:12 +05:30
Abhishek Kondur
27ac920069 cache acls 2023-06-27 16:12:06 +05:30
Abhishek Kondur
307203105d unexport cache funcs 2023-06-27 16:10:44 +05:30
Abhishek Kondur
4071bb2bac db cache nodes and hosts 2023-06-27 16:10:04 +05:30
Aceix
34c56d5ea1
Revert "prevent ingress creation on NATed host (#2395)" (#2422)
This reverts commit 20998dd613.
2023-06-27 12:30:25 +05:30
Matthew R Kasun
aca65cf4ce
Net 374 (#2420)
* add domain flag to nm-quick

* get server to use

* set up ssh

* save server to tmp file
2023-06-26 09:51:20 -04:00
Gabriel de Souza Seibel
11933fc07e
Don't expose user hashed password (#2419) 2023-06-26 10:53:00 +05:30
Matthew R Kasun
6e39ae4178
add domain flag to nm-quick (#2416) 2023-06-22 17:03:04 -04:00
dependabot[bot]
5950ded7ed
Bump golang.org/x/oauth2 from 0.8.0 to 0.9.0 (#2407)
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.8.0 to 0.9.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.8.0...v0.9.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-06-21 19:47:10 +05:30
Christopher Blaha
2cc0da344f
update develop to v0.20.3 (#2412) 2023-06-21 19:45:44 +05:30
dependabot[bot]
52221fe4ae
Bump alpine from 3.18.0 to 3.18.2 (#2408)
Bumps alpine from 3.18.0 to 3.18.2.

---
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-06-21 19:41:02 +05:30
dependabot[bot]
161e1d32d4
Bump golang.org/x/crypto from 0.9.0 to 0.10.0 (#2406)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.9.0 to 0.10.0.
- [Commits](https://github.com/golang/crypto/compare/v0.9.0...v0.10.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-06-21 19:34:41 +05:30
Aceix
9787ce6ae8
fix(NET-312): increase log levels for verbose logs (#2403) 2023-06-20 16:28:40 +05:30
Tobias Cudnik
4ea0991d8f
Merge branch 'develop' into NET-341/dont-panic 2023-06-20 12:26:19 +02:00
Abhishek K
6c2582651c
Net-137: Node relays (#2401)
* revert relays

* initial relay commit

* get relayed allowed ips

* add more relay validation checks, peer logic cleanup

* rm relayed nodes from relay node when relayed node is deleted

* fix egress updates for relayed nodes

* rm unused func

* remove  debug logs

* avoid adding egress ranges on the relayed gw node

---------

Co-authored-by: Matthew R Kasun <mkasun@nusak.ca>
2023-06-19 12:26:14 -04:00
Tobias Cudnik
59da2698a5
Update common.go 2023-06-16 15:48:53 +02:00
Tobias Cudnik
637f840a81
Update common.go 2023-06-16 15:46:23 +02:00
Matthew R Kasun
20998dd613
prevent ingress creation on NATed host (#2395) 2023-06-14 21:37:18 -04:00
Tobias Cudnik
94ca72e370
NET-173 Sync EndpointDetection config (#2374)
* adding serverconfig logic and variable to hosts

* - sync EndpointDetection on peerupdate
- add EndpointDetection to env config

* - endpoint detection always comes from the server
- fixed ENDPOINT_DETECTION -> NETCLIENT_ENDPOINT_DETECTION

---------

Co-authored-by: afeiszli <alex.feiszli@gmail.com>
2023-06-13 16:33:53 -04:00
afeiszli
b9a18cf73d remove stun 2023-06-13 15:53:24 -04:00
pete1019
834cc893ab
Update docker-compose.yml (#2394)
restart: always for turn and netmaker
Otherwise it will not survive a reboot.
2023-06-13 07:43:40 -04:00
Tobias Cudnik
e286adda77
NET-291 PUT /api/networks/{networkname} (#2380)
* PUT /api/networks/{networkname}

* review
2023-06-08 17:22:35 -04:00
dependabot[bot]
bb8067b40e
Bump github.com/mattn/go-sqlite3 from 1.14.16 to 1.14.17 (#2370)
Bumps [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) from 1.14.16 to 1.14.17.
- [Release notes](https://github.com/mattn/go-sqlite3/releases)
- [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.16...v1.14.17)

---
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>
Co-authored-by: Matthew R Kasun <mkasun@nusak.ca>
2023-06-07 14:00:23 -04:00
Alex Feiszli
77893ac516
Change badge (#2375)
* Update README.md

* Update README.md

* Update README.md
2023-06-07 13:56:35 -04:00
Abhishek K
78e26c4673
add nodes to pull response (#2371) 2023-06-06 22:16:21 -04:00
dependabot[bot]
23fe84a0d2
Bump github.com/go-playground/validator/v10 from 10.14.0 to 10.14.1 (#2369)
Bumps [github.com/go-playground/validator/v10](https://github.com/go-playground/validator) from 10.14.0 to 10.14.1.
- [Release notes](https://github.com/go-playground/validator/releases)
- [Commits](https://github.com/go-playground/validator/compare/v10.14.0...v10.14.1)

---
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-06-06 13:47:47 -04:00
Matthew R Kasun
f94cda11f6
Net 262 - structured logging (#2366)
* structured logging infra

* structured logging mq handlers
2023-06-06 13:47:16 -04:00
Christopher Blaha
c6b1ec494c
update version to 0.20.2 for develop (#2363) 2023-06-06 13:46:46 -04:00
dependabot[bot]
936e166581
Bump github.com/stretchr/testify from 1.8.3 to 1.8.4 (#2368)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.3 to 1.8.4.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.3...v1.8.4)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  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-06-06 13:46:30 -04:00
Matthew R Kasun
f64a3e1622
Update branchtest.yml (#2373) 2023-06-06 13:45:41 -04:00