Skip to content

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

Merge remote-tracking branch 'origin/main' into PKI-441

Carlos Monastyrskie2064787d3ba
diff --cc backend/CLAUDE.md
index 79a497be9f,2ec95f3f06..e609ea09ad
--- a/backend/CLAUDE.md
+++ b/backend/CLAUDE.md
@@@ -977,10 -1034,12 +1034,14 @@@ 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`.
+
+ **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.
+
**Gateways: there is only one generation.** Gateway v1 (`ee/services/gateway`, `lib/gateway`, the QUIC
transport over `@infisical/quic`, and `/api/v1/gateways`) is gone; `gateway-v2` and `gateway-pool` are the
whole story, and `lib/gateway-v2/types.ts` owns `GatewayProxyProtocol` / `GatewayHttpProxyActions`. What
diff --cc docs/docs.json
index 909c72514a,5e9034ea94..adf8b5fb90
--- a/docs/docs.json
+++ b/docs/docs.json
@@@ -576,22 -527,41 +527,42 @@@
}
]
},
+ "documentation/platform/pki/applications/certificates",
+ "documentation/platform/pki/applications/approvals",
+ "documentation/platform/pki/applications/certificate-renewal",
{
- "group": "Code signing",
+ "group": "Certificate syncs",
+ "root": "documentation/platform/pki/applications/certificate-syncs/overview",
"pages": [
- "documentation/platform/pki/code-signing/overview",
- "documentation/platform/pki/code-signing/signers",
- "documentation/platform/pki/code-signing/approvals",
- "documentation/platform/pki/code-signing/pkcs11-module",
- "documentation/platform/pki/code-signing/windows-ksp"
+ "documentation/platform/pki/applications/certificate-syncs/aws-certificate-manager",
+ "documentation/platform/pki/applications/certificate-syncs/aws-elastic-load-balancer",
+ "documentation/platform/pki/applications/certificate-syncs/aws-secrets-manager",
+ "documentation/platform/pki/applications/certificate-syncs/azure-key-vault",
+ "documentation/platform/pki/applications/certificate-syncs/chef",
+ "documentation/platform/pki/applications/certificate-syncs/cloudflare-custom-certificate",
+ "documentation/platform/pki/applications/certificate-syncs/f5-big-ip",
+ "documentation/platform/pki/applications/certificate-syncs/netscaler",
+ "documentation/platform/pki/applications/certificate-syncs/palo-alto-networks",
+ "documentation/platform/pki/applications/certificate-syncs/palo-alto-networks-ssl-tls-profile",
+ "documentation/platform/pki/applications/certificate-syncs/kemp-loadmaster",
+ "documentation/platform/pki/applications/certificate-syncs/linux-server",
+ "documentation/platform/pki/applications/certificate-syncs/windows-server",
+ "documentation/platform/pki/applications/certificate-syncs/nutanix-prism-central",
+ "documentation/platform/pki/applications/certificate-syncs/gcp-certificate-manager"
]
- },
+ }
+ ]
+ },
+ {
+ "group": "Monitoring",
+ "pages": [
+ "documentation/platform/pki/monitoring/certificate-inventory",
{
- "group": "Certificate discovery",
+ "group": "Discovery",
+ "root": "documentation/platform/pki/discovery/overview",
"pages": [
- "documentation/platform/pki/discovery/overview",
- "documentation/platform/pki/discovery/network"
+ "documentation/platform/pki/discovery/network",
+ "documentation/platform/pki/discovery/linux-server"
]
},
{
diff --cc frontend/src/hooks/api/appConnections/types/index.ts
index 3cd4282fb0,d9c87af033..3df2a91585
--- a/frontend/src/hooks/api/appConnections/types/index.ts
+++ b/frontend/src/hooks/api/appConnections/types/index.ts
@@@ -257,12 -267,11 +267,14 @@@ export type TAppConnection
| TPowerDnsConnection
| TSpaceliftConnection
| TDaytonaConnection
- | TStripeConnection;
+ | TStripeConnection
+ | TKeeperConnection
+ | THpeIloConnection;
-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 page
diff --cc frontend/src/pages/cert-manager/DiscoveryPage/components/DiscoveryJobsTab.tsx
index ef45e767a7,f32b892407..1fcb74b03e
--- a/frontend/src/pages/cert-manager/DiscoveryPage/components/DiscoveryJobsTab.tsx
+++ b/frontend/src/pages/cert-manager/DiscoveryPage/components/DiscoveryJobsTab.tsx
@@@ -3,8 -3,12 +3,11 @@@ import { useNavigate } from "@tanstack/
import { format } from "date-fns";
import { MoreHorizontalIcon, PlusIcon, RefreshCwIcon, SearchIcon } from "lucide-react";
- import { UpgradePlanModal } from "@app/components/license/UpgradePlanModal";
+ import {
+ CertificateDiscoveryUpgradeIntent,
+ useUpgradeGate
+ } from "@app/components/license/UpgradeGate";
import { ProjectPermissionCan } from "@app/components/permissions";
-import { HoverCard, HoverCardContent, HoverCardTrigger, Tag } from "@app/components/v2";
import {
Button,
Card,
diff --cc frontend/src/pages/cert-manager/InstallationDetailsByIDPage/InstallationDetailsByIDPage.tsx
index 90edba920e,7e150f3510..551a43a343
--- a/frontend/src/pages/cert-manager/InstallationDetailsByIDPage/InstallationDetailsByIDPage.tsx
+++ b/frontend/src/pages/cert-manager/InstallationDetailsByIDPage/InstallationDetailsByIDPage.tsx
@@@ -51,28 -27,14 +51,29 @@@ import { InstallationCertificatesSectio
const Page = () => {
const { currentProject } = useProject();
+ const canRescanInstallation = useCanRescanPkiInstallations();
+ const projectId = currentProject.id;
const { currentOrg } = useOrganization();
const navigate = useNavigate();
- const { installationId, projectId, orgId } = useParams({
- from: "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/discovery/installations/$installationId"
+ const { installationId, orgId } = useParams({
+ from: "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/cert-manager/_cert-manager-layout/discovery/installations/$installationId"
});
- const { data: installation, isLoading } = useGetPkiInstallation({ installationId });
+ const [pendingRescan, setPendingRescan] = useState<{
+ previousCheckedAt?: string;
+ startedAt: number;
+ } | null>(null);
+ const { data: installation, isLoading } = useGetPkiInstallation(
+ { installationId },
+ {
+ refetchInterval: (current) =>
+ pendingRescan &&
+ current?.metadata?.lastCheckedAt === pendingRescan.previousCheckedAt &&
+ Date.now() - pendingRescan.startedAt < RESCAN_POLL_TIMEOUT_MS
+ ? RESCAN_POLL_INTERVAL_MS
+ : false
+ }
+ );
const deleteInstallation = useDeletePkiInstallation();
const { popUp, handlePopUpOpen, handlePopUpClose, handlePopUpToggle } = usePopUp([
diff --cc frontend/src/pages/cert-manager/InstallationDetailsByIDPage/components/InstallationCertificatesSection.tsx
index 6be8dd3c74,2707db67fb..aac6751181
--- a/frontend/src/pages/cert-manager/InstallationDetailsByIDPage/components/InstallationCertificatesSection.tsx
+++ b/frontend/src/pages/cert-manager/InstallationDetailsByIDPage/components/InstallationCertificatesSection.tsx
@@@ -28,13 -27,12 +28,13 @@@ import { getCertValidUntilBadgeDetails
type Props = {
certificates: TPkiInstallationCert[];
+ emptyState?: ReactNode;
};
-export const InstallationCertificatesSection = ({ certificates }: Props) => {
+export const InstallationCertificatesSection = ({ certificates, emptyState }: Props) => {
const navigate = useNavigate();
- const { orgId, projectId } = useParams({
- from: "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/discovery/installations/$installationId"
+ const { orgId } = useParams({
+ from: "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/cert-manager/_cert-manager-layout/discovery/installations/$installationId"
});
return (