Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Merge branch 'main' into secret-rotations-v2-feature

Scott Wilson472510831922
diff --cc backend/src/ee/services/audit-log/audit-log-types.ts
index ab950f3bf2,5e7df94444..96f87d7b8c
--- a/backend/src/ee/services/audit-log/audit-log-types.ts
+++ b/backend/src/ee/services/audit-log/audit-log-types.ts
@@@ -292,17 -285,19 +294,27 @@@ export enum EventType
KMIP_OPERATION_ACTIVATE = "kmip-operation-activate",
KMIP_OPERATION_REVOKE = "kmip-operation-revoke",
KMIP_OPERATION_LOCATE = "kmip-operation-locate",
- KMIP_OPERATION_REGISTER = "kmip-operation-register"
+ KMIP_OPERATION_REGISTER = "kmip-operation-register",
+
+ GET_SECRET_ROTATIONS = "get-secret-rotations",
+ GET_SECRET_ROTATION = "get-secret-rotation",
+ GET_SECRET_ROTATION_GENERATED_CREDENTIALS = "get-secret-rotation-generated-credentials",
+ CREATE_SECRET_ROTATION = "create-secret-rotation",
+ UPDATE_SECRET_ROTATION = "update-secret-rotation",
+ DELETE_SECRET_ROTATION = "delete-secret-rotation",
+ SECRET_ROTATION_ROTATE_SECRETS = "secret-rotation-rotate-secrets"
}
+ export const filterableSecretEvents: EventType[] = [
+ EventType.GET_SECRET,
+ EventType.DELETE_SECRETS,
+ EventType.CREATE_SECRETS,
+ EventType.UPDATE_SECRETS,
+ EventType.CREATE_SECRET,
+ EventType.UPDATE_SECRET,
+ EventType.DELETE_SECRET
+ ];
+
interface UserActorMetadata {
userId: string;
email?: string | null;
diff --cc frontend/src/components/v2/index.tsx
index bd28779155,e74380c71a..092fd66971
--- a/frontend/src/components/v2/index.tsx
+++ b/frontend/src/components/v2/index.tsx
@@@ -23,9 -22,9 +23,10 @@@ export * from "./Input"
export * from "./Menu";
export * from "./Modal";
export * from "./NoticeBanner";
+export * from "./NoticeBannerV2";
export * from "./PageHeader";
export * from "./Pagination";
+ export * from "./PasswordGenerator";
export * from "./Popoverv2";
export * from "./SecretInput";
export * from "./Select";
diff --cc frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/ActionBar.tsx
index c665cea882,9dd5589a53..7b1965878c
--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/ActionBar.tsx
+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/ActionBar.tsx
@@@ -17,8 -17,8 +17,9 @@@ import
faKey,
faLock,
faMinusSquare,
+ faPaste,
faPlus,
+ faRotate,
faTrash
} from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
@@@ -54,10 -54,20 +56,21 @@@ import
useSubscription,
useWorkspace
} from "@app/context";
+import { ProjectPermissionSecretRotationActions } from "@app/context/ProjectPermissionContext/types";
import { usePopUp } from "@app/hooks";
- import { useCreateFolder, useDeleteSecretBatch, useMoveSecrets } from "@app/hooks/api";
- import { fetchProjectSecrets } from "@app/hooks/api/secrets/queries";
+ import {
+ useCreateFolder,
+ useCreateSecretBatch,
+ useDeleteSecretBatch,
+ useMoveSecrets,
+ useUpdateSecretBatch
+ } from "@app/hooks/api";
+ import {
+ dashboardKeys,
+ fetchDashboardProjectSecretsByKeys
+ } from "@app/hooks/api/dashboard/queries";
+ import { secretApprovalRequestKeys } from "@app/hooks/api/secretApprovalRequest/queries";
+ import { fetchProjectSecrets, secretKeys } from "@app/hooks/api/secrets/queries";
import { ApiErrorTypes, SecretType, TApiErrors, WsTag } from "@app/hooks/api/types";
import { SecretSearchInput } from "@app/pages/secret-manager/OverviewPage/components/SecretSearchInput";
@@@ -115,10 -133,11 +136,12 @@@ export const ActionBar = (
"addDynamicSecret",
"addSecretImport",
"bulkDeleteSecrets",
+ "addSecretRotation",
"moveSecrets",
"misc",
- "upgradePlan"
+ "upgradePlan",
+ "replicateFolder",
+ "confirmUpload"
] as const);
const isProtectedBranch = Boolean(protectedBranchPolicyName);
const { subscription } = useSubscription();