Commit graph

7015 commits

Author SHA1 Message Date
Vishal Dalwadi
5eea06f887 feat(go): apply filters only if they exist; 2025-08-28 13:58:21 +05:30
Vishal Dalwadi
146d907f5d feat(go): add filters support for google and okta; 2025-08-27 23:18:41 +05:30
Vishal Dalwadi
56c4e4b155 fix(go): use user.id while matching against member id; 2025-08-27 23:18:41 +05:30
Vishal Dalwadi
7f57339c5a feat(go): remove empty string filters from user and group filters; 2025-08-27 23:18:41 +05:30
Vishal Dalwadi
ded8f1d4cb feat(go): filter out users and groups using membership; 2025-08-27 23:18:41 +05:30
Abhishek K
fa4fb3a311
NM-82: check for all network user groups on gateways selection (#3611) (#3615)
* check for all network user groups on gateways selection

* check network admin policy for admins and superadmins

* remvove default user group changes

* add network admin grp to admins users
2025-08-25 12:42:19 +05:30
Abhishek K
b4c225b2bb
Merge branch 'master' into release-v1.0.0 2025-08-25 12:41:52 +05:30
Abhishek K
93fd03039e
NM-82: check for all network user groups on gateways selection (#3611)
* check for all network user groups on gateways selection

* check network admin policy for admins and superadmins

* remvove default user group changes

* add network admin grp to admins users
2025-08-25 12:40:53 +05:30
Abhishek K
48de8ff4a2
Merge pull request #3595 from gravitl/release-v1.0.0
Release v1.0.0
2025-08-12 11:18:18 +05:30
Abhishek K
b3253cd17d
NM-9: fix all rsrc static node rule (#3593)
* user policies fix

* fix user acl rules for all resources tag

* handle relayed comms via gateway with active acl policies

* fix static node comms to all resources

* add all resources src rule for static node
2025-08-11 22:04:39 +05:30
Abhishek K
32657dde82
NM-9: User All resources Policy and relayed node acl Fix (#3592)
* user policies fix

* fix user acl rules for all resources tag

* handle relayed comms via gateway with active acl policies

* fix static node comms to all resources
2025-08-11 14:32:26 +05:30
Abhishek K
b972e7a969
add mutex on failover ops (#3590) 2025-08-11 12:17:11 +05:30
Vishal Dalwadi
d5cc14ce49
Patch: Okta IDP Integration (#3586)
* feat(go): add support for okta.

* feat(go): update docs link.

* feat(go): handle okta.

* feat(go): handle okta.
2025-08-07 23:05:58 +05:30
Abhishek K
20493c5350
Release v1.0.0 (#3567)
* increase offline auto delete node time

* fix egress HA migration (#3555)

* check for node connectivity status

* NM-20: Add more refined event logs. (#3552)

* feat(go): add more refined event logs;

* feat(go): add more refined event logs;

* feat(go): add an api to validate user identity.

* feat(go): move validate-user-identity under user;

* fix(go): prevent disabling basic auth if deployed by operator; (#3561)

* NM-38: User Config Fixes (#3559)

* Build(deps): bump gorm.io/datatypes from 1.2.5 to 1.2.6

Bumps [gorm.io/datatypes](https://github.com/go-gorm/datatypes) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/go-gorm/datatypes/releases)
- [Commits](https://github.com/go-gorm/datatypes/compare/v1.2.5...v1.2.6)

---
updated-dependencies:
- dependency-name: gorm.io/datatypes
  dependency-version: 1.2.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Build(deps): bump google.golang.org/api from 0.238.0 to 0.240.0 (#3541)

Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.238.0 to 0.240.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.238.0...v0.240.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-version: 0.240.0
  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>

* Build(deps): bump github.com/go-playground/validator/v10 (#3539)

Bumps [github.com/go-playground/validator/v10](https://github.com/go-playground/validator) from 10.26.0 to 10.27.0.
- [Release notes](https://github.com/go-playground/validator/releases)
- [Commits](https://github.com/go-playground/validator/compare/v10.26.0...v10.27.0)

---
updated-dependencies:
- dependency-name: github.com/go-playground/validator/v10
  dependency-version: 10.27.0
  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>

* fix(go): prevent idp user from being deleted; (#3538)

* fix(go): use correct method for pro;

fixes: User Config nodes are always reported online.

* fix(go): add device id to extclient;

* fix(go): try match device id;

* fix(go): set device id if not set;

* feat(go): return best match offline extclient;

* fix(go): match device id with owner and gateway;

* fix(go): remove check for rac id;

* fix(go): check status on get node status;

* fix(go): allow offline or unknown extclient;

* feat(go): add count db method;

* feat(go): revert change;

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Abhishek K <abhi281342@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Revert "NM-38: User Config Fixes (#3559)" (#3562)

This reverts commit 9d65c62860.

* fix(go): usage report; (#3563)

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Vishal Dalwadi <51291657+VishalDalwadi@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-28 18:11:55 +05:30
Vishal Dalwadi
a4d961601d
fix(go): usage report; (#3563) 2025-07-25 11:08:05 +05:30
Abhishek K
ebff185706
Revert "NM-38: User Config Fixes (#3559)" (#3562)
This reverts commit 9d65c62860.
2025-07-24 23:07:25 +05:30
Vishal Dalwadi
9d65c62860
NM-38: User Config Fixes (#3559)
* Build(deps): bump gorm.io/datatypes from 1.2.5 to 1.2.6

Bumps [gorm.io/datatypes](https://github.com/go-gorm/datatypes) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/go-gorm/datatypes/releases)
- [Commits](https://github.com/go-gorm/datatypes/compare/v1.2.5...v1.2.6)

---
updated-dependencies:
- dependency-name: gorm.io/datatypes
  dependency-version: 1.2.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Build(deps): bump google.golang.org/api from 0.238.0 to 0.240.0 (#3541)

Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.238.0 to 0.240.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.238.0...v0.240.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-version: 0.240.0
  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>

* Build(deps): bump github.com/go-playground/validator/v10 (#3539)

Bumps [github.com/go-playground/validator/v10](https://github.com/go-playground/validator) from 10.26.0 to 10.27.0.
- [Release notes](https://github.com/go-playground/validator/releases)
- [Commits](https://github.com/go-playground/validator/compare/v10.26.0...v10.27.0)

---
updated-dependencies:
- dependency-name: github.com/go-playground/validator/v10
  dependency-version: 10.27.0
  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>

* fix(go): prevent idp user from being deleted; (#3538)

* fix(go): use correct method for pro;

fixes: User Config nodes are always reported online.

* fix(go): add device id to extclient;

* fix(go): try match device id;

* fix(go): set device id if not set;

* feat(go): return best match offline extclient;

* fix(go): match device id with owner and gateway;

* fix(go): remove check for rac id;

* fix(go): check status on get node status;

* fix(go): allow offline or unknown extclient;

* feat(go): add count db method;

* feat(go): revert change;

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Abhishek K <abhi281342@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-24 12:09:25 +05:30
Vishal Dalwadi
ffe5e0e65a
fix(go): prevent disabling basic auth if deployed by operator; (#3561) 2025-07-24 11:57:53 +05:30
Vishal Dalwadi
39ea1ed9fc
NM-20: Add more refined event logs. (#3552)
* feat(go): add more refined event logs;

* feat(go): add more refined event logs;

* feat(go): add an api to validate user identity.

* feat(go): move validate-user-identity under user;
2025-07-23 14:45:41 +05:30
abhishek9686
5371736d78 check for node connectivity status 2025-07-22 10:31:37 +05:30
Abhishek K
e517a0ac66
fix egress HA migration (#3555) 2025-07-18 12:33:21 +05:30
abhishek9686
f4e6cc94d4 increase offline auto delete node time 2025-07-17 20:24:07 +05:30
Abhishek K
2e47484c7b
Merge pull request #3544 from gravitl/release-v1.0.0
Release v1.0.0
2025-07-08 21:50:00 +05:30
Abhishek K
5be4548597
Merge branch 'master' into release-v1.0.0 2025-07-08 21:47:49 +05:30
Abhishek K
62bfc917ec
Merge pull request #3540 from gravitl/v1.0.0_fixes
comment out default relay access
2025-07-08 07:37:25 +05:30
abhishek9686
75f7ebd911 comment out default relay access 2025-07-08 07:36:41 +05:30
Abhishek K
30869eaf91
Merge pull request #3537 from gravitl/v1.0.0_fixes
set location if empty on checkin
2025-07-04 00:44:29 +05:30
abhishek9686
e65f6728d4 set location if empty on checkin 2025-07-04 00:43:08 +05:30
Abhishek K
6741bac338
Merge pull request #3535 from gravitl/release-v1.0.0
Release v1.0.0
2025-07-02 15:53:33 +05:30
Abhishek K
070eed8a23
Merge pull request #3534 from gravitl/fix/auth
Fix/auth
2025-07-02 15:52:32 +05:30
Vishal Dalwadi
bd9a6f106a fix(go): delete user if archived; 2025-07-02 13:36:37 +05:30
Vishal Dalwadi
b76a09e571 fix(go): delete pending user on sync; 2025-07-01 22:14:52 +05:30
Vishal Dalwadi
7aef92aa42 fix(go): update oauth docs link; 2025-07-01 22:00:13 +05:30
Abhishek K
33480f514f
v1.0.0 (#3531)
* Bump github.com/seancfoley/ipaddress-go from 1.7.0 to 1.7.1

Bumps [github.com/seancfoley/ipaddress-go](https://github.com/seancfoley/ipaddress-go) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/seancfoley/ipaddress-go/releases)
- [Commits](https://github.com/seancfoley/ipaddress-go/compare/v1.7.0...v1.7.1)

---
updated-dependencies:
- dependency-name: github.com/seancfoley/ipaddress-go
  dependency-version: 1.7.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump gorm.io/driver/postgres from 1.5.11 to 1.6.0

Bumps [gorm.io/driver/postgres](https://github.com/go-gorm/postgres) from 1.5.11 to 1.6.0.
- [Commits](https://github.com/go-gorm/postgres/compare/v1.5.11...v1.6.0)

---
updated-dependencies:
- dependency-name: gorm.io/driver/postgres
  dependency-version: 1.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump alpine from 3.21.3 to 3.22.0

Bumps alpine from 3.21.3 to 3.22.0.

---
updated-dependencies:
- dependency-name: alpine
  dependency-version: 3.22.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* collect host localtion for graph

* feat: collect location from netdesk

* add graph api:

* collection loc info for desktop config if unset

* Build(deps): bump github.com/posthog/posthog-go from 1.5.5 to 1.5.12

Bumps [github.com/posthog/posthog-go](https://github.com/posthog/posthog-go) from 1.5.5 to 1.5.12.
- [Release notes](https://github.com/posthog/posthog-go/releases)
- [Changelog](https://github.com/PostHog/posthog-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/posthog/posthog-go/compare/v1.5.5...v1.5.12)

---
updated-dependencies:
- dependency-name: github.com/posthog/posthog-go
  dependency-version: 1.5.12
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Build(deps): bump google.golang.org/api from 0.229.0 to 0.237.0

Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.229.0 to 0.237.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.229.0...v0.237.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-version: 0.237.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Build(deps): bump dawidd6/action-download-artifact from 9 to 11

Bumps [dawidd6/action-download-artifact](https://github.com/dawidd6/action-download-artifact) from 9 to 11.
- [Release notes](https://github.com/dawidd6/action-download-artifact/releases)
- [Commits](https://github.com/dawidd6/action-download-artifact/compare/v9...v11)

---
updated-dependencies:
- dependency-name: dawidd6/action-download-artifact
  dependency-version: '11'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* inet gws into gateways

* fix pro pkg errors

* add inet gw validate check on update node api

* unset inet gw on gateway delete

* sync changes on startup, add create relay calls on defaul host

* remove extclients on network destroy action

* Bump github.com/olekukonko/tablewriter from 0.0.5 to 1.0.7

Bumps [github.com/olekukonko/tablewriter](https://github.com/olekukonko/tablewriter) from 0.0.5 to 1.0.7.
- [Commits](https://github.com/olekukonko/tablewriter/compare/v0.0.5...v1.0.7)

---
updated-dependencies:
- dependency-name: github.com/olekukonko/tablewriter
  dependency-version: 1.0.7
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* feat(go): add access token count to ReturnUser model;

* Build(deps): bump gorm.io/driver/sqlite from 1.5.7 to 1.6.0

Bumps [gorm.io/driver/sqlite](https://github.com/go-gorm/sqlite) from 1.5.7 to 1.6.0.
- [Commits](https://github.com/go-gorm/sqlite/compare/v1.5.7...v1.6.0)

---
updated-dependencies:
- dependency-name: gorm.io/driver/sqlite
  dependency-version: 1.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* remove duplicate cli table pkg

* remove duplicate cli table pkg

* Build(deps): bump google.golang.org/api from 0.237.0 to 0.238.0

Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.237.0 to 0.238.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.237.0...v0.238.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-version: 0.238.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* set relayed nodes on inetgw migration

* fix merge conflicts

* fix merge conflicts

* Merge pull request #3504 from gravitl/depracate-rac-autodisable

chore: deprecate rac autodisable flag

* avoid setting nil endpoint if peer using internet gw (#3529)

* NET-1996: Add Support for TOTP Authentication. (#3517)

* feat(git): ignore run configurations;

* feat(go): add support for TOTP authentication;

* fix(go): api docs;

* fix(go): static checks failing;

* fix(go): ignore mfa enforcement for user auth;

* feat(go): allow resetting mfa;

* feat(go): allow resetting mfa;

* feat(go): use library function;

* fix(go): signature;

* feat(go): allow only master user to unset user's mfa;

* feat(go): set caller when master to prevent panic;

* feat(go): make messages more user friendly;

* fix(go): run go mod tidy;

* fix(go): optimize imports;

* fix(go): return unauthorized on token expiry;

* fix(go): move mfa endpoints under username;

* fix(go): set is mfa enabled when converting;

* feat(go): allow authenticated users to use preauth apis;

* feat(go): set correct header value;

* feat(go): allow super-admins and admins to unset mfa;

* feat(go): allow user to unset mfa if not enforced;

* v1.0.0 release notes (#3530)

* add v1.0.0 release notes

* add v1.0.0 release notes

* update version tags

* update version tag on install script

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: abhishek9686 <abhi281342@gmail.com>
Co-authored-by: the_aceix <aceixsmartx@gmail.com>
Co-authored-by: Abhishek K <abhishek@netmaker.io>
Co-authored-by: Vishal Dalwadi <dalwadivishal26@gmail.com>
Co-authored-by: Vishal Dalwadi <51291657+VishalDalwadi@users.noreply.github.com>
2025-06-26 18:00:04 +05:30
abhishek9686
05fe84980a update version tag on install script 2025-06-26 12:48:10 +05:30
Abhishek K
96e2c29783
v1.0.0 release notes (#3530)
* add v1.0.0 release notes

* add v1.0.0 release notes

* update version tags
2025-06-26 11:35:35 +05:30
Vishal Dalwadi
3551e8e24e
NET-1996: Add Support for TOTP Authentication. (#3517)
* feat(git): ignore run configurations;

* feat(go): add support for TOTP authentication;

* fix(go): api docs;

* fix(go): static checks failing;

* fix(go): ignore mfa enforcement for user auth;

* feat(go): allow resetting mfa;

* feat(go): allow resetting mfa;

* feat(go): use library function;

* fix(go): signature;

* feat(go): allow only master user to unset user's mfa;

* feat(go): set caller when master to prevent panic;

* feat(go): make messages more user friendly;

* fix(go): run go mod tidy;

* fix(go): optimize imports;

* fix(go): return unauthorized on token expiry;

* fix(go): move mfa endpoints under username;

* fix(go): set is mfa enabled when converting;

* feat(go): allow authenticated users to use preauth apis;

* feat(go): set correct header value;

* feat(go): allow super-admins and admins to unset mfa;

* feat(go): allow user to unset mfa if not enforced;
2025-06-26 08:29:13 +05:30
Abhishek K
aca911712b
avoid setting nil endpoint if peer using internet gw (#3529) 2025-06-25 19:17:57 +05:30
Aceix
2df02f747e
Merge pull request #3504 from gravitl/depracate-rac-autodisable
chore: deprecate rac autodisable flag
2025-06-24 23:43:44 +05:30
Abhishek K
657a24ef23
Merge pull request #3527 from gravitl/NET-2075 2025-06-24 17:56:13 +05:30
abhishek9686
4e2b7993eb fix merge conflicts 2025-06-24 17:00:43 +05:30
abhishek9686
f44c37e3aa fix merge conflicts 2025-06-24 17:00:10 +05:30
abhishek9686
b423b183e4 fix merge conflicts 2025-06-24 16:56:48 +05:30
abhishek9686
709ac8b274 set relayed nodes on inetgw migration 2025-06-24 16:55:34 +05:30
Abhishek K
1d92a0a8a8
Merge pull request #3526 from gravitl/dependabot/go_modules/develop/google.golang.org/api-0.238.0
Build(deps): bump google.golang.org/api from 0.237.0 to 0.238.0
2025-06-24 07:36:45 +05:30
dependabot[bot]
5020a6c662
Build(deps): bump google.golang.org/api from 0.237.0 to 0.238.0
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.237.0 to 0.238.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.237.0...v0.238.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-version: 0.238.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-24 02:04:54 +00:00
Abhishek K
a07d4e8d86
Merge pull request #3522 from gravitl/NET-2080
NET-2080: Fix unresponsive Users page
2025-06-24 07:34:10 +05:30
Abhishek K
0717da377d
Merge pull request #3523 from gravitl/dependabot/go_modules/develop/gorm.io/driver/sqlite-1.6.0
Build(deps): bump gorm.io/driver/sqlite from 1.5.7 to 1.6.0
2025-06-24 07:33:47 +05:30
Abhishek K
f33d693be4
Merge pull request #3472 from gravitl/dependabot/go_modules/develop/github.com/olekukonko/tablewriter-1.0.7
Bump github.com/olekukonko/tablewriter from 0.0.5 to 1.0.7
2025-06-24 07:31:13 +05:30
abhishek9686
b2697486b0 Merge branch 'dependabot/go_modules/develop/github.com/olekukonko/tablewriter-1.0.7' of https://github.com/gravitl/netmaker into dependabot/go_modules/develop/github.com/olekukonko/tablewriter-1.0.7 2025-06-24 07:20:47 +05:30