mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Add default IPV6 CIDR for creating workspace
This commit is contained in:
@@ -45,7 +45,7 @@ export const createWorkspace = async ({
|
|||||||
workspaceId: workspace._id,
|
workspaceId: workspace._id,
|
||||||
});
|
});
|
||||||
|
|
||||||
// initialize default trusted ip of 0.0.0.0/0
|
// initialize default trusted IPv4 CIDR - 0.0.0.0/0
|
||||||
await new TrustedIP({
|
await new TrustedIP({
|
||||||
workspace: workspace._id,
|
workspace: workspace._id,
|
||||||
ipAddress: "0.0.0.0",
|
ipAddress: "0.0.0.0",
|
||||||
@@ -54,6 +54,16 @@ export const createWorkspace = async ({
|
|||||||
isActive: true,
|
isActive: true,
|
||||||
comment: ""
|
comment: ""
|
||||||
}).save()
|
}).save()
|
||||||
|
|
||||||
|
// initialize default trusted IPv6 CIDR - ::/0
|
||||||
|
await new TrustedIP({
|
||||||
|
workspace: workspace._id,
|
||||||
|
ipAddress: "::",
|
||||||
|
type: IPType.IPV6,
|
||||||
|
prefix: 0,
|
||||||
|
isActive: true,
|
||||||
|
comment: ""
|
||||||
|
});
|
||||||
|
|
||||||
await EELicenseService.refreshPlan(organizationId);
|
await EELicenseService.refreshPlan(organizationId);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user