mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-02 16:25:52 +00:00
feat: patchy patchy patchy
This commit is contained in:
@@ -58,7 +58,7 @@ export const registerLicenseRouter = async (server: FastifyZodProvider) => {
|
|||||||
const plan = await server.services.license.getOrgPlan({
|
const plan = await server.services.license.getOrgPlan({
|
||||||
actorId: req.permission.id,
|
actorId: req.permission.id,
|
||||||
actor: req.permission.type,
|
actor: req.permission.type,
|
||||||
actorOrgId: req.permission.parentOrgId,
|
actorOrgId: req.permission.rootOrgId,
|
||||||
actorAuthMethod: req.permission.authMethod,
|
actorAuthMethod: req.permission.authMethod,
|
||||||
orgId: req.params.organizationId,
|
orgId: req.params.organizationId,
|
||||||
refreshCache: req.query.refreshCache
|
refreshCache: req.query.refreshCache
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ export const dynamicSecretServiceFactory = ({
|
|||||||
scope: OrganizationActionScope.Any,
|
scope: OrganizationActionScope.Any,
|
||||||
actor,
|
actor,
|
||||||
actorId,
|
actorId,
|
||||||
orgId: actorOrgId,
|
orgId: gateway?.orgId || gatewayv2?.orgId,
|
||||||
actorAuthMethod,
|
actorAuthMethod,
|
||||||
actorOrgId
|
actorOrgId
|
||||||
});
|
});
|
||||||
@@ -302,7 +302,7 @@ export const dynamicSecretServiceFactory = ({
|
|||||||
scope: OrganizationActionScope.Any,
|
scope: OrganizationActionScope.Any,
|
||||||
actor,
|
actor,
|
||||||
actorId,
|
actorId,
|
||||||
orgId: actorOrgId,
|
orgId: gateway?.orgId || gatewayv2?.orgId,
|
||||||
actorAuthMethod,
|
actorAuthMethod,
|
||||||
actorOrgId
|
actorOrgId
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ export type TGetOrgPermissionArg = {
|
|||||||
actorId: string;
|
actorId: string;
|
||||||
orgId: string;
|
orgId: string;
|
||||||
actorAuthMethod: ActorAuthMethod;
|
actorAuthMethod: ActorAuthMethod;
|
||||||
actorOrgId?: string;
|
actorOrgId: string;
|
||||||
scope: OrganizationActionScope;
|
scope: OrganizationActionScope;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ export type TGetSamlCfgDTO =
|
|||||||
actor: ActorType;
|
actor: ActorType;
|
||||||
actorId: string;
|
actorId: string;
|
||||||
actorAuthMethod: ActorAuthMethod;
|
actorAuthMethod: ActorAuthMethod;
|
||||||
actorOrgId: string | undefined;
|
actorOrgId: string;
|
||||||
}
|
}
|
||||||
| {
|
| {
|
||||||
type: "orgSlug";
|
type: "orgSlug";
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ export type TGenericPermission = {
|
|||||||
actor: ActorType;
|
actor: ActorType;
|
||||||
actorId: string;
|
actorId: string;
|
||||||
actorAuthMethod: ActorAuthMethod;
|
actorAuthMethod: ActorAuthMethod;
|
||||||
actorOrgId: string | undefined;
|
actorOrgId: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ export const orgServiceFactory = ({
|
|||||||
userId: string,
|
userId: string,
|
||||||
orgId: string,
|
orgId: string,
|
||||||
actorAuthMethod: ActorAuthMethod,
|
actorAuthMethod: ActorAuthMethod,
|
||||||
actorOrgId: string | undefined
|
actorOrgId: string
|
||||||
) => {
|
) => {
|
||||||
const { permission } = await permissionService.getOrgPermission({
|
const { permission } = await permissionService.getOrgPermission({
|
||||||
actor: ActorType.USER,
|
actor: ActorType.USER,
|
||||||
@@ -701,7 +701,7 @@ export const orgServiceFactory = ({
|
|||||||
ipAddress: string;
|
ipAddress: string;
|
||||||
orgId: string;
|
orgId: string;
|
||||||
actorAuthMethod: ActorAuthMethod;
|
actorAuthMethod: ActorAuthMethod;
|
||||||
actorOrgId: string | undefined;
|
actorOrgId: string;
|
||||||
}) => {
|
}) => {
|
||||||
const { hasRole } = await permissionService.getOrgPermission({
|
const { hasRole } = await permissionService.getOrgPermission({
|
||||||
actor: ActorType.USER,
|
actor: ActorType.USER,
|
||||||
@@ -1150,7 +1150,7 @@ export const orgServiceFactory = ({
|
|||||||
userId: string,
|
userId: string,
|
||||||
orgId: string,
|
orgId: string,
|
||||||
actorAuthMethod: ActorAuthMethod,
|
actorAuthMethod: ActorAuthMethod,
|
||||||
actorOrgId: string | undefined
|
actorOrgId: string
|
||||||
) => {
|
) => {
|
||||||
const { permission } = await permissionService.getOrgPermission({
|
const { permission } = await permissionService.getOrgPermission({
|
||||||
actor: ActorType.USER,
|
actor: ActorType.USER,
|
||||||
@@ -1170,7 +1170,7 @@ export const orgServiceFactory = ({
|
|||||||
orgId: string,
|
orgId: string,
|
||||||
email: string,
|
email: string,
|
||||||
actorAuthMethod: ActorAuthMethod,
|
actorAuthMethod: ActorAuthMethod,
|
||||||
actorOrgId: string | undefined
|
actorOrgId: string
|
||||||
) => {
|
) => {
|
||||||
const { permission } = await permissionService.getOrgPermission({
|
const { permission } = await permissionService.getOrgPermission({
|
||||||
actor: ActorType.USER,
|
actor: ActorType.USER,
|
||||||
@@ -1198,7 +1198,7 @@ export const orgServiceFactory = ({
|
|||||||
orgId: string,
|
orgId: string,
|
||||||
id: string,
|
id: string,
|
||||||
actorAuthMethod: ActorAuthMethod,
|
actorAuthMethod: ActorAuthMethod,
|
||||||
actorOrgId: string | undefined
|
actorOrgId: string
|
||||||
) => {
|
) => {
|
||||||
const { permission } = await permissionService.getOrgPermission({
|
const { permission } = await permissionService.getOrgPermission({
|
||||||
actor: ActorType.USER,
|
actor: ActorType.USER,
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ export type TUpdateOrgMembershipDTO = {
|
|||||||
membershipId: string;
|
membershipId: string;
|
||||||
role?: string;
|
role?: string;
|
||||||
isActive?: boolean;
|
isActive?: boolean;
|
||||||
actorOrgId: string | undefined;
|
actorOrgId: string;
|
||||||
metadata?: { key: string; value: string }[];
|
metadata?: { key: string; value: string }[];
|
||||||
actorAuthMethod: ActorAuthMethod;
|
actorAuthMethod: ActorAuthMethod;
|
||||||
};
|
};
|
||||||
@@ -21,7 +21,7 @@ export type TDeleteOrgMembershipDTO = {
|
|||||||
userId: string;
|
userId: string;
|
||||||
orgId: string;
|
orgId: string;
|
||||||
membershipId: string;
|
membershipId: string;
|
||||||
actorOrgId: string | undefined;
|
actorOrgId: string;
|
||||||
actorAuthMethod: ActorAuthMethod;
|
actorAuthMethod: ActorAuthMethod;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@ export type TDeleteOrgMembershipsDTO = {
|
|||||||
userId: string;
|
userId: string;
|
||||||
orgId: string;
|
orgId: string;
|
||||||
membershipIds: string[];
|
membershipIds: string[];
|
||||||
actorOrgId: string | undefined;
|
actorOrgId: string;
|
||||||
actorAuthMethod: ActorAuthMethod;
|
actorAuthMethod: ActorAuthMethod;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -54,7 +54,7 @@ export type TVerifyUserToOrgDTO = {
|
|||||||
|
|
||||||
export type TFindOrgMembersByEmailDTO = {
|
export type TFindOrgMembersByEmailDTO = {
|
||||||
actor: ActorType;
|
actor: ActorType;
|
||||||
actorOrgId: string | undefined;
|
actorOrgId: string;
|
||||||
actorId: string;
|
actorId: string;
|
||||||
actorAuthMethod: ActorAuthMethod;
|
actorAuthMethod: ActorAuthMethod;
|
||||||
orgId: string;
|
orgId: string;
|
||||||
@@ -64,7 +64,7 @@ export type TFindOrgMembersByEmailDTO = {
|
|||||||
export type TFindAllWorkspacesDTO = {
|
export type TFindAllWorkspacesDTO = {
|
||||||
actor: ActorType;
|
actor: ActorType;
|
||||||
actorId: string;
|
actorId: string;
|
||||||
actorOrgId: string | undefined;
|
actorOrgId: string;
|
||||||
actorAuthMethod: ActorAuthMethod;
|
actorAuthMethod: ActorAuthMethod;
|
||||||
orgId: string;
|
orgId: string;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1830,7 +1830,8 @@ export const projectServiceFactory = ({
|
|||||||
actorId: permission.id,
|
actorId: permission.id,
|
||||||
orgId: permission.orgId,
|
orgId: permission.orgId,
|
||||||
actorAuthMethod: permission.authMethod,
|
actorAuthMethod: permission.authMethod,
|
||||||
scope: OrganizationActionScope.Any
|
scope: OrganizationActionScope.Any,
|
||||||
|
actorOrgId: permission.orgId
|
||||||
});
|
});
|
||||||
|
|
||||||
return projectDAL.searchProjects({
|
return projectDAL.searchProjects({
|
||||||
@@ -1854,6 +1855,7 @@ export const projectServiceFactory = ({
|
|||||||
actorId: permission.id,
|
actorId: permission.id,
|
||||||
orgId: permission.orgId,
|
orgId: permission.orgId,
|
||||||
actorAuthMethod: permission.authMethod,
|
actorAuthMethod: permission.authMethod,
|
||||||
|
actorOrgId: permission.orgId,
|
||||||
scope: OrganizationActionScope.Any
|
scope: OrganizationActionScope.Any
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ export type TCreateProjectDTO = {
|
|||||||
actor: ActorType;
|
actor: ActorType;
|
||||||
actorAuthMethod: ActorAuthMethod;
|
actorAuthMethod: ActorAuthMethod;
|
||||||
actorId: string;
|
actorId: string;
|
||||||
actorOrgId?: string;
|
actorOrgId: string;
|
||||||
projectName: string;
|
projectName: string;
|
||||||
projectDescription?: string;
|
projectDescription?: string;
|
||||||
slug?: string;
|
slug?: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user