Skip to content

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

Merge branch 'main' into feat/point-in-time-revamp

carlosmonastyrski6334ad0d072a
diff --cc backend/src/@types/fastify.d.ts
index 1871bab39c,27f14fdb2e..d13d526631
--- a/backend/src/@types/fastify.d.ts
+++ b/backend/src/@types/fastify.d.ts
@@@ -272,9 -272,9 +274,11 @@@ declare module "fastify"
microsoftTeams: TMicrosoftTeamsServiceFactory;
assumePrivileges: TAssumePrivilegeServiceFactory;
githubOrgSync: TGithubOrgSyncServiceFactory;
+ folderCommit: TFolderCommitServiceFactory;
+ pit: TPitServiceFactory;
+ secretScanningV2: TSecretScanningV2ServiceFactory;
internalCertificateAuthority: TInternalCertificateAuthorityServiceFactory;
+ pkiTemplate: TPkiTemplatesServiceFactory;
};
// this is exclusive use for middlewares in which we need to inject data
// everywhere else access using service layer
diff --cc backend/src/@types/knex.d.ts
index 2b731be169,44cd6bc79f..8fd073a49a
--- a/backend/src/@types/knex.d.ts
+++ b/backend/src/@types/knex.d.ts
@@@ -1108,35 -1122,30 +1140,60 @@@ declare module "knex/types/tables"
TGithubOrgSyncConfigsInsert,
TGithubOrgSyncConfigsUpdate
>;
+ [TableName.FolderCommit]: KnexOriginal.CompositeTableType<
+ TFolderCommits,
+ TFolderCommitsInsert,
+ TFolderCommitsUpdate
+ >;
+ [TableName.FolderCommitChanges]: KnexOriginal.CompositeTableType<
+ TFolderCommitChanges,
+ TFolderCommitChangesInsert,
+ TFolderCommitChangesUpdate
+ >;
+ [TableName.FolderCheckpoint]: KnexOriginal.CompositeTableType<
+ TFolderCheckpoints,
+ TFolderCheckpointsInsert,
+ TFolderCheckpointsUpdate
+ >;
+ [TableName.FolderCheckpointResources]: KnexOriginal.CompositeTableType<
+ TFolderCheckpointResources,
+ TFolderCheckpointResourcesInsert,
+ TFolderCheckpointResourcesUpdate
+ >;
+ [TableName.FolderTreeCheckpoint]: KnexOriginal.CompositeTableType<
+ TFolderTreeCheckpoints,
+ TFolderTreeCheckpointsInsert,
+ TFolderTreeCheckpointsUpdate
+ >;
+ [TableName.FolderTreeCheckpointResources]: KnexOriginal.CompositeTableType<
+ TFolderTreeCheckpointResources,
+ TFolderTreeCheckpointResourcesInsert,
+ TFolderTreeCheckpointResourcesUpdate
+ >;
+ [TableName.SecretScanningDataSource]: KnexOriginal.CompositeTableType<
+ TSecretScanningDataSources,
+ TSecretScanningDataSourcesInsert,
+ TSecretScanningDataSourcesUpdate
+ >;
+ [TableName.SecretScanningResource]: KnexOriginal.CompositeTableType<
+ TSecretScanningResources,
+ TSecretScanningResourcesInsert,
+ TSecretScanningResourcesUpdate
+ >;
+ [TableName.SecretScanningScan]: KnexOriginal.CompositeTableType<
+ TSecretScanningScans,
+ TSecretScanningScansInsert,
+ TSecretScanningScansUpdate
+ >;
+ [TableName.SecretScanningFinding]: KnexOriginal.CompositeTableType<
+ TSecretScanningFindings,
+ TSecretScanningFindingsInsert,
+ TSecretScanningFindingsUpdate
+ >;
+ [TableName.SecretScanningConfig]: KnexOriginal.CompositeTableType<
+ TSecretScanningConfigs,
+ TSecretScanningConfigsInsert,
+ TSecretScanningConfigsUpdate
+ >;
}
}
diff --cc backend/src/db/migrations/20250602155452_pit-projects-commits-initialization.ts
index 9668b8623d,0000000000..dd4034c572
mode 100644,000000..100644
--- a/backend/src/db/migrations/20250602155452_pit-projects-commits-initialization.ts
+++ b/backend/src/db/migrations/20250602155452_pit-projects-commits-initialization.ts
@@@ -1,345 -1,0 +1,345 @@@
+import { Knex } from "knex";
+
+import { chunkArray } from "@app/lib/fn";
+import { selectAllTableCols } from "@app/lib/knex";
+import { logger } from "@app/lib/logger";
+import { ActorType } from "@app/services/auth/auth-type";
+import { ChangeType } from "@app/services/folder-commit/folder-commit-service";
+
+import {
+ ProjectType,
+ SecretType,
+ TableName,
+ TFolderCheckpoints,
+ TFolderCommits,
+ TFolderTreeCheckpoints,
+ TSecretFolders
+} from "../schemas";
+
+const sortFoldersByHierarchy = (folders: TSecretFolders[]) => {
+ // Create a map for quick lookup of children by parent ID
+ const childrenMap = new Map<string, TSecretFolders[]>();
+
+ // Set of all folder IDs
+ const allFolderIds = new Set<string>();
+
+ // Build the set of all folder IDs
+ folders.forEach((folder) => {
+ if (folder.id) {
+ allFolderIds.add(folder.id);
+ }
+ });
+
+ // Group folders by their parentId
+ folders.forEach((folder) => {
+ if (folder.parentId) {
+ const children = childrenMap.get(folder.parentId) || [];
+ children.push(folder);
+ childrenMap.set(folder.parentId, children);
+ }
+ });
+
+ // Find root folders - those with no parentId or with a parentId that doesn't exist
+ const rootFolders = folders.filter((folder) => !folder.parentId || !allFolderIds.has(folder.parentId));
+
+ // Process each level of the hierarchy
+ const result = [];
+ let currentLevel = rootFolders;
+
+ while (currentLevel.length > 0) {
+ result.push(...currentLevel);
+
+ const nextLevel = [];
+ for (const folder of currentLevel) {
+ if (folder.id) {
+ const children = childrenMap.get(folder.id) || [];
+ nextLevel.push(...children);
+ }
+ }
+
+ currentLevel = nextLevel;
+ }
+
+ return result.reverse();
+};
+
+const getSecretsByFolderIds = async (knex: Knex, folderIds: string[]): Promise<Record<string, string[]>> => {
+ const secrets = await knex(TableName.SecretV2)
+ .whereIn(`${TableName.SecretV2}.folderId`, folderIds)
+ .where(`${TableName.SecretV2}.type`, SecretType.Shared)
+ .join<TableName.SecretVersionV2>(TableName.SecretVersionV2, (queryBuilder) => {
+ void queryBuilder
+ .on(`${TableName.SecretVersionV2}.secretId`, `${TableName.SecretV2}.id`)
+ .andOn(`${TableName.SecretVersionV2}.version`, `${TableName.SecretV2}.version`);
+ })
+ .select(selectAllTableCols(TableName.SecretV2))
+ .select(knex.ref("id").withSchema(TableName.SecretVersionV2).as("secretVersionId"));
+
+ const secretsMap: Record<string, string[]> = {};
+
+ secrets.forEach((secret) => {
+ if (!secretsMap[secret.folderId]) {
+ secretsMap[secret.folderId] = [];
+ }
+ secretsMap[secret.folderId].push(secret.secretVersionId);
+ });
+
+ return secretsMap;
+};
+
+const getFoldersByParentIds = async (knex: Knex, parentIds: string[]): Promise<Record<string, string[]>> => {
+ const folders = await knex(TableName.SecretFolder)
+ .whereIn(`${TableName.SecretFolder}.parentId`, parentIds)
+ .where(`${TableName.SecretFolder}.isReserved`, false)
+ .join<TableName.SecretFolderVersion>(TableName.SecretFolderVersion, (queryBuilder) => {
+ void queryBuilder
+ .on(`${TableName.SecretFolderVersion}.folderId`, `${TableName.SecretFolder}.id`)
+ .andOn(`${TableName.SecretFolderVersion}.version`, `${TableName.SecretFolder}.version`);
+ })
+ .select(selectAllTableCols(TableName.SecretFolder))
+ .select(knex.ref("id").withSchema(TableName.SecretFolderVersion).as("folderVersionId"));
+
+ const foldersMap: Record<string, string[]> = {};
+
+ folders.forEach((folder) => {
+ if (!folder.parentId) {
+ return;
+ }
+ if (!foldersMap[folder.parentId]) {
+ foldersMap[folder.parentId] = [];
+ }
+ foldersMap[folder.parentId].push(folder.folderVersionId);
+ });
+
+ return foldersMap;
+};
+
+export async function up(knex: Knex): Promise<void> {
+ logger.info("Initializing folder commits");
+ const hasFolderCommitTable = await knex.schema.hasTable(TableName.FolderCommit);
+ if (hasFolderCommitTable) {
+ // Get Projects to Initialize
+ const projects = await knex(TableName.Project)
+ .where(`${TableName.Project}.version`, 3)
+ .where(`${TableName.Project}.type`, ProjectType.SecretManager)
+ .select(selectAllTableCols(TableName.Project));
+ logger.info(`Found ${projects.length} projects to initialize`);
+
+ // Process Projects in batches of 100
+ const batches = chunkArray(projects, 100);
+ let i = 0;
+ for (const batch of batches) {
+ i += 1;
+ logger.info(`Processing project batch ${i} of ${batches.length}`);
+ let foldersCommitsList = [];
+
+ const rootFoldersMap: Record<string, string> = {};
+ const envRootFoldersMap: Record<string, string> = {};
+
+ // Get All Folders for the Project
+ // eslint-disable-next-line no-await-in-loop
+ const folders = await knex(TableName.SecretFolder)
+ .join(TableName.Environment, `${TableName.SecretFolder}.envId`, `${TableName.Environment}.id`)
+ .whereIn(
+ `${TableName.Environment}.projectId`,
+ batch.map((project) => project.id)
+ )
+ .where(`${TableName.SecretFolder}.isReserved`, false)
+ .select(selectAllTableCols(TableName.SecretFolder));
+ logger.info(`Found ${folders.length} folders to initialize in project batch ${i} of ${batches.length}`);
+
+ // Sort Folders by Hierarchy (parents before nested folders)
+ const sortedFolders = sortFoldersByHierarchy(folders);
+
+ // eslint-disable-next-line no-await-in-loop
+ const folderSecretsMap = await getSecretsByFolderIds(
+ knex,
+ sortedFolders.map((folder) => folder.id)
+ );
+ // eslint-disable-next-line no-await-in-loop
+ const folderFoldersMap = await getFoldersByParentIds(
+ knex,
+ sortedFolders.map((folder) => folder.id)
+ );
+
+ // Get folder commit changes
+ for (const folder of sortedFolders) {
+ const subFolderVersionIds = folderFoldersMap[folder.id];
+ const secretVersionIds = folderSecretsMap[folder.id];
+ const changes = [];
+ if (subFolderVersionIds) {
+ changes.push(
+ ...subFolderVersionIds.map((folderVersionId) => ({
+ folderId: folder.id,
+ changeType: ChangeType.ADD,
+ secretVersionId: undefined,
+ folderVersionId,
+ isUpdate: false
+ }))
+ );
+ }
+ if (secretVersionIds) {
+ changes.push(
+ ...secretVersionIds.map((secretVersionId) => ({
+ folderId: folder.id,
+ changeType: ChangeType.ADD,
+ secretVersionId,
+ folderVersionId: undefined,
+ isUpdate: false
+ }))
+ );
+ }
+ if (changes.length > 0) {
+ const folderCommit = {
+ commit: {
+ actorMetadata: {},
+ actorType: ActorType.PLATFORM,
+ message: "Initialized folder",
+ folderId: folder.id,
+ envId: folder.envId
+ },
+ changes
+ };
+ foldersCommitsList.push(folderCommit);
+ if (!folder.parentId) {
+ rootFoldersMap[folder.id] = folder.envId;
+ envRootFoldersMap[folder.envId] = folder.id;
+ }
+ }
+ }
+ logger.info(`Retrieved folder changes for project batch ${i} of ${batches.length}`);
+
- const filteredBrokenProjectFolders = [];
++ const filteredBrokenProjectFolders: string[] = [];
+
+ foldersCommitsList = foldersCommitsList.filter((folderCommit) => {
+ if (!envRootFoldersMap[folderCommit.commit.envId]) {
+ filteredBrokenProjectFolders.push(folderCommit.commit.folderId);
+ return false;
+ }
+ return true;
+ });
+
+ logger.info(
+ `Filtered ${filteredBrokenProjectFolders.length} broken project folders: ${JSON.stringify(filteredBrokenProjectFolders)}`
+ );
+
+ // Insert New Commits in batches of 9000
+ const newCommits = foldersCommitsList.map((folderCommit) => folderCommit.commit);
+ const commitBatches = chunkArray(newCommits, 9000);
+
+ let j = 0;
+ for (const commitBatch of commitBatches) {
+ j += 1;
+ logger.info(`Inserting folder commits - batch ${j} of ${commitBatches.length}`);
+ // Create folder commit
+ // eslint-disable-next-line no-await-in-loop
+ const newCommitsInserted = (await knex
+ .batchInsert(TableName.FolderCommit, commitBatch)
+ .returning("*")) as TFolderCommits[];
+
+ logger.info(`Finished inserting folder commits - batch ${j} of ${commitBatches.length}`);
+
+ const newCommitsMap: Record<string, string> = {};
+ const newCommitsMapInverted: Record<string, string> = {};
+ const newCheckpointsMap: Record<string, string> = {};
+ newCommitsInserted.forEach((commit) => {
+ newCommitsMap[commit.folderId] = commit.id;
+ newCommitsMapInverted[commit.id] = commit.folderId;
+ });
+
+ // Create folder checkpoints
+ // eslint-disable-next-line no-await-in-loop
+ const newCheckpoints = (await knex
+ .batchInsert(
+ TableName.FolderCheckpoint,
+ Object.values(newCommitsMap).map((commitId) => ({
+ folderCommitId: commitId
+ }))
+ )
+ .returning("*")) as TFolderCheckpoints[];
+
+ logger.info(`Finished inserting folder checkpoints - batch ${j} of ${commitBatches.length}`);
+
+ newCheckpoints.forEach((checkpoint) => {
+ newCheckpointsMap[newCommitsMapInverted[checkpoint.folderCommitId]] = checkpoint.id;
+ });
+
+ // Create folder commit changes
+ // eslint-disable-next-line no-await-in-loop
+ await knex.batchInsert(
+ TableName.FolderCommitChanges,
+ foldersCommitsList
+ .map((folderCommit) => folderCommit.changes)
+ .flat()
+ .map((change) => ({
+ folderCommitId: newCommitsMap[change.folderId],
+ changeType: change.changeType,
+ secretVersionId: change.secretVersionId,
+ folderVersionId: change.folderVersionId,
+ isUpdate: false
+ }))
+ );
+
+ logger.info(`Finished inserting folder commit changes - batch ${j} of ${commitBatches.length}`);
+
+ // Create folder checkpoint resources
+ // eslint-disable-next-line no-await-in-loop
+ await knex.batchInsert(
+ TableName.FolderCheckpointResources,
+ foldersCommitsList
+ .map((folderCommit) => folderCommit.changes)
+ .flat()
+ .map((change) => ({
+ folderCheckpointId: newCheckpointsMap[change.folderId],
+ folderVersionId: change.folderVersionId,
+ secretVersionId: change.secretVersionId
+ }))
+ );
+
+ logger.info(`Finished inserting folder checkpoint resources - batch ${j} of ${commitBatches.length}`);
+
+ // Create Folder Tree Checkpoint
+ // eslint-disable-next-line no-await-in-loop
+ const newTreeCheckpoints = (await knex
+ .batchInsert(
+ TableName.FolderTreeCheckpoint,
+ Object.keys(rootFoldersMap).map((folderId) => ({
+ folderCommitId: newCommitsMap[folderId]
+ }))
+ )
+ .returning("*")) as TFolderTreeCheckpoints[];
+
+ logger.info(`Finished inserting folder tree checkpoints - batch ${j} of ${commitBatches.length}`);
+
+ const newTreeCheckpointsMap: Record<string, string> = {};
+ newTreeCheckpoints.forEach((checkpoint) => {
+ newTreeCheckpointsMap[rootFoldersMap[newCommitsMapInverted[checkpoint.folderCommitId]]] = checkpoint.id;
+ });
+
+ // Create Folder Tree Checkpoint Resources
+ // eslint-disable-next-line no-await-in-loop
+ await knex
+ .batchInsert(
+ TableName.FolderTreeCheckpointResources,
+ newCommitsInserted.map((folderCommit) => ({
+ folderTreeCheckpointId: newTreeCheckpointsMap[folderCommit.envId],
+ folderId: folderCommit.folderId,
+ folderCommitId: folderCommit.id
+ }))
+ )
+ .returning("*");
+
+ logger.info(`Finished inserting folder tree checkpoint resources - batch ${j} of ${commitBatches.length}`);
+ }
+ }
+ }
+ logger.info("Folder commits initialized");
+}
+
+export async function down(knex: Knex): Promise<void> {
+ const hasFolderCommitTable = await knex.schema.hasTable(TableName.FolderCommit);
+ if (hasFolderCommitTable) {
+ // delete all existing entries
+ await knex(TableName.FolderCommit).del();
+ }
+}
diff --cc backend/src/db/schemas/models.ts
index 9c26cba16d,6722ce235c..df0a858b99
--- a/backend/src/db/schemas/models.ts
+++ b/backend/src/db/schemas/models.ts
@@@ -158,15 -160,14 +160,20 @@@ export enum TableName
ProjectMicrosoftTeamsConfigs = "project_microsoft_teams_configs",
SecretReminderRecipients = "secret_reminder_recipients",
GithubOrgSyncConfig = "github_org_sync_configs",
+ FolderCommit = "folder_commits",
+ FolderCommitChanges = "folder_commit_changes",
+ FolderCheckpoint = "folder_checkpoints",
+ FolderCheckpointResources = "folder_checkpoint_resources",
+ FolderTreeCheckpoint = "folder_tree_checkpoints",
- FolderTreeCheckpointResources = "folder_tree_checkpoint_resources"
++ FolderTreeCheckpointResources = "folder_tree_checkpoint_resources",
+ SecretScanningDataSource = "secret_scanning_data_sources",
+ SecretScanningResource = "secret_scanning_resources",
+ SecretScanningScan = "secret_scanning_scans",
+ SecretScanningFinding = "secret_scanning_findings",
+ SecretScanningConfig = "secret_scanning_configs"
}
-export type TImmutableDBKeys = "id" | "createdAt" | "updatedAt";
+export type TImmutableDBKeys = "id" | "createdAt" | "updatedAt" | "commitId";
export const UserDeviceSchema = z
.object({
diff --cc backend/src/ee/services/audit-log/audit-log-types.ts
index a8956845d1,cfc01741f5..5fdcb7be41
--- a/backend/src/ee/services/audit-log/audit-log-types.ts
+++ b/backend/src/ee/services/audit-log/audit-log-types.ts
@@@ -381,13 -393,19 +393,26 @@@ export enum EventType
PROJECT_ASSUME_PRIVILEGE_SESSION_START = "project-assume-privileges-session-start",
PROJECT_ASSUME_PRIVILEGE_SESSION_END = "project-assume-privileges-session-end",
+ GET_PROJECT_PIT_COMMITS = "get-project-pit-commits",
+ GET_PROJECT_PIT_COMMIT_CHANGES = "get-project-pit-commit-changes",
+ GET_PROJECT_PIT_COMMIT_COUNT = "get-project-pit-commit-count",
+ PIT_ROLLBACK_COMMIT = "pit-rollback-commit",
+ PIT_REVERT_COMMIT = "pit-revert-commit",
+ PIT_GET_FOLDER_STATE = "pit-get-folder-state",
+ PIT_COMPARE_FOLDER_STATES = "pit-compare-folder-states",
+ SECRET_SCANNING_DATA_SOURCE_LIST = "secret-scanning-data-source-list",
+ SECRET_SCANNING_DATA_SOURCE_CREATE = "secret-scanning-data-source-create",
+ SECRET_SCANNING_DATA_SOURCE_UPDATE = "secret-scanning-data-source-update",
+ SECRET_SCANNING_DATA_SOURCE_DELETE = "secret-scanning-data-source-delete",
+ SECRET_SCANNING_DATA_SOURCE_GET = "secret-scanning-data-source-get",
+ SECRET_SCANNING_DATA_SOURCE_TRIGGER_SCAN = "secret-scanning-data-source-trigger-scan",
+ SECRET_SCANNING_DATA_SOURCE_SCAN = "secret-scanning-data-source-scan",
+ SECRET_SCANNING_RESOURCE_LIST = "secret-scanning-resource-list",
+ SECRET_SCANNING_SCAN_LIST = "secret-scanning-scan-list",
+ SECRET_SCANNING_FINDING_LIST = "secret-scanning-finding-list",
+ SECRET_SCANNING_FINDING_UPDATE = "secret-scanning-finding-update",
+ SECRET_SCANNING_CONFIG_GET = "secret-scanning-config-get",
+ SECRET_SCANNING_CONFIG_UPDATE = "secret-scanning-config-update",
UPDATE_ORG = "update-org",
@@@ -2961,78 -2979,101 +2986,173 @@@ interface MicrosoftTeamsWorkflowIntegra
};
}
+interface GetProjectPitCommitsEvent {
+ type: EventType.GET_PROJECT_PIT_COMMITS;
+ metadata: {
+ commitCount: string;
+ environment: string;
+ path: string;
+ offset: string;
+ limit: string;
+ search?: string;
+ sort: string;
+ };
+}
+
+interface GetProjectPitCommitChangesEvent {
+ type: EventType.GET_PROJECT_PIT_COMMIT_CHANGES;
+ metadata: {
+ changesCount: string;
+ commitId: string;
+ };
+}
+
+interface GetProjectPitCommitCountEvent {
+ type: EventType.GET_PROJECT_PIT_COMMIT_COUNT;
+ metadata: {
+ environment: string;
+ path: string;
+ commitCount: string;
+ };
+}
+
+interface PitRollbackCommitEvent {
+ type: EventType.PIT_ROLLBACK_COMMIT;
+ metadata: {
+ targetCommitId: string;
+ folderId: string;
+ deepRollback: boolean;
+ message: string;
+ totalChanges: string;
+ environment: string;
+ };
+}
+
+interface PitRevertCommitEvent {
+ type: EventType.PIT_REVERT_COMMIT;
+ metadata: {
+ commitId: string;
+ revertCommitId?: string;
+ changesReverted?: string;
+ };
+}
+
+interface PitGetFolderStateEvent {
+ type: EventType.PIT_GET_FOLDER_STATE;
+ metadata: {
+ commitId: string;
+ folderId: string;
+ resourceCount: string;
+ };
+}
+
+interface PitCompareFolderStatesEvent {
+ type: EventType.PIT_COMPARE_FOLDER_STATES;
+ metadata: {
+ targetCommitId: string;
+ folderId: string;
+ deepRollback: boolean;
+ diffsCount: string;
+ environment: string;
+ folderPath: string;
+ };
+}
+
+ interface SecretScanningDataSourceListEvent {
+ type: EventType.SECRET_SCANNING_DATA_SOURCE_LIST;
+ metadata: {
+ type?: SecretScanningDataSource;
+ count: number;
+ dataSourceIds: string[];
+ };
+ }
+
+ interface SecretScanningDataSourceGetEvent {
+ type: EventType.SECRET_SCANNING_DATA_SOURCE_GET;
+ metadata: {
+ type: SecretScanningDataSource;
+ dataSourceId: string;
+ };
+ }
+
+ interface SecretScanningDataSourceCreateEvent {
+ type: EventType.SECRET_SCANNING_DATA_SOURCE_CREATE;
+ metadata: Omit<TCreateSecretScanningDataSourceDTO, "projectId"> & { dataSourceId: string };
+ }
+
+ interface SecretScanningDataSourceUpdateEvent {
+ type: EventType.SECRET_SCANNING_DATA_SOURCE_UPDATE;
+ metadata: TUpdateSecretScanningDataSourceDTO;
+ }
+
+ interface SecretScanningDataSourceDeleteEvent {
+ type: EventType.SECRET_SCANNING_DATA_SOURCE_DELETE;
+ metadata: TDeleteSecretScanningDataSourceDTO;
+ }
+
+ interface SecretScanningDataSourceTriggerScanEvent {
+ type: EventType.SECRET_SCANNING_DATA_SOURCE_TRIGGER_SCAN;
+ metadata: TTriggerSecretScanningDataSourceDTO;
+ }
+
+ interface SecretScanningDataSourceScanEvent {
+ type: EventType.SECRET_SCANNING_DATA_SOURCE_SCAN;
+ metadata: {
+ scanId: string;
+ resourceId: string;
+ resourceType: string;
+ dataSourceId: string;
+ dataSourceType: string;
+ scanStatus: SecretScanningScanStatus;
+ scanType: SecretScanningScanType;
+ numberOfSecretsDetected?: number;
+ };
+ }
+
+ interface SecretScanningResourceListEvent {
+ type: EventType.SECRET_SCANNING_RESOURCE_LIST;
+ metadata: {
+ type: SecretScanningDataSource;
+ dataSourceId: string;
+ resourceIds: string[];
+ count: number;
+ };
+ }
+
+ interface SecretScanningScanListEvent {
+ type: EventType.SECRET_SCANNING_SCAN_LIST;
+ metadata: {
+ type: SecretScanningDataSource;
+ dataSourceId: string;
+ count: number;
+ };
+ }
+
+ interface SecretScanningFindingListEvent {
+ type: EventType.SECRET_SCANNING_FINDING_LIST;
+ metadata: {
+ findingIds: string[];
+ count: number;
+ };
+ }
+
+ interface SecretScanningFindingUpdateEvent {
+ type: EventType.SECRET_SCANNING_FINDING_UPDATE;
+ metadata: TUpdateSecretScanningFindingDTO;
+ }
+
+ interface SecretScanningConfigUpdateEvent {
+ type: EventType.SECRET_SCANNING_CONFIG_UPDATE;
+ metadata: {
+ content: string | null;
+ };
+ }
+
+ interface SecretScanningConfigReadEvent {
+ type: EventType.SECRET_SCANNING_CONFIG_GET;
+ metadata?: Record<string, never>; // not needed, based off projectId
+ }
+
interface OrgUpdateEvent {
type: EventType.UPDATE_ORG;
metadata: {
@@@ -3356,13 -3397,19 +3476,26 @@@ export type Event
| MicrosoftTeamsWorkflowIntegrationGetEvent
| MicrosoftTeamsWorkflowIntegrationListEvent
| MicrosoftTeamsWorkflowIntegrationUpdateEvent
+ | GetProjectPitCommitsEvent
+ | GetProjectPitCommitChangesEvent
+ | PitRollbackCommitEvent
+ | GetProjectPitCommitCountEvent
+ | PitRevertCommitEvent
+ | PitCompareFolderStatesEvent
+ | PitGetFolderStateEvent
+ | SecretScanningDataSourceListEvent
+ | SecretScanningDataSourceGetEvent
+ | SecretScanningDataSourceCreateEvent
+ | SecretScanningDataSourceUpdateEvent
+ | SecretScanningDataSourceDeleteEvent
+ | SecretScanningDataSourceTriggerScanEvent
+ | SecretScanningDataSourceScanEvent
+ | SecretScanningResourceListEvent
+ | SecretScanningScanListEvent
+ | SecretScanningFindingListEvent
+ | SecretScanningFindingUpdateEvent
+ | SecretScanningConfigUpdateEvent
+ | SecretScanningConfigReadEvent
| OrgUpdateEvent
| ProjectCreateEvent
| ProjectUpdateEvent
diff --cc backend/src/ee/services/permission/default-roles.ts
index f7ca2abcf0,40c5310ae5..cca4efaf24
--- a/backend/src/ee/services/permission/default-roles.ts
+++ b/backend/src/ee/services/permission/default-roles.ts
@@@ -2,10 -2,8 +2,9 @@@ import { AbilityBuilder, createMongoAbi
import {
ProjectPermissionActions,
- ProjectPermissionApprovalActions,
ProjectPermissionCertificateActions,
ProjectPermissionCmekActions,
+ ProjectPermissionCommitsActions,
ProjectPermissionDynamicSecretActions,
ProjectPermissionGroupActions,
ProjectPermissionIdentityActions,
@@@ -261,12 -292,7 +298,12 @@@ const buildMemberPermissionRules = () =
ProjectPermissionSub.SecretImports
);
+ can(
+ [ProjectPermissionCommitsActions.Read, ProjectPermissionCommitsActions.PerformRollback],
+ ProjectPermissionSub.Commits
+ );
+
- can([ProjectPermissionApprovalActions.Read], ProjectPermissionSub.SecretApproval);
+ can([ProjectPermissionActions.Read], ProjectPermissionSub.SecretApproval);
can([ProjectPermissionSecretRotationActions.Read], ProjectPermissionSub.SecretRotation);
can([ProjectPermissionActions.Read, ProjectPermissionActions.Create], ProjectPermissionSub.SecretRollback);
@@@ -435,8 -479,20 +490,21 @@@ const buildViewerPermissionRules = () =
can(ProjectPermissionActions.Read, ProjectPermissionSub.SshCertificates);
can(ProjectPermissionActions.Read, ProjectPermissionSub.SshCertificateTemplates);
can(ProjectPermissionSecretSyncActions.Read, ProjectPermissionSub.SecretSyncs);
+ can(ProjectPermissionCommitsActions.Read, ProjectPermissionSub.Commits);
+ can(
+ [
+ ProjectPermissionSecretScanningDataSourceActions.Read,
+ ProjectPermissionSecretScanningDataSourceActions.ReadScans,
+ ProjectPermissionSecretScanningDataSourceActions.ReadResources
+ ],
+ ProjectPermissionSub.SecretScanningDataSources
+ );
+
+ can([ProjectPermissionSecretScanningFindingActions.Read], ProjectPermissionSub.SecretScanningFindings);
+
+ can([ProjectPermissionSecretScanningConfigActions.Read], ProjectPermissionSub.SecretScanningConfigs);
+
return rules;
};
diff --cc backend/src/ee/services/permission/project-permission.ts
index 761e8eddd8,34cffcd980..14d5158174
--- a/backend/src/ee/services/permission/project-permission.ts
+++ b/backend/src/ee/services/permission/project-permission.ts
@@@ -297,7 -325,9 +331,10 @@@ export type ProjectPermissionSet
| [ProjectPermissionActions.Read, ProjectPermissionSub.SecretRollback]
| [ProjectPermissionActions.Create, ProjectPermissionSub.SecretRollback]
| [ProjectPermissionActions.Edit, ProjectPermissionSub.Kms]
- | [ProjectPermissionCommitsActions, ProjectPermissionSub.Commits];
++ | [ProjectPermissionCommitsActions, ProjectPermissionSub.Commits]
+ | [ProjectPermissionSecretScanningDataSourceActions, ProjectPermissionSub.SecretScanningDataSources]
+ | [ProjectPermissionSecretScanningFindingActions, ProjectPermissionSub.SecretScanningFindings]
+ | [ProjectPermissionSecretScanningConfigActions, ProjectPermissionSub.SecretScanningConfigs];
const SECRET_PATH_MISSING_SLASH_ERR_MSG = "Invalid Secret Path; it must start with a '/'";
const SECRET_PATH_PERMISSION_OPERATOR_SCHEMA = z.union([
@@@ -619,11 -658,25 +665,31 @@@ const GeneralPermissionSchema =
"Describe what action an entity can take."
)
}),
+ z.object({
+ subject: z.literal(ProjectPermissionSub.Commits).describe("The entity this permission pertains to."),
+ action: CASL_ACTION_SCHEMA_NATIVE_ENUM(ProjectPermissionCommitsActions).describe(
+ "Describe what action an entity can take."
+ )
++ }),
+ z.object({
+ subject: z
+ .literal(ProjectPermissionSub.SecretScanningDataSources)
+ .describe("The entity this permission pertains to."),
+ action: CASL_ACTION_SCHEMA_NATIVE_ENUM(ProjectPermissionSecretScanningDataSourceActions).describe(
+ "Describe what action an entity can take."
+ )
+ }),
+ z.object({
+ subject: z.literal(ProjectPermissionSub.SecretScanningFindings).describe("The entity this permission pertains to."),
+ action: CASL_ACTION_SCHEMA_NATIVE_ENUM(ProjectPermissionSecretScanningFindingActions).describe(
+ "Describe what action an entity can take."
+ )
+ }),
+ z.object({
+ subject: z.literal(ProjectPermissionSub.SecretScanningConfigs).describe("The entity this permission pertains to."),
+ action: CASL_ACTION_SCHEMA_NATIVE_ENUM(ProjectPermissionSecretScanningConfigActions).describe(
+ "Describe what action an entity can take."
+ )
})
];
diff --cc backend/src/queue/queue-service.ts
index 14fbfe6c40,e4d6549980..25677841d4
--- a/backend/src/queue/queue-service.ts
+++ b/backend/src/queue/queue-service.ts
@@@ -54,8 -60,8 +60,9 @@@ export enum QueueName
ImportSecretsFromExternalSource = "import-secrets-from-external-source",
AppConnectionSecretSync = "app-connection-secret-sync",
SecretRotationV2 = "secret-rotation-v2",
+ FolderTreeCheckpoint = "folder-tree-checkpoint",
- InvalidateCache = "invalidate-cache"
+ InvalidateCache = "invalidate-cache",
+ SecretScanningV2 = "secret-scanning-v2"
}
export enum QueueJobs {
@@@ -88,8 -94,10 +95,11 @@@
SecretRotationV2QueueRotations = "secret-rotation-v2-queue-rotations",
SecretRotationV2RotateSecrets = "secret-rotation-v2-rotate-secrets",
SecretRotationV2SendNotification = "secret-rotation-v2-send-notification",
+ CreateFolderTreeCheckpoint = "create-folder-tree-checkpoint",
InvalidateCache = "invalidate-cache",
+ SecretScanningV2FullScan = "secret-scanning-v2-full-scan",
+ SecretScanningV2DiffScan = "secret-scanning-v2-diff-scan",
+ SecretScanningV2SendNotification = "secret-scanning-v2-notification",
CaOrderCertificateForSubscriber = "ca-order-certificate-for-subscriber",
PkiSubscriberDailyAutoRenewal = "pki-subscriber-daily-auto-renewal"
}
diff --cc backend/src/server/routes/index.ts
index 7b5d0411fd,509a2ef1fa..8fe31bce8d
--- a/backend/src/server/routes/index.ts
+++ b/backend/src/server/routes/index.ts
@@@ -1931,7 -1927,7 +1992,8 @@@ export const registerRoutes = async
microsoftTeams: microsoftTeamsService,
assumePrivileges: assumePrivilegeService,
githubOrgSync: githubOrgSyncConfigService,
- folderCommit: folderCommitService
++ folderCommit: folderCommitService,
+ secretScanningV2: secretScanningV2Service
});
const cronJobs: CronJob[] = [];
diff --cc frontend/src/context/ProjectPermissionContext/types.ts
index 352a069581,2cbc5bd69a..f9b2a828a7
--- a/frontend/src/context/ProjectPermissionContext/types.ts
+++ b/frontend/src/context/ProjectPermissionContext/types.ts
@@@ -214,7 -229,9 +234,10 @@@ export enum ProjectPermissionSub
Cmek = "cmek",
SecretSyncs = "secret-syncs",
Kmip = "kmip",
- Commits = "commits"
++ Commits = "commits",
+ SecretScanningDataSources = "secret-scanning-data-sources",
+ SecretScanningFindings = "secret-scanning-findings",
+ SecretScanningConfigs = "secret-scanning-configs"
}
export type SecretSubjectFields = {
@@@ -339,6 -367,11 +373,12 @@@ export type ProjectPermissionSet
| [ProjectPermissionCmekActions, ProjectPermissionSub.Cmek]
| [ProjectPermissionActions.Edit, ProjectPermissionSub.Kms]
| [ProjectPermissionKmipActions, ProjectPermissionSub.Kmip]
- | [ProjectPermissionCommitsActions, ProjectPermissionSub.Commits];
++ | [ProjectPermissionCommitsActions, ProjectPermissionSub.Commits]
+ | [
+ ProjectPermissionSecretScanningDataSourceActions,
+ ProjectPermissionSub.SecretScanningDataSources
+ ]
+ | [ProjectPermissionSecretScanningFindingActions, ProjectPermissionSub.SecretScanningFindings]
+ | [ProjectPermissionSecretScanningConfigActions, ProjectPermissionSub.SecretScanningConfigs];
export type TProjectPermission = MongoAbility<ProjectPermissionSet>;
diff --cc frontend/src/pages/project/RoleDetailsBySlugPage/components/ProjectRoleModifySection.utils.tsx
index 59bb287144,c986be37b6..d7872a223b
--- a/frontend/src/pages/project/RoleDetailsBySlugPage/components/ProjectRoleModifySection.utils.tsx
+++ b/frontend/src/pages/project/RoleDetailsBySlugPage/components/ProjectRoleModifySection.utils.tsx
@@@ -12,8 -12,6 +12,7 @@@ import
} from "@app/context";
import {
PermissionConditionOperators,
- ProjectPermissionApprovalActions,
+ ProjectPermissionCommitsActions,
ProjectPermissionDynamicSecretActions,
ProjectPermissionGroupActions,
ProjectPermissionIdentityActions,
@@@ -770,19 -881,10 +888,21 @@@ export const rolePermission2Form = (per
conditions: conditions ? convertCaslConditionToFormOperator(conditions) : [],
inverted
});
+
+ return;
}
+ if (subject === ProjectPermissionSub.Commits) {
+ const canRead = action.includes(ProjectPermissionCommitsActions.Read);
+ const canPerformRollback = action.includes(ProjectPermissionCommitsActions.PerformRollback);
+
+ if (!formVal[subject]) formVal[subject] = [{}];
+ if (canRead) formVal[subject]![0][ProjectPermissionCommitsActions.Read] = true;
+ if (canPerformRollback)
+ formVal[subject]![0][ProjectPermissionCommitsActions.PerformRollback] = true;
+ return;
+ }
+
if (subject === ProjectPermissionSub.PkiSubscribers) {
if (!formVal[subject]) formVal[subject] = [];
diff --cc frontend/src/pages/project/RoleDetailsBySlugPage/components/RolePermissionsSection.tsx
index c9a51b64e5,382cb0b559..31f63ac51b
--- a/frontend/src/pages/project/RoleDetailsBySlugPage/components/RolePermissionsSection.tsx
+++ b/frontend/src/pages/project/RoleDetailsBySlugPage/components/RolePermissionsSection.tsx
@@@ -23,8 -23,8 +23,9 @@@ import { GeneralPermissionPolicies } fr
import { IdentityManagementPermissionConditions } from "./IdentityManagementPermissionConditions";
import { PermissionEmptyState } from "./PermissionEmptyState";
import { PkiSubscriberPermissionConditions } from "./PkiSubscriberPermissionConditions";
+ import { PkiTemplatePermissionConditions } from "./PkiTemplatePermissionConditions";
import {
+ EXCLUDED_PERMISSION_SUBS,
formRolePermission2API,
isConditionalSubjects,
PROJECT_PERMISSION_OBJECT,
diff --cc frontend/src/routeTree.gen.ts
index 16dd732d3a,449ea28cbc..f90974601e
--- a/frontend/src/routeTree.gen.ts
+++ b/frontend/src/routeTree.gen.ts
@@@ -260,14 -283,10 +286,18 @@@ const AuthenticateInjectOrgDetailsOrgLa
createFileRoute(
'/_authenticate/_inject-org-details/_org-layout/cert-manager/$projectId/_cert-manager-layout/subscribers',
)()
+ const AuthenticateInjectOrgDetailsOrgLayoutCertManagerProjectIdCertManagerLayoutCertificateTemplatesImport =
+ createFileRoute(
+ '/_authenticate/_inject-org-details/_org-layout/cert-manager/$projectId/_cert-manager-layout/certificate-templates',
+ )()
+const AuthenticateInjectOrgDetailsOrgLayoutSecretManagerProjectIdSecretManagerLayoutCommitsEnvironmentFolderIdImport =
+ createFileRoute(
+ '/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/commits/$environment/$folderId',
+ )()
+const AuthenticateInjectOrgDetailsOrgLayoutSecretManagerProjectIdSecretManagerLayoutCommitsEnvironmentFolderIdCommitIdImport =
+ createFileRoute(
+ '/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/commits/$environment/$folderId/$commitId',
+ )()
// Create/Update Routes
@@@ -1167,15 -1323,22 +1334,31 @@@ const certManagerPkiSubscribersPageRout
AuthenticateInjectOrgDetailsOrgLayoutCertManagerProjectIdCertManagerLayoutSubscribersRoute,
} as any)
+ const certManagerPkiTemplateListPageRouteRoute =
+ certManagerPkiTemplateListPageRouteImport.update({
+ id: '/',
+ path: '/',
+ getParentRoute: () =>
+ AuthenticateInjectOrgDetailsOrgLayoutCertManagerProjectIdCertManagerLayoutCertificateTemplatesRoute,
+ } as any)
+
+const AuthenticateInjectOrgDetailsOrgLayoutSecretManagerProjectIdSecretManagerLayoutCommitsEnvironmentFolderIdRoute =
+ AuthenticateInjectOrgDetailsOrgLayoutSecretManagerProjectIdSecretManagerLayoutCommitsEnvironmentFolderIdImport.update(
+ {
+ id: '/commits/$environment/$folderId',
+ path: '/commits/$environment/$folderId',
+ getParentRoute: () => secretManagerLayoutRoute,
+ } as any,
+ )
+
+ const secretScanningSecretScanningDataSourceByIdPageRouteRoute =
+ secretScanningSecretScanningDataSourceByIdPageRouteImport.update({
+ id: '/$type/$dataSourceId',
+ path: '/$type/$dataSourceId',
+ getParentRoute: () =>
+ AuthenticateInjectOrgDetailsOrgLayoutSecretScanningProjectIdSecretScanningLayoutDataSourcesRoute,
+ } as any)
+
const secretManagerIntegrationsWindmillConfigurePageRouteRoute =
secretManagerIntegrationsWindmillConfigurePageRouteImport.update({
id: '/windmill/create',
@@@ -3159,20 -3428,13 +3482,27 @@@ declare module '@tanstack/react-router
preLoaderRoute: typeof secretManagerIntegrationsWindmillConfigurePageRouteImport
parentRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutSecretManagerProjectIdSecretManagerLayoutIntegrationsImport
}
+ '/_authenticate/_inject-org-details/_org-layout/secret-scanning/$projectId/_secret-scanning-layout/data-sources/$type/$dataSourceId': {
+ id: '/_authenticate/_inject-org-details/_org-layout/secret-scanning/$projectId/_secret-scanning-layout/data-sources/$type/$dataSourceId'
+ path: '/$type/$dataSourceId'
+ fullPath: '/secret-scanning/$projectId/data-sources/$type/$dataSourceId'
+ preLoaderRoute: typeof secretScanningSecretScanningDataSourceByIdPageRouteImport
+ parentRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutSecretScanningProjectIdSecretScanningLayoutDataSourcesImport
+ }
+ '/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/commits/$environment/$folderId': {
+ id: '/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/commits/$environment/$folderId'
+ path: '/commits/$environment/$folderId'
+ fullPath: '/secret-manager/$projectId/commits/$environment/$folderId'
+ preLoaderRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutSecretManagerProjectIdSecretManagerLayoutCommitsEnvironmentFolderIdImport
+ parentRoute: typeof secretManagerLayoutImport
+ }
+ '/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/commits/$environment/$folderId/': {
+ id: '/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/commits/$environment/$folderId/'
+ path: '/'
+ fullPath: '/secret-manager/$projectId/commits/$environment/$folderId/'
+ preLoaderRoute: typeof secretManagerCommitsPageRouteImport
+ parentRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutSecretManagerProjectIdSecretManagerLayoutCommitsEnvironmentFolderIdImport
+ }
'/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/azure-app-configuration/oauth2/callback': {
id: '/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/azure-app-configuration/oauth2/callback'
path: '/azure-app-configuration/oauth2/callback'
@@@ -4318,8 -4642,7 +4769,9 @@@ export interface FileRoutesByFullPath
'/secret-manager/$projectId/integrations/vercel/create': typeof secretManagerIntegrationsVercelConfigurePageRouteRoute
'/secret-manager/$projectId/integrations/windmill/authorize': typeof secretManagerIntegrationsWindmillAuthorizePageRouteRoute
'/secret-manager/$projectId/integrations/windmill/create': typeof secretManagerIntegrationsWindmillConfigurePageRouteRoute
+ '/secret-scanning/$projectId/data-sources/$type/$dataSourceId': typeof secretScanningSecretScanningDataSourceByIdPageRouteRoute
+ '/secret-manager/$projectId/commits/$environment/$folderId': typeof AuthenticateInjectOrgDetailsOrgLayoutSecretManagerProjectIdSecretManagerLayoutCommitsEnvironmentFolderIdRouteWithChildren
+ '/secret-manager/$projectId/commits/$environment/$folderId/': typeof secretManagerCommitsPageRouteRoute
'/secret-manager/$projectId/integrations/azure-app-configuration/oauth2/callback': typeof secretManagerIntegrationsAzureAppConfigurationOauthCallbackPageRouteRoute
'/secret-manager/$projectId/integrations/azure-key-vault/oauth2/callback': typeof secretManagerIntegrationsAzureKeyVaultOauthCallbackPageRouteRoute
'/secret-manager/$projectId/integrations/bitbucket/oauth2/callback': typeof secretManagerIntegrationsBitbucketOauthCallbackPageRouteRoute
@@@ -4508,7 -4845,7 +4977,8 @@@ export interface FileRoutesByTo
'/secret-manager/$projectId/integrations/vercel/create': typeof secretManagerIntegrationsVercelConfigurePageRouteRoute
'/secret-manager/$projectId/integrations/windmill/authorize': typeof secretManagerIntegrationsWindmillAuthorizePageRouteRoute
'/secret-manager/$projectId/integrations/windmill/create': typeof secretManagerIntegrationsWindmillConfigurePageRouteRoute
+ '/secret-scanning/$projectId/data-sources/$type/$dataSourceId': typeof secretScanningSecretScanningDataSourceByIdPageRouteRoute
+ '/secret-manager/$projectId/commits/$environment/$folderId': typeof secretManagerCommitsPageRouteRoute
'/secret-manager/$projectId/integrations/azure-app-configuration/oauth2/callback': typeof secretManagerIntegrationsAzureAppConfigurationOauthCallbackPageRouteRoute
'/secret-manager/$projectId/integrations/azure-key-vault/oauth2/callback': typeof secretManagerIntegrationsAzureKeyVaultOauthCallbackPageRouteRoute
'/secret-manager/$projectId/integrations/bitbucket/oauth2/callback': typeof secretManagerIntegrationsBitbucketOauthCallbackPageRouteRoute
@@@ -4716,8 -5071,7 +5206,9 @@@ export interface FileRoutesById
'/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/vercel/create': typeof secretManagerIntegrationsVercelConfigurePageRouteRoute
'/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/windmill/authorize': typeof secretManagerIntegrationsWindmillAuthorizePageRouteRoute
'/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/windmill/create': typeof secretManagerIntegrationsWindmillConfigurePageRouteRoute
+ '/_authenticate/_inject-org-details/_org-layout/secret-scanning/$projectId/_secret-scanning-layout/data-sources/$type/$dataSourceId': typeof secretScanningSecretScanningDataSourceByIdPageRouteRoute
+ '/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/commits/$environment/$folderId': typeof AuthenticateInjectOrgDetailsOrgLayoutSecretManagerProjectIdSecretManagerLayoutCommitsEnvironmentFolderIdRouteWithChildren
+ '/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/commits/$environment/$folderId/': typeof secretManagerCommitsPageRouteRoute
'/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/azure-app-configuration/oauth2/callback': typeof secretManagerIntegrationsAzureAppConfigurationOauthCallbackPageRouteRoute
'/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/azure-key-vault/oauth2/callback': typeof secretManagerIntegrationsAzureKeyVaultOauthCallbackPageRouteRoute
'/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/bitbucket/oauth2/callback': typeof secretManagerIntegrationsBitbucketOauthCallbackPageRouteRoute
@@@ -4918,8 -5288,7 +5428,9 @@@ export interface FileRouteTypes
| '/secret-manager/$projectId/integrations/vercel/create'
| '/secret-manager/$projectId/integrations/windmill/authorize'
| '/secret-manager/$projectId/integrations/windmill/create'
+ | '/secret-scanning/$projectId/data-sources/$type/$dataSourceId'
+ | '/secret-manager/$projectId/commits/$environment/$folderId'
+ | '/secret-manager/$projectId/commits/$environment/$folderId/'
| '/secret-manager/$projectId/integrations/azure-app-configuration/oauth2/callback'
| '/secret-manager/$projectId/integrations/azure-key-vault/oauth2/callback'
| '/secret-manager/$projectId/integrations/bitbucket/oauth2/callback'
@@@ -5107,7 -5490,7 +5635,8 @@@
| '/secret-manager/$projectId/integrations/vercel/create'
| '/secret-manager/$projectId/integrations/windmill/authorize'
| '/secret-manager/$projectId/integrations/windmill/create'
+ | '/secret-scanning/$projectId/data-sources/$type/$dataSourceId'
+ | '/secret-manager/$projectId/commits/$environment/$folderId'
| '/secret-manager/$projectId/integrations/azure-app-configuration/oauth2/callback'
| '/secret-manager/$projectId/integrations/azure-key-vault/oauth2/callback'
| '/secret-manager/$projectId/integrations/bitbucket/oauth2/callback'
@@@ -5313,8 -5714,7 +5862,9 @@@
| '/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/vercel/create'
| '/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/windmill/authorize'
| '/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/windmill/create'
+ | '/_authenticate/_inject-org-details/_org-layout/secret-scanning/$projectId/_secret-scanning-layout/data-sources/$type/$dataSourceId'
+ | '/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/commits/$environment/$folderId'
+ | '/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/commits/$environment/$folderId/'
| '/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/azure-app-configuration/oauth2/callback'
| '/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/azure-key-vault/oauth2/callback'
| '/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/bitbucket/oauth2/callback'
@@@ -5793,10 -6239,22 +6392,23 @@@ export const routeTree = rootRout
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/secrets/$envSlug",
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/identities/$identityId",
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/members/$membershipId",
- "/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/roles/$roleSlug"
+ "/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/roles/$roleSlug",
+ "/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/commits/$environment/$folderId"
]
},
+ "/_authenticate/_inject-org-details/_org-layout/secret-scanning/$projectId/_secret-scanning-layout": {
+ "filePath": "secret-scanning/layout.tsx",
+ "parent": "/_authenticate/_inject-org-details/_org-layout/secret-scanning/$projectId",
+ "children": [
+ "/_authenticate/_inject-org-details/_org-layout/secret-scanning/$projectId/_secret-scanning-layout/findings",
+ "/_authenticate/_inject-org-details/_org-layout/secret-scanning/$projectId/_secret-scanning-layout/settings",
+ "/_authenticate/_inject-org-details/_org-layout/secret-scanning/$projectId/_secret-scanning-layout/access-management",
+ "/_authenticate/_inject-org-details/_org-layout/secret-scanning/$projectId/_secret-scanning-layout/data-sources",
+ "/_authenticate/_inject-org-details/_org-layout/secret-scanning/$projectId/_secret-scanning-layout/identities/$identityId",
+ "/_authenticate/_inject-org-details/_org-layout/secret-scanning/$projectId/_secret-scanning-layout/members/$membershipId",
+ "/_authenticate/_inject-org-details/_org-layout/secret-scanning/$projectId/_secret-scanning-layout/roles/$roleSlug"
+ ]
+ },
"/_authenticate/_inject-org-details/_org-layout/ssh/$projectId/_ssh-layout": {
"filePath": "ssh/layout.tsx",
"parent": "/_authenticate/_inject-org-details/_org-layout/ssh/$projectId",
@@@ -6377,18 -6882,10 +7036,22 @@@
"filePath": "secret-manager/integrations/WindmillConfigurePage/route.tsx",
"parent": "/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations"
},
+ "/_authenticate/_inject-org-details/_org-layout/secret-scanning/$projectId/_secret-scanning-layout/data-sources/$type/$dataSourceId": {
+ "filePath": "secret-scanning/SecretScanningDataSourceByIdPage/route.tsx",
+ "parent": "/_authenticate/_inject-org-details/_org-layout/secret-scanning/$projectId/_secret-scanning-layout/data-sources"
+ },
+ "/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/commits/$environment/$folderId": {
+ "filePath": "",
+ "parent": "/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout",
+ "children": [
+ "/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/commits/$environment/$folderId/",
+ "/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/commits/$environment/$folderId/$commitId"
+ ]
+ },
+ "/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/commits/$environment/$folderId/": {
+ "filePath": "secret-manager/CommitsPage/route.tsx",
+ "parent": "/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/commits/$environment/$folderId"
+ },
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/azure-app-configuration/oauth2/callback": {
"filePath": "secret-manager/integrations/AzureAppConfigurationOauthCallbackPage/route.tsx",
"parent": "/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations"