Commit graph

6601 commits

Author SHA1 Message Date
abhishek9686
64ae917faf remove deprecated stun servers 2024-12-28 17:41:22 +04:00
abhishek9686
081efde126 only use tcp on caddy 2024-12-28 16:15:33 +04:00
abhishek9686
7a6ce59204 handle ip check gracefully 2024-12-28 15:57:36 +04:00
Abhishek K
629f6d3d70
Merge pull request #3273 from gravitl/NET-1784-release
add all proto to default user policies
2024-12-20 20:11:57 +04:00
abhishek9686
27088a3595 add all proto to default user policies 2024-12-20 20:10:57 +04:00
Abhishek K
c63e3e42eb
Merge pull request #3270 from gravitl/script_ipv6
listen on ipv6 if available
2024-12-20 17:52:15 +04:00
abhishek9686
27ca7f490e listen on ipv6 if available 2024-12-20 14:28:22 +04:00
Abhishek K
93219dd984
Merge pull request #3265 from gravitl/NET-1784-release
Net 1784 release
2024-12-18 23:09:02 +04:00
abhishek9686
715ed23553 remove default value on dns domain 2024-12-18 23:07:37 +04:00
abhishek9686
20038716ea update default domain 2024-12-18 22:33:09 +04:00
abhishek9686
7361571b6a update default domain 2024-12-18 22:32:39 +04:00
abhishek9686
73eed6e583 add service type to default acl polices 2024-12-18 16:18:24 +04:00
Aceix
b1d813a906
refactor: update metadata descriptions for Network User permissions (#3254) 2024-12-17 15:32:47 +04:00
Abhishek K
124914c642
v0.30.0 release notes (#3260)
* v0.30.0 release notes

* v0.30.0 release notes
2024-12-17 15:32:36 +04:00
abhishek9686
6f5398e758 v0.30.0 release notes 2024-12-17 15:32:10 +04:00
abhishek9686
5aa6986671 v0.30.0 release notes 2024-12-17 13:29:45 +04:00
Abhishek K
5a6088455a
Merge pull request #3258 from gravitl/NET-1784-latest
fix peer list on interface
2024-12-16 22:30:02 +04:00
abhishek9686
5177f5cbfd fix peer list on interface 2024-12-16 22:29:42 +04:00
abhishek9686
56f979bba9 fix peer list on interface 2024-12-16 22:26:09 +04:00
Abhishek K
0e36d65f6f
Merge pull request #3257 from gravitl/master
Master
2024-12-16 20:11:04 +04:00
Abhishek K
39d0c0ed55
Merge pull request #3256 from gravitl/release-v0.26.0
Release v0.26.0
2024-12-16 20:10:30 +04:00
Abhishek K
e3e4382c09
Merge pull request #3255 from gravitl/username_fix
remove max length on username
2024-12-16 20:09:33 +04:00
abhishek9686
584d90e395 remove max length on username 2024-12-16 20:08:21 +04:00
Abhishek K
fc8675bf9c
NET-1867: add default domain to all entries (#3252)
* add dns entry validation check

* append default domain if not append

* add dot for default domain

* fix dns tests
2024-12-16 12:18:32 +04:00
Abhishek K
b0f09e3517
Merge pull request #3251 from gravitl/NET-1784-latest
NET-1784: add allowed network cidr to acl rules
2024-12-15 10:43:57 +04:00
abhishek9686
0216c596cb add all networks rules 2024-12-15 10:41:59 +04:00
abhishek9686
98e313242b add allowed networks 2024-12-13 14:08:34 +04:00
Abhishek K
116e2ef959
Net 1784 latest (#3250)
* fix all resources rules

* for any service set defaults
2024-12-12 10:02:31 +04:00
Yabin Ma
1d9e0f71df
add format int64 for swagger doc (#3247)
* add format int64 for swagger doc

* add format int64 for swagger doc

* add global override

* swagger doc update

* add new line for .swaggo file
2024-12-12 09:52:52 +04:00
abhishek9686
f14d916936 for any service set defaults 2024-12-12 02:32:36 +04:00
abhishek9686
effb7eb5d7 fix all resources rules 2024-12-12 02:30:32 +04:00
Yabin Ma
94cc85377f
add auto relay only when the relay and relayed nodes are in the same network (#3249) 2024-12-11 18:51:50 +04:00
Abhishek K
70ffdef387
update release version (#3248) 2024-12-10 15:16:54 +04:00
Yabin Ma
9024aead60
add back compatibility for encrypt message (#3246) 2024-12-10 12:47:05 +04:00
Abhishek K
7093373c77
NET-1784: Migrate All Policies (#3245)
* migrate all policies

* migrate all policies

* add acl policy type for any traffic

* use any service type for migration
2024-12-10 11:55:37 +04:00
dependabot[bot]
a2c7c252b4
Bump alpine from 3.20.3 to 3.21.0 (#3242)
Bumps alpine from 3.20.3 to 3.21.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-12-10 11:21:59 +04:00
dependabot[bot]
b6a9053736
Bump github.com/stretchr/testify from 1.9.0 to 1.10.0 (#3244)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.9.0...v1.10.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  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-12-10 11:21:40 +04:00
dependabot[bot]
24742db39a
Bump golang.org/x/crypto from 0.29.0 to 0.30.0 (#3243)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.29.0 to 0.30.0.
- [Commits](https://github.com/golang/crypto/compare/v0.29.0...v0.30.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-12-10 11:21:29 +04:00
Abhishek K
f124b10c35
NET-1784: Adv Acl Rules (#3239)
* define direction on acl req

* define protocol types and rule model

* get rules for node

* fetch acl rule for a node

* redine acl firewall model

* add json tags

* update port,protocol, and direction

* add json tags to acl options

* convert protocol to string

* simplify acl map

* add json tags to acl rules

* add networks to fw update

* add acls rules

* NET-1784: add allow all field

* add allow all field on fw udpate

* remove debug logs

* fix port and protocol types

* migrate default acl policies

* define constants for service types

* add adv options for user rules on ingress gw

* debug log

* allow whole network

* add static nodes to acl rules

* replace peers on acl updates

* initiliase rule map

* add user acl rules on target node

* revert acl check on extclient

* handle static node rules on ingress gw

* update multiple policies for users

* check allowed direction

* remove debug logs
2024-12-10 11:21:14 +04:00
Abhishek K
31c2311bef
NET-1782: Fetch Node Connection Status from metrics (#3237)
* add live status of node

* handle static node status

* add public IP field to server configuration

* get public Ip from config

* improve node status logic

* improvise status check

* use only checkin status on old nodes

---------

Co-authored-by: the_aceix <aceixsmartx@gmail.com>
2024-12-10 10:46:05 +04:00
Abhishek K
6962027e12
Merge pull request #3223 from gravitl/lmnzx-patch-1
Update deletedroplets.yml to extend the sleep to 30mins
2024-12-10 10:16:16 +04:00
Vishal Dalwadi
496d541822
NET-1833: add retries to license key validation. (#3222)
* feat(go): add retries to license key validation.

* feat(go): increase the number of retries.
2024-12-10 10:15:54 +04:00
Yabin Ma
5f21c8bb1d
NET-1778: scale test code changes (#3203)
* comment ACL call and add debug message

* add cache for network nodes

* fix load node to network cache issue

* add peerUpdate call 1 min limit

* add debug log for scale test

* release maps

* avoid default policy for node

* 1 min limit for peerUpdate trigger

* mq options

* Revert "mq options"

This reverts commit 10b93d0118.

* set peerUpdate run in sequence

* update for emqx 5.8.2

* remove batch peer update

* change the sleep to 10 millisec to avoid timeout

* add compress and change encrypt for peerUpdate message

* add mem profiling and automaxprocs

* add failover ctx mutex

* ignore request to failover peer

* remove code without called

* remove debug logs

* update emqx to v5.8.2

* change broker keepalive

* add OLD_ACL_SUPPORT setting

* add host version check for message encrypt

* remove debug message

* remove peerUpdate call control

---------

Co-authored-by: abhishek9686 <abhi281342@gmail.com>
2024-12-10 10:15:31 +04:00
Yabin Ma
c56f1cab15
fix swagger generation issue (#3241) 2024-12-10 08:41:41 +04:00
Yabin Ma
87ef555542
NET1847:Add STUN settings (#3235)
* add setting to turn on/off STUN

* sync stun setting in peerUpdate

* sync stun servers setting in peerUpdate
2024-12-06 09:38:32 +04:00
Abhishek K
5cb49e3d45
Merge pull request #3231 from gravitl/NET-1842
NET-1842:initialize cache in startup
2024-12-04 12:33:05 +04:00
Yabin Ma
508c4cf8a9
fix nm-quick.sh -p issue (#3234) 2024-12-03 13:29:44 +04:00
dependabot[bot]
4bdc098466
Bump github.com/go-playground/validator/v10 from 10.22.1 to 10.23.0 (#3214)
Bumps [github.com/go-playground/validator/v10](https://github.com/go-playground/validator) from 10.22.1 to 10.23.0.
- [Release notes](https://github.com/go-playground/validator/releases)
- [Commits](https://github.com/go-playground/validator/compare/v10.22.1...v10.23.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-12-03 13:26:03 +04:00
Abhishek K
8546f858c1
NET-1780: Bind Caddy to public IP, set default netclient to use port 443 (#3220)
* bind caddy to public ip

* set netclient on server to 443
2024-12-03 13:25:49 +04:00
Aceix
89751480e8
feat: receive device info and public endpoint from rac (#3215) 2024-12-03 13:19:43 +04:00