Commit graph

7058 commits

Author SHA1 Message Date
Vishal Dalwadi
85e4877803
Merge pull request #3576 from gravitl/NM-38
NM-38: User Config Fixes
2025-08-12 14:07:45 +05:30
abhishek9686
773693568c resolve merge conflicts 2025-08-12 11:30:44 +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
dependabot[bot]
95e55894fa
Build(deps): bump alpine from 3.22.0 to 3.22.1 (#3571)
Bumps alpine from 3.22.0 to 3.22.1.

---
updated-dependencies:
- dependency-name: alpine
  dependency-version: 3.22.1
  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>
2025-08-12 09:21:55 +05:30
dependabot[bot]
fdc9fd869d
Build(deps): bump github.com/mattn/go-sqlite3 from 1.14.28 to 1.14.30 (#3584)
Bumps [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) from 1.14.28 to 1.14.30.
- [Release notes](https://github.com/mattn/go-sqlite3/releases)
- [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.28...v1.14.30)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-sqlite3
  dependency-version: 1.14.30
  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>
2025-08-12 09:21:35 +05:30
dependabot[bot]
9faa4ffa3d
Build(deps): bump github.com/posthog/posthog-go from 1.5.12 to 1.6.1 (#3572)
Bumps [github.com/posthog/posthog-go](https://github.com/posthog/posthog-go) from 1.5.12 to 1.6.1.
- [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.12...v1.6.1)

---
updated-dependencies:
- dependency-name: github.com/posthog/posthog-go
  dependency-version: 1.6.1
  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>
2025-08-12 09:21:18 +05:30
dependabot[bot]
b81d416e47
Build(deps): bump google.golang.org/api from 0.240.0 to 0.244.0 (#3585)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.240.0 to 0.244.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.240.0...v0.244.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-version: 0.244.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>
2025-08-12 09:20:47 +05:30
dependabot[bot]
33976c709b
Build(deps): bump gorm.io/gorm from 1.30.0 to 1.30.1 (#3575)
Bumps [gorm.io/gorm](https://github.com/go-gorm/gorm) from 1.30.0 to 1.30.1.
- [Release notes](https://github.com/go-gorm/gorm/releases)
- [Commits](https://github.com/go-gorm/gorm/compare/v1.30.0...v1.30.1)

---
updated-dependencies:
- dependency-name: gorm.io/gorm
  dependency-version: 1.30.1
  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>
2025-08-12 09:20:29 +05:30
Vishal Dalwadi
85c7da75d3
Fix: Use template variable correctly. (#3578)
* fix(go): use template variable correctly;

* feat(go): update docs link.

* feat(go): update docs link.
2025-08-12 09:17:21 +05:30
Abhishek K
a8a0dd066c
NM-44: Device Approvals for Network Join (#3579)
* add pending hosts apis, migration logic for network auto join field

* fix pending hosts logic on join

* delete pending hosts on host delete

* ignore pedning device request if host in the network already

* add peer update on host approval
2025-08-12 09:16:51 +05:30
Vishal Dalwadi
062552170d
NM-24: IDP UX improvements (#3583)
* fix(go): parse error message when url.Error.

* fix(go): suppress intermediate errors and return the root cause.
2025-08-12 09:14:45 +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
e4da84aa85
NM-61: User group ACL fixes (#3546)
* feat(go): create default acl only for networks that are part of the group;

* feat(go): update acls on user group update and delete;

* feat(go): add migration for existing acls.

* feat(go): check for network roles in migration.
2025-08-08 22:17:39 +05:30
Vishal Dalwadi
996410fc61
NM-57: Graphs API Forbidden for Platform User (#3577)
* fix(go): permissions for network graph;

* fix(go): allow platform user to get network graph;

* feat(go): allow read only access to host resource to network users.

* feat(go): remove specific check for hosts resource.
2025-08-08 22:14:42 +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
e0e0a76563
Merge pull request #3565 from gravitl/NM-49
NM-49: Okta IDP Integration
2025-08-04 08:15:48 +05:30
Vishal Dalwadi
2f6817821c fix(go): avoid panic on client_email missing. 2025-07-31 21:58:45 +05:30
Vishal Dalwadi
025eebe7f2 fix(go): add okta to idp sync test. 2025-07-31 21:36:59 +05:30
Vishal Dalwadi
bca4565256 fix(go): idp sync status. 2025-07-31 21:27:15 +05:30
Vishal Dalwadi
7584235022 fix(go): set num access tokens in user object; 2025-07-30 21:32:09 +05:30
Vishal Dalwadi
0c43dd3788 feat(go): add verify method for okta idp client; 2025-07-30 19:29:47 +05:30
Vishal Dalwadi
99f1be4aba Merge branch 'develop' into NM-49
# Conflicts:
#	pro/auth/sync.go
2025-07-30 19:21:59 +05:30
Abhishek K
f075eebedb
Merge pull request #3557 from gravitl/NM-24
NM-24: IDP UX improvements
2025-07-29 19:54:48 +05:30
Abhishek K
ded01ed85d
Merge pull request #3558 from gravitl/NM-37
NM-37: User Settings
2025-07-29 19:50:14 +05:30
Abhishek K
b341dbff51
Merge pull request #3570 from gravitl/NM-56
NM-56: Netclient SSO Login
2025-07-29 19:44:59 +05:30
Vishal Dalwadi
dcdfe1dc35 fix(go): netclient SSO login; 2025-07-29 15:33:50 +05:30
Vishal Dalwadi
f3cd712235 fix(go): netclient SSO login; 2025-07-29 00:31:29 +05:30
Vishal Dalwadi
b778243c2c fix(go): go build errors; 2025-07-28 22:15:25 +05:30
Vishal Dalwadi
472bf3dbbf Merge branch 'develop' into NM-24 2025-07-28 22:06:22 +05:30
Vishal Dalwadi
ea074f46c9 Merge branch 'develop' into NM-49 2025-07-28 22:03:44 +05:30
Vishal Dalwadi
f8f4812851 Merge branch 'develop' into NM-37 2025-07-28 22:02:40 +05:30
Abhishek K
3a173bb4b2
Merge pull request #3568 from gravitl/master
Master
2025-07-28 18:17:17 +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
0fea8af3e1
Merge branch 'develop' into NM-37 2025-07-28 15:23:03 +05:30
Vishal Dalwadi
7965110ee1 Merge branch 'develop' into NM-49
# Conflicts:
#	models/settings.go
2025-07-28 11:26:02 +05:30
Aceix
755a390003
fix: add validation for JWT validity duration in new settings (#3564) 2025-07-27 08:40:51 +05:30
Vishal Dalwadi
6367efc882
NET-2077: Add support for Feature Flags. (#3528)
* feat(go): add support for feature flags;

* feat(go): store feature flags in code;

* feat(go): report base domain on license validation;

* feat(go): remove nm base domain required binding;

* feat(go): add a flag for oauth support;
2025-07-27 08:39:17 +05:30
Abhishek K
461c680099
NM-15: sync device interfaces on checkin (#3548)
* sync devices interface on checkin

* deep compare ifaces on checkin
2025-07-27 08:29:37 +05:30
Vishal Dalwadi
31ed8c5262
Netmaker Desktop Session Duration (#3543)
* feat(go): allow different session durations for client apps;

* feat(go): assume call is from netdesk app if header absent;

* feat(go): allow header;

* feat(go): set client jwt validity duration on migration.
2025-07-27 08:29:14 +05:30
Vishal Dalwadi
ece77fd980 chore(go): go mod tidy; 2025-07-25 14:39:38 +05:30
Vishal Dalwadi
5826dbd552 feat(go): add support for okta sync; 2025-07-25 14:37:54 +05:30
Vishal Dalwadi
8b23e9d6ae feat(go): add support for okta oauth; 2025-07-25 14:36:27 +05:30
Vishal Dalwadi
f48dc93314 feat(go): import okta sdk; 2025-07-25 14:35:29 +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