feat: completed base setup

This commit is contained in:
=
2025-10-20 18:57:47 +05:30
parent 9a7849c12b
commit 6fca30f2cb
22 changed files with 249 additions and 21 deletions
@@ -28,7 +28,7 @@ export const getDefaultOnPremFeatures = (): TFeatureSet => ({
rbac: false,
githubOrgSync: false,
customRateLimits: false,
childOrganization: true,
subOrganization: true,
customAlerts: false,
secretAccessInsights: false,
auditLogs: false,
@@ -33,7 +33,7 @@ export type TFeatureSet = {
membersUsed: number;
identityLimit: null;
identitiesUsed: number;
childOrganization: true;
subOrganization: true;
environmentLimit: null;
environmentsUsed: 0;
secretVersioning: true;
@@ -285,7 +285,7 @@ export const permissionDALFactory = (db: TDbClient): TPermissionDALFactory => {
MembershipsSchema.extend({
orgAuthEnforced: z.boolean().optional().nullable(),
shouldUseNewPrivilegeSystem: z.boolean().optional().nullable(),
parentOrgId: z.boolean().optional().nullable(),
parentOrgId: z.string().optional().nullable(),
orgGoogleSsoAuthEnforced: z.boolean(),
bypassOrgAuthEnabled: z.boolean()
}).parse(el),
@@ -45,7 +45,7 @@ export const subOrgServiceFactory = ({
);
const orgLicensePlan = await licenseService.getPlan(permissionActor.parentOrgId);
if (!orgLicensePlan.gateway) {
if (!orgLicensePlan.subOrganization) {
throw new BadRequestError({
message: "Child organization creation failed. Please upgrade your instance to Infisical's Enterprise plan."
});