Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Merge remote-tracking branch 'origin/main' into PKI-441
Carlos Monastyrski67ac955b345c
diff --cc .infisicalignoreindex 1e0c61dce1,e19faa1e7b..0003dd95a8--- a/.infisicalignore+++ b/.infisicalignore@@@ -72,4 -72,8 +72,9 @@@ backend/e2e-test/routes/v1/oauth-token-backend/src/ee/services/audit-log-stream/splunk/splunk-provider-schemas.test.ts:generic-api-key:7frontend/src/hooks/api/agentVault/sessionLogDecrypt.test.ts:generic-api-key:161docs/documentation/platform/secret-scanning/scan-locally.mdx:generic-api-key:65+backend/src/ee/services/pki-discovery/pki-discovery-host-scan-fns.test.ts:generic-api-key:23+ backend/src/ee/services/secret-sync/chef/chef-sync-fns.test.ts:generic-api-key:28+ backend/src/ee/services/secret-sync/chef/chef-sync-fns.test.ts:generic-api-key:35+ docs/documentation/platform/pki/ca/private-ca.mdx:generic-api-key:334+ docs/snippets/documentation/platform/secret-scanning/ignore-one-line.mdx:generic-api-key:6+ frontend/src/pages/secret-scanning/layout.tsx:generic-api-key:9diff --cc backend/CLAUDE.mdindex e609ea09ad,808f6fbc93..7179879863--- a/backend/CLAUDE.md+++ b/backend/CLAUDE.md@@@ -1034,11 -1057,9 +1057,11 @@@ EE routes register before community rou**PAM**: Before working on any `pam-*` service or router, read [`src/ee/services/pam/CLAUDE.md`](src/ee/services/pam/CLAUDE.md) for a high-level map of the PAM backend — module layout, permission model, and non-obvious invariants. It is intentionally a concept map, not a spec: read the referenced code for implementation detail. If you add a feature, keep any addition there brief (a concept or invariant, not code mechanics).+**Certificate discovery**: before working on `pki-discovery-*` or `pki-installation-*`, read [`src/ee/services/pki-discovery/CLAUDE.md`](src/ee/services/pki-discovery/CLAUDE.md). Linux Server discovery splits work between the backend and the gateway's certificate scanner in the CLI repo, and keystore passwords live on installations, not jobs.+**Agent Vault**: the same applies to the `agent-vault-*` services and routers; the concept map is [`src/ee/services/agent-vault/CLAUDE.md`](src/ee/services/agent-vault/CLAUDE.md). PAM and Agent Vault are the two **org-scoped products**: one implicit project per org, resolved lazily, whose roles collapse to admin or member. Anything that branches on `ProjectType.PAM` (metering emits, predefined roles, the billable-project count, invite grants) almost always needs an Agent Vault arm too.- **Secret Scanning** is single-project (see the root `CLAUDE.md`): `secret-scanning-v2-project-bootstrap.ts` creates the project with the org when it has a creator to make admin (like PAM and Agent Vault), `secret-scanning-v2-project-resolver.ts` picks the active project and lazily creates it, with every org admin as project admin, for older orgs and for orgs created from the admin console, whose admins are only invited after the org exists, and routes that take `projectId` read `req.internalSecretScanningProjectId`.+ **Secret Scanning** is single-project (see the root `CLAUDE.md`): `secret-scanning-v2-project-bootstrap.ts` creates the project with the org when it has a creator to make admin (like PAM and Agent Vault), `secret-scanning-v2-project-resolver.ts` picks the active project and lazily creates it, with every org admin as project admin, for older orgs and for orgs created from the admin console, whose admins are only invited after the org exists, and routes that take `projectId` read `req.internalSecretScanningProjectId`. A data source covers the resources it has rows for (added by a user or discovered from a push); its `config` only says where to look (Bitbucket workspace, GitLab group), never which resources, so scans, "included" state and GitLab account-scope webhooks all key off rows. Stored configs may still carry the old `includeRepos` / `includeProjects` keys, which nothing reads.**Dynamic secret lease secrets needed at revoke time go in `dynamic_secret_leases.encryptedLeaseData`**, never in `externalEntityId` or `config` (both plaintext, and `externalEntityId` is returned by every lease route and logged in audit events). A provider opts in by listing the `create()` `data` keys in `persistedLeaseFields`; the lease service encrypts them with the project's SecretManager key and every revoke path passes them back as `metadata.leaseData`. Lease routes return `SanitizedDynamicSecretLeaseSchema` so the column never reaches a response. Secret *config* fields are listed separately in `DYNAMIC_SECRET_SECRET_FIELDS` (`providers/redact.ts`), as dotted paths so nested secrets work (`clientAuth.clientSecret`): reads strip them via `redactStoredInputs`, and an update that omits one keeps the stored value via `restoreOmittedSecretFields`, because the update merge is shallow.diff --cc frontend/src/components/v3/generic/TagsInput/TagsInput.tsxindex ddca1c4eef,715140d3cf..d877e93733--- a/frontend/src/components/v3/generic/TagsInput/TagsInput.tsx+++ b/frontend/src/components/v3/generic/TagsInput/TagsInput.tsx@@@ -16,7 -17,7 +17,8 @@@ import { Tooltip, TooltipContent, Tooltimport "../../utils/ScrollEdgeFade.css";const NO_ITEMS: string[] = [];+const DEFAULT_SEPARATORS = [",", " "];+ const DEFAULT_PASTE_DELIMITER = /[\n\r, ]/;type TagsInputProps = Omit<React.ComponentPropsWithoutRef<"input">,@@@ -30,7 -31,10 +32,11 @@@/** Returning a reason refuses the commit. `existing` never contains the value being checked. */validateTag?: (tag: string, existing: string[]) => string | null;onValidationError?: (reason: string | null) => void;+ separators?: readonly string[];+ /** Returning a reason flags a committed tag as invalid without refusing it, so it stays visible and removable. */+ getTagError?: (tag: string) => string | null;+ /** What splits a pasted list into separate tags. Defaults to commas, spaces and newlines. */+ pasteDelimiter?: RegExp;inputValue?: string;onInputValueChange?: (draft: string) => void;className?: string;@@@ -45,7 -49,8 +51,9 @@@ const TagsInput = React.forwardRef<HTMLisError,validateTag,onValidationError,+ separators = DEFAULT_SEPARATORS,+ getTagError,+ pasteDelimiter = DEFAULT_PASTE_DELIMITER,inputValue,onInputValueChange,className,diff --cc frontend/src/hooks/api/appConnections/types/index.tsindex 3df2a91585,be91e16be3..1fa98b1254--- a/frontend/src/hooks/api/appConnections/types/index.ts+++ b/frontend/src/hooks/api/appConnections/types/index.ts@@@ -269,12 -274,10 +274,13 @@@ export type TAppConnection| TDaytonaConnection| TStripeConnection| TKeeperConnection- | THpeIloConnection;+ | THpeIloConnection+ | TS3CompatibleConnection;-export type TAvailableAppConnection = Pick<TAppConnection, "name" | "id" | "projectId">;+export type TAvailableAppConnection = Pick<TAppConnection, "name" | "id" | "projectId"> & {+ gatewayId?: string | null;+ gatewayPoolId?: string | null;+};export type TListAppConnections<T extends TAppConnection> = { appConnections: T[] };// scott: we will need this once we have individual app connection pagediff --cc frontend/src/pages/cert-manager/DiscoveryPage/components/DiscoveryJobSheet/LinuxServerFoldersFields.tsxindex ec425a1fec,0000000000..845de3abd1mode 100644,000000..100644--- a/frontend/src/pages/cert-manager/DiscoveryPage/components/DiscoveryJobSheet/LinuxServerFoldersFields.tsx+++ b/frontend/src/pages/cert-manager/DiscoveryPage/components/DiscoveryJobSheet/LinuxServerFoldersFields.tsx@@@ -1,84 -1,0 +1,86 @@@+import { useState } from "react";+import { Controller, useFormContext } from "react-hook-form";++import { Field, FieldDescription, FieldError, FieldLabel, TagsInput } from "@app/components/v3";++import {+ MAX_SEARCH_FOLDERS,+ MAX_SKIP_FOLDERS,+ TLinuxServerDiscoveryJobForm,+ validateLinuxFolder+} from "./discovery-job-form-schema";++const FOLDER_SEPARATORS: string[] = [];++const FOLDER_PASTE_DELIMITER = /[\n\r]/;++const FolderListField = ({+ name,+ label,+ description,+ placeholder,+ maxFolders+}: {+ name: "searchFolderPaths" | "skipFolderPaths";+ label: string;+ description: string;+ placeholder: string;+ maxFolders: number;+}) => {+ const { control } = useFormContext<TLinuxServerDiscoveryJobForm>();+ const [tagError, setTagError] = useState<string | null>(null);++ return (+ <Controller+ control={control}+ name={name}+ render={({ field: { value, onChange }, fieldState: { error } }) => {+ const message = tagError ?? error?.message;+ return (+ <Field className="mb-4">+ <FieldLabel>{label}</FieldLabel>+ <TagsInput+ value={value ?? []}+ onValueChange={onChange}+ validateTag={(tag, existing) => {+ if (existing.includes(tag)) return "This folder is already in the list";+ if (existing.length >= maxFolders)+ return `Add up to ${maxFolders} ${label.toLowerCase()}`;+ return validateLinuxFolder(tag);+ }}+ onValidationError={setTagError}+ separators={FOLDER_SEPARATORS}++ pasteDelimiter={FOLDER_PASTE_DELIMITER}+ placeholder={placeholder}+ isError={Boolean(message)}+ className="font-mono"+ />+ {message ? (+ <FieldError>{message}</FieldError>+ ) : (+ <FieldDescription>{description}</FieldDescription>+ )}+ </Field>+ );+ }}+ />+ );+};++export const LinuxServerFoldersFields = () => (+ <>+ <FolderListField+ name="searchFolderPaths"+ label="Search Folders"+ placeholder="Add a folder and press Enter"+ description="Absolute paths searched on every server. Subfolders are included."+ maxFolders={MAX_SEARCH_FOLDERS}+ />+ <FolderListField+ name="skipFolderPaths"+ label="Skip Folders"+ placeholder="Add a folder and press Enter"+ description="Folders left out of the search. /proc, /sys and /dev are always skipped."+ maxFolders={MAX_SKIP_FOLDERS}+ />+ </>+);diff --cc frontend/src/pages/cert-manager/InstallationDetailsByIDPage/InstallationDetailsByIDPage.tsxindex 551a43a343,d55260d489..385cdc6cd6--- a/frontend/src/pages/cert-manager/InstallationDetailsByIDPage/InstallationDetailsByIDPage.tsx+++ b/frontend/src/pages/cert-manager/InstallationDetailsByIDPage/InstallationDetailsByIDPage.tsx@@@ -1,21 -1,11 +1,21 @@@+import { useState } from "react";import { Helmet } from "react-helmet";import { Link, useNavigate, useParams } from "@tanstack/react-router";-import { ChevronLeftIcon, EllipsisIcon } from "lucide-react";+import {+ ChevronLeftIcon,+ CircleAlertIcon,+ EllipsisIcon,+ LockIcon,+ TriangleAlertIcon+} from "lucide-react";import { ProjectPermissionCan } from "@app/components/permissions";- import { DeleteActionModal } from "@app/components/v2";import {+ Alert,+ AlertDescription,+ AlertTitle,Button,+ DeleteConfirmDialog,DropdownMenu,DropdownMenuContent,DropdownMenuItem,@@@ -216,26 -127,13 +216,26 @@@ const Page = () =></div></div>+ <SetKeystorePasswordDialog+ isOpen={popUp.setKeystorePassword.isOpen}+ onOpenChange={(isOpen) => handlePopUpToggle("setKeystorePassword", isOpen)}+ onSaved={() =>+ setPendingRescan({+ previousCheckedAt: installation.metadata?.lastCheckedAt,+ startedAt: Date.now()+ })+ }+ projectId={projectId}+ installation={installation}+ />+- <DeleteActionModal+ <DeleteConfirmDialogisOpen={popUp.deleteInstallation.isOpen}title="Are you sure you want to delete this installation?"- subTitle="This action cannot be undone. The installation record will be permanently deleted."- onChange={(isOpen) => handlePopUpToggle("deleteInstallation", isOpen)}- deleteKey="confirm"- onDeleteApproved={handleDelete}+ description="This action cannot be undone. The installation record will be permanently deleted."+ onOpenChange={(isOpen) => handlePopUpToggle("deleteInstallation", isOpen)}+ confirmKey="confirm"+ onConfirm={handleDelete}/></div>);