Browse Source

NET-1932: fix default network user policy (#3469)

* move relevant acl and tag code to CE and Pro pkgs

* intialise pro acl funcs

* list gateways by user access

* check user gw access by policies

* filter out user policies on CE

* filter out tagged policies on CE

* fix ce acl comms

* allow gateways tag

* allow gateway tag  on CE, remove failover and gw check on acl policy

* add gw rules func to pro

* add inet gw support on CE

* add egress acl API

* add egress acl API

* fix(go): set is_gw when converting api node to server node;

* fix(go): set is_gw when converting api node to server node;

* fix policy validity checker for inet gws

* move dns option to host model

* fix node removal from egress policy on delete

* add migration logic for ManageDNS

* fix dns json field

* fix nil error on node tags

* add egress info to relayed nodes

* fix default network user policy

---------

Co-authored-by: Vishal Dalwadi <[email protected]>
Abhishek K 3 tháng trước cách đây
mục cha
commit
08080121b9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      pro/logic/user_mgmt.go

+ 1 - 1
pro/logic/user_mgmt.go

@@ -1273,7 +1273,7 @@ func CreateDefaultUserPolicies(netID models.NetworkID) {
 			Src: []models.AclPolicyTag{
 				{
 					ID:    models.UserGroupAclID,
-					Value: globalNetworksAdminGroupID.String(),
+					Value: globalNetworksUserGroupID.String(),
 				},
 				{
 					ID:    models.UserGroupAclID,