Commit Graph

7533 Commits

Author SHA1 Message Date
Vishal Dalwadi 2453786c6f Merge branch 'release-v1.5.1' into feat/match-azure-user-by-id 2026-04-08 21:11:54 +05:30
Abhishek Kondur 223c23d5ac Merge pull request #3967 from gravitl/fix/max-conns
Set max open connections to 1, add write mutex to sqlite ops
2026-04-08 19:23:40 +05:30
Abhishek Kondur 2471cd8093 Merge pull request #3969 from gravitl/v1.5.1/sqlite-writes
v1.5.1: add mutex for sqlite write ops
2026-04-08 19:22:06 +05:30
abhishek9686 109dab9055 v1.5.1: add mutex for sqlite write ops 2026-04-08 19:07:57 +05:30
VishalDalwadi 32ca51db92 fix(go): set max open connections to 1; 2026-04-08 16:19:18 +05:30
abhishek9686 0c91a37e6e v1.5.1: comment out max open conns 2026-04-08 13:19:03 +05:30
Abhishek Kondur f40656b82f Merge pull request #3957 from gravitl/v1.5.1/post-fixes
v1.5.1: deduplicate egress routes, set max open conns
2026-04-08 11:57:20 +05:30
Abhishek Kondur 1c75e95cd8 Merge branch 'release-v1.5.1' into v1.5.1/post-fixes 2026-04-08 11:56:58 +05:30
Abhishek Kondur 83673bf3f4 Merge pull request #3963 from gravitl/fixes/release-v1.5.1
Fixes: release-v1.5.1
2026-04-08 11:43:41 +05:30
VishalDalwadi 09f19376c6 fix(go): check for multiple ingress dns nameservers; 2026-04-07 17:59:50 +05:30
VishalDalwadi 660cd2fcfd fix(go): send mq messages in go routine; 2026-04-07 16:14:30 +05:30
VishalDalwadi 0afdf65459 fix(go): add disabled egress mode; 2026-04-07 16:01:13 +05:30
VishalDalwadi fdc45c4eb9 fix(go): disable auto update for all hosts when setting disabled; 2026-04-07 15:58:03 +05:30
VishalDalwadi a5d27e9b85 fix(go): skip default host auto update reset; 2026-04-07 15:54:46 +05:30
VishalDalwadi f4d5e3fa2f fix(go): publish peer update post license validation; 2026-04-07 15:48:57 +05:30
VishalDalwadi 96e1d92e48 fix(go): check only based on ip version; 2026-04-06 22:44:04 +05:30
Abhishek Kondur 42f2ee696f Merge pull request #3962 from gravitl/fixes/release-v1.5.1 2026-04-06 18:02:23 +05:30
VishalDalwadi 35fe637f9e feat(go): skip all users in acls; 2026-04-06 17:09:08 +05:30
Abhishek Kondur 77a107d55f Merge branch 'release-v1.5.1' into v1.5.1/post-fixes 2026-04-06 12:06:02 +05:30
abhishek9686 6a522ae857 v1.5.1: deduplicate egress routes 2026-04-06 05:36:51 +05:30
abhishek9686 0cdb885f50 revet log change 2026-04-04 21:58:25 +05:30
Abhishek Kondur cbe60831d5 Merge pull request #3959 from gravitl/fixes/release-v1.5.1
Fix(go): add check for empty network address range;
2026-04-04 19:52:40 +05:30
VishalDalwadi 65bcd565ed fix(go): add check for empty address range; 2026-04-04 19:41:42 +05:30
VishalDalwadi 76cdc14c45 fix(go): add check for empty address range; 2026-04-04 19:33:02 +05:30
abhishek9686 72e5870269 v1.5.1: set max open conns 2026-04-04 00:08:06 +05:30
Abhishek Kondur 5beaa97e50 Merge pull request #3955 from gravitl/fixes/release-v1.5.1
Fixes: release-v1.5.1
2026-04-03 16:51:03 +05:30
VishalDalwadi b8016780b9 fix(go): remove debug logs; 2026-04-02 22:35:54 +05:30
VishalDalwadi bb7f640df4 fix(go): pass array as arg; 2026-04-02 22:34:23 +05:30
VishalDalwadi 85c1ecee35 fix(go): use start_ts instead of version; 2026-04-02 22:14:27 +05:30
VishalDalwadi f07ce69839 fix(go): allow multivalued filters; 2026-04-02 17:35:41 +05:30
VishalDalwadi b9f40a871d Merge branch 'fixes/release-v1.5.1' of https://github.com/gravitl/netmaker into fixes/release-v1.5.1 2026-04-02 15:23:11 +05:30
VishalDalwadi 8dc250bcd1 fix(go): remove incomplete flow logs; 2026-04-02 15:22:30 +05:30
abhishek9686 675f096d32 v1.5.1: fix auditor activity logs permissions 2026-04-02 15:18:09 +05:30
VishalDalwadi 96d680bfc8 fix(go): remove tags from nameservers; 2026-04-02 09:58:17 +05:30
VishalDalwadi e43ebb80e0 fix(go): migrate nameservers; 2026-04-01 23:44:07 +05:30
VishalDalwadi 74d309ead4 fix(go): migrate nameservers; 2026-04-01 22:53:46 +05:30
VishalDalwadi 1e5f7c537e fix(go): if secret is masked use configured secret; 2026-04-01 22:22:49 +05:30
VishalDalwadi 95771eda51 fix(go): allow get user if admin or self; 2026-04-01 21:17:01 +05:30
VishalDalwadi 729bec02b9 fix(go): cleanup acls in the same goroutine; 2026-04-01 17:52:03 +05:30
VishalDalwadi 6a54966099 Merge branch 'release-v1.5.1' of https://github.com/gravitl/netmaker into feat/match-azure-user-by-id 2026-04-01 13:04:40 +05:30
Abhishek Kondur 22995c1718 Merge pull request #3953 from gravitl/NM-288
v1.5.1: cleanup grps from posture checks on grp updates
2026-04-01 07:27:49 +05:30
abhishek9686 8fafa55f38 v1.5.1: cleanup grps from posture checks on grp updates 2026-04-01 07:26:42 +05:30
Abhishek Kondur 320140ff44 NM-288: move platform user check (#3952)
* fix(go): set persistent keep alive when registering host using sso;

* fix(go): run posture check violations on delete;

* fix(go): upsert node on approving pending host;

* fix(go): resolve concurrency issues during group delete cleanup;

* fix(go): update doc links;

* fix(go): add created and updated fields to host;

* fix(go): skip delete and update superadmin on sync users;

* fix(go): use conn directly for now;

* fix(go): remove acl for idp groups;

* fix(go): quote fields;

* fix(go): use filters with count;

* feat(go): add a search query;

* fix(go): cleanup acls;

* fix(go): review fixes;

* fix(go): remove additional loop;

* fix(go): fix

* v1.5.1: separate out idp sync and reset signals for HA

* v1.5.1: add grps with name for logging

* v1.5.1: clear posture check violations when all checks are deleted

* v1.5.1: set static when default host

* v1.5.1: fix db status check

* rm set max conns

* v1.5.1: reset auto assigned gw when disconnected

* fix(go): skip global network admin and user groups when splitting;

* v1.5.1: fix update node call from client

* fix(go): separate out migration from normal usage;

* fix(go): skip default groups;

* fix(go): create policies for existing groups on network create;

* fix(go): skip fatal log on clickhouse conn;

* fix(go): add posture check cleanup;

* NM-288: populate relevant name for acl types for UI

* NM-288: populate grp names for posture check apis

* NM-228: add network grps api

* NM-288: add network users api

* now check each group's NetworkRoles for either the specific network ID or schema.AllNetworks (all_networks)

* NM-288: check and unassign auto gw when node is disconnected from cli

* NM-288: optimise network users api call

* NM-288: block auto assign when set to use inet gw

* NM-288: pass all network scoped get apis for platform users

* NM-288: fix orphan nodes on bulk host deletion and refactor node cleanup

- Extract cleanupNodeReferences() from DeleteNode to handle best-effort
  cleanup of relay, internet gw, failover, nameserver, ACL, and egress refs
- DisassociateAllNodesFromHost now calls cleanupNodeReferences + DeleteNodeByID
  directly, bypassing redundant host-association updates that could fail and
  leave nodes orphaned
- Track failed node deletions instead of unconditionally clearing host.Nodes;
  return error if any nodes couldn't be deleted to prevent host removal
- Fix DeleteNode returning error even when node was successfully deleted in
  the host-not-found path

* NM-288: cleanupNodeReferences(node) now only runs in the hard-delete path (when purge=true or alreadyDeleted=true), so it won't execute twice — once on soft-delete and again when the zombie manager hard-deletes.

* NM-288: add orphan deletion log

* DisassociateAllNodesFromHost now always returns nil, logging warnings for any partial failures (upsert errors or undeletable nodes). This allows RemoveHost to always proceed to h.Delete()

* NM-288: move the platform user check in the middleware

---------

Co-authored-by: VishalDalwadi <dalwadivishal26@gmail.com>
Co-authored-by: Vishal Dalwadi <51291657+VishalDalwadi@users.noreply.github.com>
2026-04-01 06:43:53 +05:30
Abhishek Kondur bd2f9e3f5c Merge branch 'release-v1.5.1' into NM-288 2026-04-01 06:43:16 +05:30
abhishek9686 79efb347cf NM-288: move the platform user check in the middleware 2026-04-01 06:41:59 +05:30
Abhishek Kondur f8a0cfd744 v1.5.1: release notes (#3950)
* v1.5.1: release notes

* v1.5.1: release notes

* v1.5.1: release notes

* v1.5.1: release notes

* v1.5.1: release notes

* v1.5.1: update version tag

* v1.5.1: update version tag
v1.5.1
2026-03-31 20:01:57 +05:30
Abhishek Kondur b97fbc69db NM-288: fix orphan nodes on bulk host deletion and refactor node cleanup (#3948)
* fix(go): set persistent keep alive when registering host using sso;

* fix(go): run posture check violations on delete;

* fix(go): upsert node on approving pending host;

* fix(go): resolve concurrency issues during group delete cleanup;

* fix(go): update doc links;

* fix(go): add created and updated fields to host;

* fix(go): skip delete and update superadmin on sync users;

* fix(go): use conn directly for now;

* fix(go): remove acl for idp groups;

* fix(go): quote fields;

* fix(go): use filters with count;

* feat(go): add a search query;

* fix(go): cleanup acls;

* fix(go): review fixes;

* fix(go): remove additional loop;

* fix(go): fix

* v1.5.1: separate out idp sync and reset signals for HA

* v1.5.1: add grps with name for logging

* v1.5.1: clear posture check violations when all checks are deleted

* v1.5.1: set static when default host

* v1.5.1: fix db status check

* rm set max conns

* v1.5.1: reset auto assigned gw when disconnected

* fix(go): skip global network admin and user groups when splitting;

* v1.5.1: fix update node call from client

* fix(go): separate out migration from normal usage;

* fix(go): skip default groups;

* fix(go): create policies for existing groups on network create;

* fix(go): skip fatal log on clickhouse conn;

* fix(go): add posture check cleanup;

* NM-288: populate relevant name for acl types for UI

* NM-288: populate grp names for posture check apis

* NM-228: add network grps api

* NM-288: add network users api

* now check each group's NetworkRoles for either the specific network ID or schema.AllNetworks (all_networks)

* NM-288: check and unassign auto gw when node is disconnected from cli

* NM-288: optimise network users api call

* NM-288: block auto assign when set to use inet gw

* NM-288: pass all network scoped get apis for platform users

* NM-288: fix orphan nodes on bulk host deletion and refactor node cleanup

- Extract cleanupNodeReferences() from DeleteNode to handle best-effort
  cleanup of relay, internet gw, failover, nameserver, ACL, and egress refs
- DisassociateAllNodesFromHost now calls cleanupNodeReferences + DeleteNodeByID
  directly, bypassing redundant host-association updates that could fail and
  leave nodes orphaned
- Track failed node deletions instead of unconditionally clearing host.Nodes;
  return error if any nodes couldn't be deleted to prevent host removal
- Fix DeleteNode returning error even when node was successfully deleted in
  the host-not-found path

* NM-288: cleanupNodeReferences(node) now only runs in the hard-delete path (when purge=true or alreadyDeleted=true), so it won't execute twice — once on soft-delete and again when the zombie manager hard-deletes.

* NM-288: add orphan deletion log

* DisassociateAllNodesFromHost now always returns nil, logging warnings for any partial failures (upsert errors or undeletable nodes). This allows RemoveHost to always proceed to h.Delete()

---------

Co-authored-by: VishalDalwadi <dalwadivishal26@gmail.com>
Co-authored-by: Vishal Dalwadi <51291657+VishalDalwadi@users.noreply.github.com>
2026-03-31 17:08:49 +05:30
Vishal Dalwadi aebf809f02 fix(go): prevent create gateway for node with auto assign gateway enabled; (#3949) 2026-03-31 14:42:46 +05:30
abhishek9686 688f1c33a4 DisassociateAllNodesFromHost now always returns nil, logging warnings for any partial failures (upsert errors or undeletable nodes). This allows RemoveHost to always proceed to h.Delete() 2026-03-31 10:06:47 +05:30
abhishek9686 c53249187e NM-288: add orphan deletion log 2026-03-31 09:34:58 +05:30