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
feat: disable creation of proxied services (#9070)
varonixd9799b72730a
diff --git a/backend/src/ee/routes/v1/proxied-service-router.ts b/backend/src/ee/routes/v1/proxied-service-router.tsindex ae78913f48..6bd7192a08 100644--- a/backend/src/ee/routes/v1/proxied-service-router.ts+++ b/backend/src/ee/routes/v1/proxied-service-router.ts@@ -1,7 +1,6 @@import { z } from "zod";import { EventType } from "@app/ee/services/audit-log/audit-log-types";-import { ProxiedServiceCredentialRole } from "@app/ee/services/proxied-service/proxied-service-enums";import {CredentialsArraySchema,hostPatternSchema,@@ -12,21 +11,20 @@ import {import { ApiDocsTags, PROXIED_SERVICES } from "@app/lib/api-docs";import { readLimit, writeLimit } from "@app/server/config/rateLimiter";import { slugSchema } from "@app/server/lib/schemas";-import { getTelemetryDistinctId } from "@app/server/lib/telemetry";import { verifyAuth } from "@app/server/plugins/auth/verify-auth";import { AuthMode } from "@app/services/auth/auth-type";-import { PostHogEventTypes } from "@app/services/telemetry/telemetry-types";export const registerProxiedServiceRouter = async (server: FastifyZodProvider) => {server.route({method: "POST",url: "/",config: { rateLimit: writeLimit },+onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN, AuthMode.OAUTH]),schema: {hide: false,+ deprecated: true,tags: [ApiDocsTags.ProxiedServices],- description: "Create a proxied service",body: z.object({projectId: z.string().trim().min(1).describe(PROXIED_SERVICES.CREATE.projectId),environment: z.string().trim().min(1).describe(PROXIED_SERVICES.CREATE.environment),@@ -40,58 +38,8 @@ export const registerProxiedServiceRouter = async (server: FastifyZodProvider) =200: z.object({ service: ProxiedServiceWithCredentialsSchema })}},- handler: async (req) => {- const service = await server.services.proxiedService.create(req.body, req.permission);- await server.services.auditLog.createAuditLog({- ...req.auditLogInfo,- projectId: req.body.projectId,- event: {- type: EventType.CREATE_PROXIED_SERVICE,- metadata: {- proxiedServiceId: service.id,- name: service.name,- hostPattern: service.hostPattern,- secretKeys: [- ...new Set(req.body.credentials.map((c) => c.secretKey).filter((k): k is string => Boolean(k)))- ],- dynamicSecretNames: [- ...new Set(req.body.credentials.map((c) => c.dynamicSecretName).filter((n): n is string => Boolean(n)))- ],- environment: req.body.environment,- secretPath: req.body.secretPath- }- }- });-- void server.services.telemetry- .sendPostHogEvents({- event: PostHogEventTypes.ProxiedServiceCreated,- distinctId: getTelemetryDistinctId(req),- organizationId: req.permission.orgId,- properties: {- projectId: req.body.projectId,- headerRewriteCount: req.body.credentials.filter(- (c) => c.role === ProxiedServiceCredentialRole.HeaderRewrite- ).length,- substitutionCount: req.body.credentials.filter(- (c) => c.role === ProxiedServiceCredentialRole.CredentialSubstitution- ).length,- substitutionSurfaces: [- ...new Set(- req.body.credentials- .filter((c) => c.role === ProxiedServiceCredentialRole.CredentialSubstitution)- .flatMap((c) => c.substitutionSurfaces ?? [])- )- ].sort(),- hostPatternCount: req.body.hostPattern.split(",").filter((p) => p.trim()).length,- usesDynamicSecret: req.body.credentials.some((c) => Boolean(c.dynamicSecretName)),- usesBasicAuth: req.body.credentials.some((c) => Boolean(c.headerPurpose)),- isEnabled: service.isEnabled- }- })- .catch(() => {});-- return { service };+ handler: async () => {+ return server.services.proxiedService.create();}});@@ -192,7 +140,9 @@ export const registerProxiedServiceRouter = async (server: FastifyZodProvider) =hide: false,tags: [ApiDocsTags.ProxiedServices],description: "Update a proxied service",- params: z.object({ serviceId: z.string().uuid().describe(PROXIED_SERVICES.UPDATE.serviceId) }),+ params: z.object({+ serviceId: z.string().uuid().describe(PROXIED_SERVICES.UPDATE.serviceId)+ }),body: z.object({name: slugSchema({ field: "name" }).optional().describe(PROXIED_SERVICES.UPDATE.name),hostPattern: hostPatternSchema.optional().describe(PROXIED_SERVICES.UPDATE.hostPattern),@@ -262,7 +212,9 @@ export const registerProxiedServiceRouter = async (server: FastifyZodProvider) =hide: false,tags: [ApiDocsTags.ProxiedServices],description: "Delete a proxied service",- params: z.object({ serviceId: z.string().uuid().describe(PROXIED_SERVICES.DELETE.serviceId) }),+ params: z.object({+ serviceId: z.string().uuid().describe(PROXIED_SERVICES.DELETE.serviceId)+ }),response: {200: z.object({ service: SanitizedProxiedServiceBaseSchema })}diff --git a/backend/src/ee/services/proxied-service/proxied-service-service.ts b/backend/src/ee/services/proxied-service/proxied-service-service.tsindex 8a64e0f581..69e0e7561a 100644--- a/backend/src/ee/services/proxied-service/proxied-service-service.ts+++ b/backend/src/ee/services/proxied-service/proxied-service-service.ts@@ -24,7 +24,6 @@ import { BROKERABLE_DYNAMIC_SECRETS } from "./proxied-service-brokerable-outputsimport { TProxiedServiceCredentialDALFactory } from "./proxied-service-credential-dal";import { TProxiedServiceDALFactory } from "./proxied-service-dal";import {- TCreateProxiedServiceDTO,TDeleteProxiedServiceDTO,TGetProxiedServiceByIdDTO,TGetProxiedServiceByNameDTO,@@ -164,7 +163,10 @@ export const proxiedServiceServiceFactory = ({const $findReferencedDynamicSecrets = async (folderId: string, credentials: TCredentialRef[]) => {const names = [...new Set(credentials.map((c) => c.dynamicSecretName).filter((n): n is string => Boolean(n)))];if (!names.length) return { names, byName: new Map<string, TDynamicSecretWithMetadata>() };- const found = await dynamicSecretDAL.findWithMetadata({ folderId, $in: { name: names } });+ const found = await dynamicSecretDAL.findWithMetadata({+ folderId,+ $in: { name: names }+ });return { names, byName: new Map(found.map((ds) => [ds.name, ds])) };};@@ -201,7 +203,11 @@ export const proxiedServiceServiceFactory = ({ForbiddenError.from(permission).throwUnlessCan(ProjectPermissionDynamicSecretActions.Lease,- subject(ProjectPermissionSub.DynamicSecrets, { environment, secretPath, metadata: ds.metadata })+ subject(ProjectPermissionSub.DynamicSecrets, {+ environment,+ secretPath,+ metadata: ds.metadata+ }));const brokerable = BROKERABLE_DYNAMIC_SECRETS[ds.type as DynamicSecretProviders];@@ -234,7 +240,11 @@ export const proxiedServiceServiceFactory = ({const metadata = byName.get(cred.dynamicSecretName)?.metadata ?? [];const callerCanLease = permission.can(ProjectPermissionDynamicSecretActions.Lease,- subject(ProjectPermissionSub.DynamicSecrets, { environment, secretPath, metadata })+ subject(ProjectPermissionSub.DynamicSecrets, {+ environment,+ secretPath,+ metadata+ }));return { ...cred, callerCanLease };});@@ -243,64 +253,17 @@ export const proxiedServiceServiceFactory = ({const $resolveSecretPath = async (projectId: string, folderId: string) => {const [folderWithPath] = await folderDAL.findSecretPathByFolderIds(projectId, [folderId]);if (!folderWithPath) {- throw new NotFoundError({ message: "Could not resolve the folder for this proxied service" });+ throw new NotFoundError({+ message: "Could not resolve the folder for this proxied service"+ });}return prefixWithSlash(removeTrailingSlash(folderWithPath.path));};- const create = async (- { projectId, environment, secretPath, name, hostPattern, isEnabled, credentials }: TCreateProxiedServiceDTO,- actor: OrgServiceActor- ) => {- await $checkLicense(actor.orgId);- const canonicalPath = prefixWithSlash(removeTrailingSlash(secretPath));-- const { permission } = await permissionService.getProjectPermission({- actor: actor.type,- actorId: actor.id,- actorAuthMethod: actor.authMethod,- actorOrgId: actor.orgId,- actionProjectType: ActionProjectType.SecretManager,- projectId- });- ForbiddenError.from(permission).throwUnlessCan(- ProjectPermissionProxiedServiceActions.Create,- subject(ProjectPermissionSub.ProxiedServices, { environment, secretPath: canonicalPath })- );-- const folder = await folderDAL.findBySecretPath(projectId, environment, secretPath);- if (!folder) {- throw new BadRequestError({- message: `Could not find folder with path "${secretPath}" in environment "${environment}"`- });- }-- await $assertReferencedSecretsReadable(actor, projectId, environment, canonicalPath, credentials);- await $assertReferencedDynamicSecretsLeasable(- permission,- actor.orgId,- projectId,- environment,- canonicalPath,- folder.id,- credentials- );-- const existing = await proxiedServiceDAL.findOne({ folderId: folder.id, name });- if (existing) {- throw new BadRequestError({ message: `A proxied service named "${name}" already exists in this folder` });- }-- return proxiedServiceDAL.transaction(async (tx) => {- const service = await proxiedServiceDAL.create(- { name, hostPattern, isEnabled: isEnabled ?? true, folderId: folder.id },- tx- );- const credentialRows = credentials.map((c) => toCredentialRow(service.id, c));- const insertedCredentials = credentialRows.length- ? await proxiedServiceCredentialDAL.insertMany(credentialRows, tx)- : [];- return { ...service, credentials: insertedCredentials };+ const create = async () => {+ throw new BadRequestError({+ message:+ "Proxied services can no longer be created. Agent Proxy is moving to Agent Vault: set up access to this service in Agent Vault instead. Existing proxied services keep working and can still be edited or deleted."});};@@ -331,7 +294,9 @@ export const proxiedServiceServiceFactory = ({const project = await projectDAL.findById(projectId);if (!project) {- throw new NotFoundError({ message: `Project with ID "${projectId}" not found` });+ throw new NotFoundError({+ message: `Project with ID "${projectId}" not found`+ });}const folder = await folderDAL.findBySecretPath(projectId, environment, secretPath);@@ -366,7 +331,9 @@ export const proxiedServiceServiceFactory = ({await $checkLicense(actor.orgId);const service = await proxiedServiceDAL.findByIdWithScope(serviceId);if (!service) {- throw new NotFoundError({ message: `Proxied service with ID "${serviceId}" not found` });+ throw new NotFoundError({+ message: `Proxied service with ID "${serviceId}" not found`+ });}const { permission } = await permissionService.getProjectPermission({@@ -386,7 +353,9 @@ export const proxiedServiceServiceFactory = ({const canRead = permission.can(ProjectPermissionProxiedServiceActions.Read, scopedSubject);const canProxy = permission.can(ProjectPermissionProxiedServiceActions.Proxy, scopedSubject);if (!canRead && !canProxy) {- throw new ForbiddenRequestError({ message: "You do not have permission to access this proxied service" });+ throw new ForbiddenRequestError({+ message: "You do not have permission to access this proxied service"+ });}const credentials = await proxiedServiceCredentialDAL.findByServiceIds([service.id]);@@ -423,17 +392,26 @@ export const proxiedServiceServiceFactory = ({const canRead = permission.can(ProjectPermissionProxiedServiceActions.Read, scopedSubject);const canProxy = permission.can(ProjectPermissionProxiedServiceActions.Proxy, scopedSubject);if (!canRead && !canProxy) {- throw new ForbiddenRequestError({ message: "You do not have permission to access this proxied service" });+ throw new ForbiddenRequestError({+ message: "You do not have permission to access this proxied service"+ });}const folder = await folderDAL.findBySecretPath(projectId, environment, secretPath);if (!folder) {- throw new NotFoundError({ message: `Proxied service "${name}" not found` });+ throw new NotFoundError({+ message: `Proxied service "${name}" not found`+ });}- const service = await proxiedServiceDAL.findOne({ folderId: folder.id, name });+ const service = await proxiedServiceDAL.findOne({+ folderId: folder.id,+ name+ });if (!service) {- throw new NotFoundError({ message: `Proxied service "${name}" not found` });+ throw new NotFoundError({+ message: `Proxied service "${name}" not found`+ });}const credentials = await proxiedServiceCredentialDAL.findByServiceIds([service.id]);@@ -454,7 +432,9 @@ export const proxiedServiceServiceFactory = ({await $checkLicense(actor.orgId);const service = await proxiedServiceDAL.findByIdWithScope(serviceId);if (!service) {- throw new NotFoundError({ message: `Proxied service with ID "${serviceId}" not found` });+ throw new NotFoundError({+ message: `Proxied service with ID "${serviceId}" not found`+ });}const { permission } = await permissionService.getProjectPermission({@@ -475,9 +455,14 @@ export const proxiedServiceServiceFactory = ({);if (name && name !== service.name) {- const conflicting = await proxiedServiceDAL.findOne({ folderId: service.folderId, name });+ const conflicting = await proxiedServiceDAL.findOne({+ folderId: service.folderId,+ name+ });if (conflicting) {- throw new BadRequestError({ message: `A proxied service named "${name}" already exists in this folder` });+ throw new BadRequestError({+ message: `A proxied service named "${name}" already exists in this folder`+ });}}@@ -541,7 +526,9 @@ export const proxiedServiceServiceFactory = ({await $checkLicense(actor.orgId);const service = await proxiedServiceDAL.findByIdWithScope(serviceId);if (!service) {- throw new NotFoundError({ message: `Proxied service with ID "${serviceId}" not found` });+ throw new NotFoundError({+ message: `Proxied service with ID "${serviceId}" not found`+ });}const { permission } = await permissionService.getProjectPermission({@@ -563,7 +550,11 @@ export const proxiedServiceServiceFactory = ({await proxiedServiceDAL.deleteById(serviceId);const { environmentSlug, ...rest } = service;- return { ...rest, environment: environmentSlug, secretPath: resolvedSecretPath };+ return {+ ...rest,+ environment: environmentSlug,+ secretPath: resolvedSecretPath+ };};const getDashboardProxiedServiceCount = async (@@ -660,7 +651,9 @@ export const proxiedServiceServiceFactory = ({await $checkLicense(actor.orgId);const service = await proxiedServiceDAL.findByIdWithScope(serviceId);if (!service) {- throw new NotFoundError({ message: `Proxied service with ID "${serviceId}" not found` });+ throw new NotFoundError({+ message: `Proxied service with ID "${serviceId}" not found`+ });}const { permission } = await permissionService.getProjectPermission({diff --git a/backend/src/ee/services/proxied-service/proxied-service-types.ts b/backend/src/ee/services/proxied-service/proxied-service-types.tsindex 12ac446aaa..e63074cf35 100644--- a/backend/src/ee/services/proxied-service/proxied-service-types.ts+++ b/backend/src/ee/services/proxied-service/proxied-service-types.ts@@ -19,16 +19,6 @@ export type TProxiedServiceCredentialInput = {substitutionSurfaces?: ProxiedServiceSubstitutionSurface[] | null;};-export type TCreateProxiedServiceDTO = {- projectId: string;- environment: string;- secretPath: string;- name: string;- hostPattern: string;- isEnabled?: boolean;- credentials: TProxiedServiceCredentialInput[];-};-export type TUpdateProxiedServiceDTO = {serviceId: string;name?: string;diff --git a/backend/src/services/telemetry/telemetry-types.ts b/backend/src/services/telemetry/telemetry-types.tsindex 2f5e37ed75..dc392bde77 100644--- a/backend/src/services/telemetry/telemetry-types.ts+++ b/backend/src/services/telemetry/telemetry-types.ts@@ -23,7 +23,6 @@ import {UserActor} from "@app/ee/services/audit-log/audit-log-types";import { PamSessionEndReason } from "@app/ee/services/pam/pam-enums";-import { ProxiedServiceSubstitutionSurface } from "@app/ee/services/proxied-service/proxied-service-enums";import { TSettableAuthMethod } from "@app/ee/services/resource-auth-method/resource-auth-method-fns";import { SecretRotation } from "@app/ee/services/secret-rotation-v2/secret-rotation-v2-enums";import {@@ -316,9 +315,6 @@ export enum PostHogEventTypes {BillingProductActivated = "Billing Product Activated",BillingPlanUpgraded = "Billing Plan Upgraded",- // Agent Proxy- ProxiedServiceCreated = "Proxied Service Created",-// Agent VaultAgentVaultAccessBundleCreated = "Agent Vault Access Bundle Created",AgentVaultAccessBundleUpdated = "Agent Vault Access Bundle Updated",@@ -2402,20 +2398,6 @@ export type TSecretRotationV2FailedEvent = {};};-export type TProxiedServiceCreatedEvent = {- event: PostHogEventTypes.ProxiedServiceCreated;- properties: {- projectId: string;- headerRewriteCount: number;- substitutionCount: number;- substitutionSurfaces: ProxiedServiceSubstitutionSurface[];- hostPatternCount: number;- usesDynamicSecret: boolean;- usesBasicAuth: boolean;- isEnabled: boolean;- };-};-export type TBillingCheckoutSessionCreatedEvent = {event: PostHogEventTypes.BillingCheckoutSessionCreated;properties: {@@ -2960,7 +2942,6 @@ export type TPostHogEvent = {| TSecretApprovalPolicyUpdatedEvent| TAccessApprovalPolicyUpdatedEvent| TSecretRotationV2FailedEvent- | TProxiedServiceCreatedEvent| TBillingCheckoutSessionCreatedEvent| TBillingProductActivatedEvent| TBillingPlanUpgradedEventdiff --git a/docs/api-reference/endpoints/proxied-services/create.mdx b/docs/api-reference/endpoints/proxied-services/create.mdxdeleted file mode 100644index d1286c6b52..0000000000--- a/docs/api-reference/endpoints/proxied-services/create.mdx+++ /dev/null@@ -1,4 +0,0 @@-----title: "Create"-openapi: "POST /api/v1/proxied-services"----diff --git a/docs/api-reference/endpoints/proxied-services/delete.mdx b/docs/api-reference/endpoints/proxied-services/delete.mdxdeleted file mode 100644index 4cf8e1171c..0000000000--- a/docs/api-reference/endpoints/proxied-services/delete.mdx+++ /dev/null@@ -1,4 +0,0 @@-----title: "Delete"-openapi: "DELETE /api/v1/proxied-services/{serviceId}"----diff --git a/docs/api-reference/endpoints/proxied-services/get-by-id.mdx b/docs/api-reference/endpoints/proxied-services/get-by-id.mdxdeleted file mode 100644index 7cea5ec638..0000000000--- a/docs/api-reference/endpoints/proxied-services/get-by-id.mdx+++ /dev/null@@ -1,4 +0,0 @@-----title: "Get by ID"-openapi: "GET /api/v1/proxied-services/{serviceId}"----diff --git a/docs/api-reference/endpoints/proxied-services/get-by-name.mdx b/docs/api-reference/endpoints/proxied-services/get-by-name.mdxdeleted file mode 100644index 306f68f5bc..0000000000--- a/docs/api-reference/endpoints/proxied-services/get-by-name.mdx+++ /dev/null@@ -1,4 +0,0 @@-----title: "Get by name"-openapi: "GET /api/v1/proxied-services/slug/{name}"----diff --git a/docs/api-reference/endpoints/proxied-services/list.mdx b/docs/api-reference/endpoints/proxied-services/list.mdxdeleted file mode 100644index 40d31f4df0..0000000000--- a/docs/api-reference/endpoints/proxied-services/list.mdx+++ /dev/null@@ -1,4 +0,0 @@-----title: "List"-openapi: "GET /api/v1/proxied-services"----diff --git a/docs/api-reference/endpoints/proxied-services/update.mdx b/docs/api-reference/endpoints/proxied-services/update.mdxdeleted file mode 100644index 6a0ca74b44..0000000000--- a/docs/api-reference/endpoints/proxied-services/update.mdx+++ /dev/null@@ -1,4 +0,0 @@-----title: "Update"-openapi: "PATCH /api/v1/proxied-services/{serviceId}"----diff --git a/docs/docs.json b/docs/docs.jsonindex a38267f89c..bbc7e2d55c 100644--- a/docs/docs.json+++ b/docs/docs.json@@ -2973,17 +2973,6 @@"api-reference/endpoints/dynamic-secrets/get-lease"]},- {- "group": "Proxied services",- "pages": [- "api-reference/endpoints/proxied-services/create",- "api-reference/endpoints/proxied-services/update",- "api-reference/endpoints/proxied-services/delete",- "api-reference/endpoints/proxied-services/get-by-id",- "api-reference/endpoints/proxied-services/get-by-name",- "api-reference/endpoints/proxied-services/list"- ]- },{"group": "Secret rotations","pages": [diff --git a/docs/documentation/platform/agent-proxy/activity-logs.mdx b/docs/documentation/platform/agent-proxy/activity-logs.mdxindex 1b770604cb..38a685e969 100644--- a/docs/documentation/platform/agent-proxy/activity-logs.mdx+++ b/docs/documentation/platform/agent-proxy/activity-logs.mdx@@ -4,6 +4,10 @@ sidebarTitle: "Activity logs"description: "See what the agent proxy brokered on every request."---+import AgentProxyMovedCallout from "/snippets/agent-proxy-moved-callout.mdx";++<AgentProxyMovedCallout />+Activity logs record what the agent proxy did with each request: which agent called which host, and which credential was applied. Together they form an audit trail of every credential your agents used, and a way to spot blocked or failed requests. Both setups produce the same records; only where they're written differs, so [Where the records go](#where-the-records-go) has a section for each.<Note>diff --git a/docs/documentation/platform/agent-proxy/local-agent-proxy.mdx b/docs/documentation/platform/agent-proxy/local-agent-proxy.mdxindex 3dbe156902..11f99cf43b 100644--- a/docs/documentation/platform/agent-proxy/local-agent-proxy.mdx+++ b/docs/documentation/platform/agent-proxy/local-agent-proxy.mdx@@ -4,6 +4,10 @@ sidebarTitle: "Local proxy"description: "Run an agent on your own computer, sandboxed, with a proxy that starts and stops alongside it."---+import AgentProxyMovedCallout from "/snippets/agent-proxy-moved-callout.mdx";++<AgentProxyMovedCallout />+A local proxy runs an agent on your own computer. `agent-proxy run` starts a proxy alongside your agent and stops it when the agent exits. It all happens on the one machine, with the agent sandboxed away from your credentials:```bashdiff --git a/docs/documentation/platform/agent-proxy/overview.mdx b/docs/documentation/platform/agent-proxy/overview.mdxindex 3b4ea59145..16be9da341 100644--- a/docs/documentation/platform/agent-proxy/overview.mdx+++ b/docs/documentation/platform/agent-proxy/overview.mdx@@ -4,11 +4,9 @@ sidebarTitle: "Overview"description: "Give AI agents and untrusted code execution environments access without handing over your secrets."----<Info>- For new setups, we recommend using [Agent Vault](/documentation/platform/agent-vault/overview). Like Agent Proxy, Agent Vault gives AI agents access to the services they call without handing the agents your credentials.-- Use Agent Proxy only if you need a sandboxed [local proxy](/documentation/platform/agent-proxy/local-agent-proxy) that runs on your own computer, or if you want the proxy to apply a [dynamic secret](/documentation/platform/dynamic-secrets/overview).-</Info>+import AgentProxyMovedCallout from "/snippets/agent-proxy-moved-callout.mdx";++<AgentProxyMovedCallout />The **Infisical Agent Proxy** is a credential broker for AI agents and untrusted code execution environments. It sits between your AI agents and the APIs they call including LLM providers, GitHub, Slack, and more.@@ -44,7 +42,7 @@ Two things, and they're the same no matter where your agent runs:1. Add the credential as a secret in Infisical; this can be a static secret or a [dynamic secret](/documentation/platform/dynamic-secrets/overview).-2. Configure a [proxied service](/documentation/platform/agent-proxy/proxied-services). This defines the external service (`api.anthropic.com`, `api.github.com`, `slack.com`, and so on) that Agent Proxy brokers access to, and how the credential is applied to requests bound for it.+2. A [proxied service](/documentation/platform/agent-proxy/proxied-services), which defines the external service (`api.anthropic.com`, `api.github.com`, `slack.com`, and so on) that Agent Proxy brokers access to, and how the credential is applied to requests bound for it.Then you route your agent's traffic through Agent Proxy. The agent needs no code changes: the [Infisical CLI](/cli/overview) launches it with its HTTP clients pointed at the proxy, and the proxy applies the real credential to matching requests on the way out.@@ -73,6 +71,11 @@ The Quickstart starts with the parts both need, then hands you this choice at th## Next steps-<Card title="Set Up Credentials" icon="rocket" href="/documentation/platform/agent-proxy/quickstart/credentials">- Start the quickstart: add the secret and the proxied service, then pick where the proxy runs.-</Card>+<CardGroup cols={2}>+ <Card title="Quickstart" icon="rocket" href="/documentation/platform/agent-vault/quickstart">+ Store your credentials in an access bundle and connect the agents that use them.+ </Card>+ <Card title="Why use Agent Vault?" icon="shield" href="/documentation/platform/agent-vault/why-agent-vault">+ Learn more about the problem Agent Vault addresses.+ </Card>+</CardGroup>diff --git a/docs/documentation/platform/agent-proxy/proxied-services.mdx b/docs/documentation/platform/agent-proxy/proxied-services.mdxindex 57571fb9e6..45c6832b7c 100644--- a/docs/documentation/platform/agent-proxy/proxied-services.mdx+++ b/docs/documentation/platform/agent-proxy/proxied-services.mdx@@ -3,11 +3,13 @@ title: "Proxied services"description: "Define how the agent proxy applies credentials to traffic bound for an external service."----A proxied service tells the agent proxy how to apply credentials to traffic bound for an external service. It lives in a folder alongside your secrets, defines which hosts it covers, and applies wherever your agent runs: on your own computer, or behind a proxy you deploy.+import AgentProxyMovedCallout from "/snippets/agent-proxy-moved-callout.mdx";++<AgentProxyMovedCallout />-To create one, open a folder in the secrets dashboard, select **Add New**, and select **Add Proxied Service**.+A proxied service tells the agent proxy how to apply credentials to traffic bound for an external service. It lives in a folder alongside your secrets, defines which hosts it covers, and applies wherever your agent runs: on your own computer, or behind a proxy you deploy.-+To edit or delete an existing proxied service, open its folder in the secrets dashboard and select **Edit** or **Delete** on the row for the service.A service applies each secret through a [header rewrite](#header-rewrites), a [secret substitution](#secret-substitution), or both; each is covered in its own section below.@@ -133,18 +135,11 @@ How the agent proxy handles the lease:## Example: API request-Proxied services can also be managed via the [API](/api-reference/endpoints/proxied-services/create). For example, creating the Telegram service described above:-```bash-curl -X POST https://app.infisical.com/api/v1/proxied-services \+curl -X PATCH https://app.infisical.com/api/v1/proxied-services/<service-id> \-H "Authorization: Bearer $INFISICAL_TOKEN" \-H "Content-Type: application/json" \-d '{- "projectId": "<project-id>",- "environment": "dev",- "secretPath": "/coding-agent",- "name": "telegram-bot-api",- "hostPattern": "api.telegram.org","credentials": [{"secretKey": "TELEGRAM_BOT_TOKEN",diff --git a/docs/documentation/platform/agent-proxy/quickstart/credentials.mdx b/docs/documentation/platform/agent-proxy/quickstart/credentials.mdxindex c1d3f08f07..7f18f379a1 100644--- a/docs/documentation/platform/agent-proxy/quickstart/credentials.mdx+++ b/docs/documentation/platform/agent-proxy/quickstart/credentials.mdx@@ -1,10 +1,14 @@---title: "Set up credentials"sidebarTitle: "Set up credentials"-description: "Add the secret and the proxied service the Agent Proxy brokers, then pick where the proxy runs."+description: "Add the secret the Agent Proxy brokers, check for its proxied service, then pick where the proxy runs."----Every Agent Proxy setup starts with the same two things in Infisical: a secret holding the real credential, and a proxied service saying which host that credential is applied to. This page creates both, then points you at the setup that matches where your agent runs.+import AgentProxyMovedCallout from "/snippets/agent-proxy-moved-callout.mdx";++<AgentProxyMovedCallout />++Every Agent Proxy setup starts with the same two things in Infisical: a secret holding the real credential, and a proxied service saying which host that credential is applied to. This page adds the secret and checks that the folder has a proxied service, then points you at the setup that matches where your agent runs.GitHub is this guide's running example. Any other API works the same way, and the steps are identical.@@ -26,43 +30,9 @@ Then, in your Infisical project, create a folder for the agent (for example `/co-## 2. Create a proxied service--A proxied service maps a host to the secret the proxy applies. In the same folder, select **Add New** > **Add Proxied Service**, then work through the steps:----<Steps>- <Step title="Pick the GitHub template">- The template fills everything in for you: the host `api.github.com` and a **Secret Substitution** rule that hands the agent a realistic `ghp_…` placeholder and swaps in the real token on the way out.-- - </Step>- <Step title="Details">- Keep the service name `github` and the host pattern `api.github.com`.-- - </Step>- <Step title="Header Rewrites">- This step is skipped automatically for GitHub. The token does travel in the `Authorization` header, but this template handles that with **Secret Substitution** (next step): the agent itself puts a placeholder in the header, and the proxy swaps it for the real token.- </Step>- <Step title="Secret Substitution">- Select `GITHUB_PAT` as the secret holding the real value.-- Here is how the pieces fit together. When your agent connects, it gets an environment variable `GITHUB_TOKEN` (the placeholder name the GitHub template uses) set to the fake `ghp_…` placeholder. The agent uses it like any GitHub token and sends `Authorization: Bearer <placeholder>`. As the request passes through the proxy, the placeholder is replaced with the real value of your `GITHUB_PAT` secret. The template scopes this swap to headers, since that is where GitHub expects the token; a substitution can also target the URL path, query, or body.-- - </Step>- <Step title="Review and create">- Double-check the host pattern and the substitution rule, then select **Create Proxied Service**.-- - </Step>-</Steps>+## 2. Check for a proxied service-<Note>- Not on the template list? Pick **Custom** and configure a [header rewrite or secret substitution](/documentation/platform/agent-proxy/proxied-services) by hand.-</Note>+If the folder already has a proxied service for `api.github.com`, continue to [pick where the proxy runs](#3-pick-where-the-proxy-runs). If it doesn't, set up your agent with the [Agent Vault quickstart](/documentation/platform/agent-vault/quickstart) instead, because you can't create new proxied services.## 3. Pick where the proxy runsdiff --git a/docs/documentation/platform/agent-proxy/quickstart/local-proxy.mdx b/docs/documentation/platform/agent-proxy/quickstart/local-proxy.mdxindex 8b682dc105..1ae34958f8 100644--- a/docs/documentation/platform/agent-proxy/quickstart/local-proxy.mdx+++ b/docs/documentation/platform/agent-proxy/quickstart/local-proxy.mdx@@ -4,6 +4,10 @@ sidebarTitle: "Local proxy"description: "Run an agent on your own computer, sandboxed, with a proxy that starts and stops alongside it."---+import AgentProxyMovedCallout from "/snippets/agent-proxy-moved-callout.mdx";++<AgentProxyMovedCallout />+With a local proxy, everything happens on the computer you're already working on. The proxy starts alongside your agent, hands it placeholder credentials, swaps in the real ones as its requests leave, and stops when the agent exits. There is nothing to deploy and no machine identity to create: the proxy brokers as your logged-in user, against secrets you can already read.Because the proxy and the agent share a machine, an **OS sandbox** is what keeps them apart. The agent can't read your keyring or your credential files, and its only route to the network is the proxy.diff --git a/docs/documentation/platform/agent-proxy/quickstart/standalone-proxy.mdx b/docs/documentation/platform/agent-proxy/quickstart/standalone-proxy.mdxindex d47bac5af1..5fa1d97ccc 100644--- a/docs/documentation/platform/agent-proxy/quickstart/standalone-proxy.mdx+++ b/docs/documentation/platform/agent-proxy/quickstart/standalone-proxy.mdx@@ -4,6 +4,10 @@ sidebarTitle: "Standalone proxy"description: "Run an Agent Proxy on a host of its own and launch agents behind it."---+import AgentProxyMovedCallout from "/snippets/agent-proxy-moved-callout.mdx";++<AgentProxyMovedCallout />+A standalone proxy runs as a long-lived process on a machine of its own, and your agents run elsewhere. Each agent is launched so that its outbound requests route through the proxy, which applies the real credentials on the way out and leaves everything else untouched. This is the setup for agents that run unattended, and for one proxy shared across a team.The agent is on a different host from the proxy, so it has no access at all to the process holding the real credentials. The two authenticate as **two separate machine identities with opposite access**: the proxy can read your secrets, the agent never can. That split is the security model, and it's why this page creates two identities rather than one.diff --git a/docs/documentation/platform/agent-proxy/standalone-agent-proxy.mdx b/docs/documentation/platform/agent-proxy/standalone-agent-proxy.mdxindex f62920afc5..84b20a86f1 100644--- a/docs/documentation/platform/agent-proxy/standalone-agent-proxy.mdx+++ b/docs/documentation/platform/agent-proxy/standalone-agent-proxy.mdx@@ -4,6 +4,10 @@ sidebarTitle: "Standalone proxy"description: "Run an Agent Proxy on a host of its own, serving agents across your network."---+import AgentProxyMovedCallout from "/snippets/agent-proxy-moved-callout.mdx";++<AgentProxyMovedCallout />+A standalone proxy serves agents that run somewhere other than your own computer, and is the setup to use when a team shares one proxy. `agent-proxy start` runs it as one long-lived process on a machine of its own, and `agent-proxy connect` launches each agent behind it. Because the agent is on a different host, it has no access at all to the process holding the real credentials; that separation is the security boundary, and most of what follows exists to keep it intact.```textdiff --git a/docs/images/platform/agent-proxy/add-proxied-service-menu.png b/docs/images/platform/agent-proxy/add-proxied-service-menu.pngdeleted file mode 100644index dfce24e364..0000000000Binary files a/docs/images/platform/agent-proxy/add-proxied-service-menu.png and /dev/null differdiff --git a/docs/images/platform/agent-proxy/quickstart-add-proxied-service.png b/docs/images/platform/agent-proxy/quickstart-add-proxied-service.pngdeleted file mode 100644index dfce24e364..0000000000Binary files a/docs/images/platform/agent-proxy/quickstart-add-proxied-service.png and /dev/null differdiff --git a/docs/images/platform/agent-proxy/quickstart-review.png b/docs/images/platform/agent-proxy/quickstart-review.pngdeleted file mode 100644index d0deced149..0000000000Binary files a/docs/images/platform/agent-proxy/quickstart-review.png and /dev/null differdiff --git a/docs/images/platform/agent-proxy/quickstart-template-picker.png b/docs/images/platform/agent-proxy/quickstart-template-picker.pngdeleted file mode 100644index 7c4318d8b0..0000000000Binary files a/docs/images/platform/agent-proxy/quickstart-template-picker.png and /dev/null differdiff --git a/docs/snippets/agent-proxy-moved-callout.mdx b/docs/snippets/agent-proxy-moved-callout.mdxnew file mode 100644index 0000000000..fc6e189b78--- /dev/null+++ b/docs/snippets/agent-proxy-moved-callout.mdx@@ -0,0 +1,5 @@+<Warning>+ [Agent Vault](/documentation/platform/agent-vault/overview) replaces Agent Proxy. You can't create new proxied services, so use Agent Vault for every new setup. To start, follow the [Agent Vault quickstart](/documentation/platform/agent-vault/quickstart).++ Your existing proxied services keep working, and you can still edit and delete them. Infisical will remove proxied services in a future release, so set up the same services in Agent Vault before then.+</Warning>diff --git a/frontend/src/components/agent-vault/useEnterAgentVault.tsx b/frontend/src/components/agent-vault/useEnterAgentVault.tsxnew file mode 100644index 0000000000..338edb81e2--- /dev/null+++ b/frontend/src/components/agent-vault/useEnterAgentVault.tsx@@ -0,0 +1,155 @@+import { useState } from "react";+import { useNavigate } from "@tanstack/react-router";++import { createNotification } from "@app/components/notifications";+import { RequestProjectAccessModal } from "@app/components/projects/RequestProjectAccessModal";+import { useOrganization, useOrgPermission } from "@app/context";+import {+ OrgPermissionAdminConsoleAction,+ OrgPermissionProjectActions,+ OrgPermissionSubjects+} from "@app/context/OrgPermissionContext/types";+import { useGetUserProjects, useRequestProjectAccess } from "@app/hooks/api";+import { fetchAgentVaultProjectId } from "@app/hooks/api/agentVault/queries";+import { useOrgAdminAccessProject } from "@app/hooks/api/orgAdmin/mutation";+import { Project, ProjectType } from "@app/hooks/api/projects/types";++export type TEnterAgentVaultOutcome = "entered" | "requesting-access" | "blocked";++// The Agent Vault layout rejects anyone who is not a member of the org's Agent Vault project (org+// admins excepted), and that project starts with no members, so every entry point goes through+// here instead of navigating straight to the route.+export const useEnterAgentVault = () => {+ const navigate = useNavigate();+ const { currentOrg } = useOrganization();+ const { permission } = useOrgPermission();+ const { data: projects = [] } = useGetUserProjects();+ const orgAdminAccessProject = useOrgAdminAccessProject();+ const requestProjectAccess = useRequestProjectAccess();+ const [isEntering, setIsEntering] = useState(false);+ const [requestAccessProjectId, setRequestAccessProjectId] = useState<string | null>(null);++ const isOrgAdmin = permission.can(+ OrgPermissionAdminConsoleAction.AccessAllProjects,+ OrgPermissionSubjects.AdminConsole+ );+ const canRequestAccess = permission.can(+ OrgPermissionProjectActions.RequestAccess,+ OrgPermissionSubjects.Project+ );+ // Matched by type, not by currentOrg.agentVaultProjectId: the org can be cached from before its+ // Agent Vault project existed, and there is only one Agent Vault project per org.+ const isAgentVaultMember = projects.some((p) => p.type === ProjectType.AgentVault);+ const needsAccessRequest = !isAgentVaultMember && !isOrgAdmin && canRequestAccess;++ const navigateToAgentVault = () => {+ navigate({+ to: "/organizations/$orgId/agent-vault",+ params: { orgId: currentOrg?.id ?? "" }+ });+ };++ const resolveAgentVaultProjectId = async () => {+ try {+ return currentOrg?.agentVaultProjectId ?? (await fetchAgentVaultProjectId());+ } catch (err) {+ createNotification({+ type: "error",+ text: err instanceof Error ? err.message : "Failed to resolve the Agent Vault project."+ });+ return null;+ }+ };++ const resolveOutcome = async (): Promise<TEnterAgentVaultOutcome> => {+ const agentVaultProjectId = await resolveAgentVaultProjectId();+ if (!agentVaultProjectId) return "blocked";++ if (projects.some((p) => p.id === agentVaultProjectId)) {+ navigateToAgentVault();+ return "entered";+ }++ if (isOrgAdmin) {+ try {+ await orgAdminAccessProject.mutateAsync({ projectId: agentVaultProjectId });+ navigateToAgentVault();+ return "entered";+ } catch (err) {+ createNotification({+ type: "error",+ text: err instanceof Error ? err.message : "Failed to join the Agent Vault project."+ });+ return "blocked";+ }+ }++ if (canRequestAccess) {+ setRequestAccessProjectId(agentVaultProjectId);+ return "requesting-access";+ }++ createNotification({+ type: "error",+ text: "You don't have access to Agent Vault. Ask an Agent Vault admin to add you."+ });+ return "blocked";+ };++ const enterAgentVault = async () => {+ setIsEntering(true);+ try {+ return await resolveOutcome();+ } finally {+ setIsEntering(false);+ }+ };++ // Sends the request with no note, for entry points that skip the request dialog.+ const requestAgentVaultAccess = async () => {+ setIsEntering(true);+ try {+ const agentVaultProjectId = await resolveAgentVaultProjectId();+ if (!agentVaultProjectId) return false;+ if (projects.some((p) => p.id === agentVaultProjectId)) {+ navigateToAgentVault();+ return true;+ }+ await requestProjectAccess.mutateAsync({ projectId: agentVaultProjectId });+ createNotification({+ type: "success",+ title: "Access Request Sent",+ text: "Admins will receive an email of your request"+ });+ return true;+ } catch {+ // The global mutation error handler already reports the failure.+ return false;+ } finally {+ setIsEntering(false);+ }+ };++ const agentVaultAccessRequest = (+ <RequestProjectAccessModal+ isOpen={Boolean(requestAccessProjectId)}+ onOpenChange={(isOpen) => {+ if (!isOpen) setRequestAccessProjectId(null);+ }}+ project={+ requestAccessProjectId+ ? ({ id: requestAccessProjectId, name: "Agent Vault" } as Project)+ : undefined+ }+ subTitle="Requesting access to Agent Vault. You may include an optional note for admins to review your request."+ />+ );++ return {+ enterAgentVault,+ requestAgentVaultAccess,+ needsAccessRequest,+ isEntering,+ agentVaultAccessRequest+ };+};diff --git a/frontend/src/components/license/UpgradeGate/index.ts b/frontend/src/components/license/UpgradeGate/index.tsindex a9e2114a39..2fe8efe15e 100644--- a/frontend/src/components/license/UpgradeGate/index.ts+++ b/frontend/src/components/license/UpgradeGate/index.ts@@ -62,7 +62,6 @@ export {SecretApprovalPoliciesUpgradeIntent,SecretImportReplicationUpgradeIntent,SecretRotationsUpgradeIntent,- SecretsBrokeringUpgradeIntent,SecretScanningUpgradeIntent,SecretsManagementUpgradeIntent,UpgradeFeaturediff --git a/frontend/src/components/license/UpgradeGate/upgrade-intents.ts b/frontend/src/components/license/UpgradeGate/upgrade-intents.tsindex 78427c1603..6ea058012a 100644--- a/frontend/src/components/license/UpgradeGate/upgrade-intents.ts+++ b/frontend/src/components/license/UpgradeGate/upgrade-intents.ts@@ -113,16 +113,6 @@ export const HoneyTokensUpgradeIntent = {"Honey tokens are included with Secrets Management Pro. Review the plan or start a free trial to continue."} satisfies UpgradeIntent;-export const SecretsBrokeringUpgradeIntent = {- featureKey: UpgradeFeature.SecretsBrokering,- productKey: BillingProduct.SecretsManagement,- planKey: BillingPlan.Enterprise,- upgradeLabel: "Unlock Secrets Brokering",- title: "Add Proxied Service",- description:- "Secrets brokering is included with Secrets Management Enterprise. Review the plan to continue."-} satisfies UpgradeIntent;-export const PointInTimeRecoveryUpgradeIntent = {featureKey: UpgradeFeature.PointInTimeRecovery,productKey: BillingProduct.SecretsManagement,diff --git a/frontend/src/components/proxied-services/AgentProxyMovedModal.tsx b/frontend/src/components/proxied-services/AgentProxyMovedModal.tsxnew file mode 100644index 0000000000..f26a1b4781--- /dev/null+++ b/frontend/src/components/proxied-services/AgentProxyMovedModal.tsx@@ -0,0 +1,102 @@+import { ArrowRightIcon, CheckIcon, VaultIcon } from "lucide-react";++import { useEnterAgentVault } from "@app/components/agent-vault/useEnterAgentVault";+import { UpgradeDialogLayout } from "@app/components/license/UpgradeGate/UpgradeDialogLayout";+import { Button, DocumentationLinkBadge } from "@app/components/v3";+import { AgentVaultDocsUrls } from "@app/pages/agent-vault/agent-vault-docs-urls";++const CHANGES = [+ {+ title: "Access Bundles Replace Proxied Services",+ description:+ "Describe the services an agent may reach in an access bundle, then grant it to the people who run agents."+ },+ {+ title: "Credentials Stay Out of Agents",+ description:+ "A proxy in your network attaches the real credential on the way out, only for the services you allowed."+ },+ {+ title: "Existing Proxied Services Keep Working",+ description:+ "You can still edit and delete the proxied services in this project, but you cannot create new ones. Proxied Services will be removed in the future, and we recommend you migrate to Agent Vault for securing agentic access to your secrets"+ }+];++type Props = {+ isOpen: boolean;+ onOpenChange: (isOpen: boolean) => void;+};++export const AgentProxyMovedModal = ({ isOpen, onOpenChange }: Props) => {+ const {+ enterAgentVault,+ requestAgentVaultAccess,+ needsAccessRequest,+ isEntering,+ agentVaultAccessRequest+ } = useEnterAgentVault();++ return (+ <>+ {isOpen && (+ <UpgradeDialogLayout+ scopeName="Agent Vault"+ icon={+ <div className="flex size-16 items-center justify-center rounded-md border border-product-av/30 bg-gradient-to-br from-product-av/20 to-product-av/5">+ <VaultIcon className="size-8 text-product-av" />+ </div>+ }+ title="Agent Proxy Is Moving to Agent Vault"+ description="Set up agent access to external services in Agent Vault."+ onOpenChange={onOpenChange}+ footer={+ <Button+ data-upgrade-cta+ variant="av"+ className="w-full"+ isPending={isEntering}+ onClick={async () => {+ if (needsAccessRequest) {+ if (await requestAgentVaultAccess()) onOpenChange(false);+ return;+ }+ // A toast explains a blocked entry, so the notice stays open behind it.+ const outcome = await enterAgentVault();+ if (outcome !== "blocked") onOpenChange(false);+ }}+ >+ {needsAccessRequest ? (+ "Request Access"+ ) : (+ <>+ Go to Agent Vault+ <ArrowRightIcon />+ </>+ )}+ </Button>+ }+ >+ <section aria-label="What is changing" className="flex flex-col gap-4">+ <div className="flex flex-wrap items-center justify-between gap-2">+ <h3 className="text-sm font-normal">What Is Changing</h3>+ <DocumentationLinkBadge href={AgentVaultDocsUrls.overview} />+ </div>+ <ul className="flex flex-col gap-4">+ {CHANGES.map(({ title, description }) => (+ <li key={title} className="flex items-start gap-3">+ <CheckIcon aria-hidden="true" className="mt-0.5 size-4 shrink-0 text-success" />+ <div className="text-sm">+ <p className="font-medium">{title}</p>+ <p className="mt-1 text-muted">{description}</p>+ </div>+ </li>+ ))}+ </ul>+ </section>+ </UpgradeDialogLayout>+ )}+ {agentVaultAccessRequest}+ </>+ );+};diff --git a/frontend/src/components/proxied-services/CreateProxiedServiceModal.tsx b/frontend/src/components/proxied-services/CreateProxiedServiceModal.tsxdeleted file mode 100644index dc10f0cf41..0000000000--- a/frontend/src/components/proxied-services/CreateProxiedServiceModal.tsx+++ /dev/null@@ -1,134 +0,0 @@-import { useEffect, useState } from "react";-import { AlertTriangleIcon } from "lucide-react";--import {- AlertDialog,- AlertDialogAction,- AlertDialogCancel,- AlertDialogContent,- AlertDialogDescription,- AlertDialogFooter,- AlertDialogHeader,- AlertDialogMedia,- AlertDialogTitle,- Sheet,- SheetContent,- SheetDescription,- SheetHeader,- SheetTitle-} from "@app/components/v3";-import { ProxiedServiceTemplate } from "@app/helpers/proxiedServiceTemplates";--import { CreateProxiedServiceForm } from "./forms";-import { ProxiedServiceModalHeader } from "./ProxiedServiceModalHeader";-import { ProxiedServiceTemplateSelect } from "./ProxiedServiceTemplateSelect";--type Props = {- isOpen: boolean;- onOpenChange: (isOpen: boolean) => void;- projectId: string;- environment: string;- secretPath: string;- existingNames?: string[];-};--// `null` selection = Custom; `undefined` = nothing picked yet (show the template grid).-type Selection = ProxiedServiceTemplate | null | undefined;--export const CreateProxiedServiceModal = ({- isOpen,- onOpenChange,- projectId,- environment,- secretPath,- existingNames = []-}: Props) => {- const [selection, setSelection] = useState<Selection>(undefined);- const [confirmDiscardOpen, setConfirmDiscardOpen] = useState(false);-- useEffect(() => {- if (!isOpen) setSelection(undefined);- }, [isOpen]);-- const isPicking = selection === undefined;-- const close = () => {- setSelection(undefined);- onOpenChange(false);- };-- const handleSheetOpenChange = (nextOpen: boolean) => {- if (!nextOpen && !isPicking) {- setConfirmDiscardOpen(true);- return;- }- if (!nextOpen) setSelection(undefined);- onOpenChange(nextOpen);- };-- return (- <>- <Sheet open={isOpen} onOpenChange={handleSheetOpenChange}>- <SheetContent className="flex h-full max-h-full w-screen flex-col gap-y-0 sm:max-w-[90vw] xl:max-w-7xl">- <SheetHeader className="border-b">- {isPicking ? (- <>- <SheetTitle>Choose a template</SheetTitle>- <SheetDescription>- Pick a service to get a head start, or set one up yourself.- </SheetDescription>- </>- ) : (- <ProxiedServiceModalHeader- title={selection ? selection.name : "Custom Proxied Service"}- subtitle="Define how the agent proxy brokers this service."- image={selection?.image}- />- )}- </SheetHeader>-- {isPicking ? (- <div className="flex min-h-0 flex-1 flex-col overflow-y-auto p-4">- <ProxiedServiceTemplateSelect onSelect={setSelection} />- </div>- ) : (- <div className="flex min-h-0 flex-1 flex-col">- <CreateProxiedServiceForm- projectId={projectId}- environment={environment}- secretPath={secretPath}- template={selection ?? undefined}- existingNames={existingNames}- onComplete={close}- onBackToTemplates={() => {- setConfirmDiscardOpen(false);- setSelection(undefined);- }}- />- </div>- )}- </SheetContent>- </Sheet>-- <AlertDialog open={confirmDiscardOpen} onOpenChange={setConfirmDiscardOpen}>- <AlertDialogContent>- <AlertDialogHeader>- <AlertDialogMedia>- <AlertTriangleIcon />- </AlertDialogMedia>- <AlertDialogTitle>Discard setup?</AlertDialogTitle>- <AlertDialogDescription>- Your progress configuring this proxied service will be lost.- </AlertDialogDescription>- </AlertDialogHeader>- <AlertDialogFooter>- <AlertDialogCancel>Keep Editing</AlertDialogCancel>- <AlertDialogAction variant="danger" onClick={close}>- Discard- </AlertDialogAction>- </AlertDialogFooter>- </AlertDialogContent>- </AlertDialog>- </>- );-};diff --git a/frontend/src/components/proxied-services/ProxiedServiceTemplateSelect.tsx b/frontend/src/components/proxied-services/ProxiedServiceTemplateSelect.tsxdeleted file mode 100644index 80dc7a5e2c..0000000000--- a/frontend/src/components/proxied-services/ProxiedServiceTemplateSelect.tsx+++ /dev/null@@ -1,200 +0,0 @@-import { useMemo, useState } from "react";-import { GlobeIcon, PlusIcon, SearchIcon } from "lucide-react";--import { InputGroup, InputGroupAddon, InputGroupInput } from "@app/components/v3";-import { ProviderIcon } from "@app/components/v3/platform/ProviderIcon";-import {- POPULAR_PROXIED_SERVICE_TEMPLATES,- PROXIED_SERVICE_TEMPLATES,- ProxiedServiceTemplate,- ProxiedServiceTemplateCategory-} from "@app/helpers/proxiedServiceTemplates";--type Props = {- // null = "Custom / start from scratch"- onSelect: (template: ProxiedServiceTemplate | null) => void;-};--const TemplateCard = ({- template,- onClick-}: {- template: ProxiedServiceTemplate;- onClick: () => void;-}) => {- const [imgError, setImgError] = useState(false);-- return (- <button- type="button"- onClick={onClick}- className="group flex cursor-pointer flex-col gap-3 rounded-md border border-border bg-card p-4 text-left transition-colors hover:border-border-strong hover:bg-surface-hover/50"- >- <div className="flex items-start justify-between gap-2">- <div className="flex h-9 w-9 items-center justify-center rounded-md bg-surface-hover">- {imgError ? (- <GlobeIcon className="h-5 w-5 text-label-secondary" />- ) : (- <ProviderIcon- icon={template.image}- alt={`${template.name} logo`}- className="h-6 w-6 object-contain"- onError={() => setImgError(true)}- />- )}- </div>- <span className="text-[10px] font-medium tracking-wider text-muted uppercase">- {template.category}- </span>- </div>- <div className="flex flex-col gap-1">- <p className="text-sm font-semibold text-foreground">{template.name}</p>- <p className="text-xs leading-relaxed text-muted">{template.description}</p>- </div>- </button>- );-};--const CustomCard = ({ onClick }: { onClick: () => void }) => (- <button- type="button"- onClick={onClick}- className="group flex cursor-pointer flex-col gap-3 rounded-md border border-dashed border-border-strong bg-card p-4 text-left transition-colors hover:border-border-emphasis hover:bg-surface-hover/50"- >- <div className="flex items-start gap-2">- <div className="flex h-9 w-9 items-center justify-center rounded-md bg-surface-hover">- <PlusIcon className="h-5 w-5 text-label-secondary" />- </div>- </div>- <div className="flex flex-col gap-1">- <p className="text-sm font-semibold text-foreground">Custom</p>- <p className="text-xs leading-relaxed text-muted">Set up any service manually.</p>- </div>- </button>-);--const SectionLabel = ({ children }: { children: React.ReactNode }) => (- <p className="mb-3 text-[11px] font-medium tracking-wider text-muted uppercase">{children}</p>-);--const Grid = ({ children }: { children: React.ReactNode }) => (- <div className="grid grid-cols-1 gap-3 md:grid-cols-2 lg:grid-cols-3">{children}</div>-);--export const ProxiedServiceTemplateSelect = ({ onSelect }: Props) => {- const [search, setSearch] = useState("");-- const query = search.trim().toLowerCase();- const isSearching = query.length > 0;-- const filtered = useMemo(() => {- if (!query) return PROXIED_SERVICE_TEMPLATES;- return PROXIED_SERVICE_TEMPLATES.filter((t) =>- [t.name, t.category, t.key, ...(t.aliases ?? [])].some((term) =>- term.toLowerCase().includes(query)- )- );- }, [query]);-- const popular = useMemo(- () =>- POPULAR_PROXIED_SERVICE_TEMPLATES.map((key) =>- PROXIED_SERVICE_TEMPLATES.find((t) => t.key === key)- ).filter((t): t is ProxiedServiceTemplate => Boolean(t)),- []- );-- const byCategory = useMemo(- () =>- Object.values(ProxiedServiceTemplateCategory).map((category) => ({- category,- templates: PROXIED_SERVICE_TEMPLATES.filter((t) => t.category === category)- })),- []- );-- return (- <div className="flex flex-col gap-6">- <InputGroup>- <InputGroupAddon align="inline-start">- <SearchIcon />- </InputGroupAddon>- <InputGroupInput- value={search}- onChange={(e) => setSearch(e.target.value)}- placeholder="Search services — OpenAI, Stripe, Telegram, GitHub..."- />- </InputGroup>-- {isSearching ? (- <section>- <Grid>- <CustomCard onClick={() => onSelect(null)} />- {filtered.map((template) => (- <TemplateCard- key={template.key}- template={template}- onClick={() => onSelect(template)}- />- ))}- </Grid>- </section>- ) : (- <>- <section>- <SectionLabel>Popular</SectionLabel>- <Grid>- <CustomCard onClick={() => onSelect(null)} />- {popular.map((template) => (- <TemplateCard- key={template.key}- template={template}- onClick={() => onSelect(template)}- />- ))}- </Grid>- </section>- {byCategory.map(- ({ category, templates }) =>- templates.length > 0 && (- <section key={category}>- <SectionLabel>{category}</SectionLabel>- <Grid>- {templates.map((template) => (- <TemplateCard- key={template.key}- template={template}- onClick={() => onSelect(template)}- />- ))}- </Grid>- </section>- )- )}- </>- )}-- <p className="text-xs text-muted">- Don't see the service you're looking for, or using a protocol other than HTTP?{" "}- <a- target="_blank"- rel="noopener noreferrer"- href="https://community.infisical.com"- className="underline underline-offset-2 hover:text-foreground"- >- Let us know in the community forum- </a>{" "}- or{" "}- <a- target="_blank"- rel="noopener noreferrer"- href="https://github.com/Infisical/infisical/discussions"- className="underline underline-offset-2 hover:text-foreground"- >- request it on GitHub- </a>- .- </p>- </div>- );-};diff --git a/frontend/src/components/proxied-services/forms/CreateProxiedServiceForm.tsx b/frontend/src/components/proxied-services/forms/CreateProxiedServiceForm.tsxdeleted file mode 100644index 5436933113..0000000000--- a/frontend/src/components/proxied-services/forms/CreateProxiedServiceForm.tsx+++ /dev/null@@ -1,320 +0,0 @@-import { useMemo, useState } from "react";-import { FormProvider, useForm } from "react-hook-form";-import { zodResolver } from "@hookform/resolvers/zod";-import { AxiosError } from "axios";-import { AlertTriangleIcon } from "lucide-react";--import { createNotification } from "@app/components/notifications";-import {- AlertDialog,- AlertDialogAction,- AlertDialogCancel,- AlertDialogContent,- AlertDialogDescription,- AlertDialogFooter,- AlertDialogHeader,- AlertDialogMedia,- AlertDialogTitle,- Button,- DocumentationLinkBadge,- SheetFooter,- Stepper,- StepperList,- StepperStep-} from "@app/components/v3";-import { ProxiedServiceTemplate } from "@app/helpers/proxiedServiceTemplates";-import { useCreateProxiedService } from "@app/hooks/api/proxiedServices/mutations";--import { ProxiedServiceDetailsFields } from "./ProxiedServiceDetailsFields";-import { ProxiedServiceHeaderFields } from "./ProxiedServiceHeaderFields";-import { ProxiedServiceReviewFields } from "./ProxiedServiceReviewFields";-import { ProxiedServiceSubstitutionDiagram } from "./ProxiedServiceSubstitutionDiagram";-import { ProxiedServiceSubstitutionFields } from "./ProxiedServiceSubstitutionFields";-import {- hasAtLeastOneCredential,- HeaderRewritingMode,- PROXIED_SERVICE_STEP_FIELDS,- proxiedServiceFormSchema,- ProxiedServiceStep,- TProxiedServiceForm-} from "./schema";-import { PROXIED_SERVICE_QUICKSTART_URL, PROXIED_SERVICE_STEPS } from "./stepMeta";-import { buildTemplateFormValues, emptyFormValues, toCredentials } from "./utils";--const DETAILS = 0;-const HEADERS = 1;-const SUBSTITUTION = 2;-const REVIEW = PROXIED_SERVICE_STEPS.length - 1;--type Props = {- projectId: string;- environment: string;- secretPath: string;- template?: ProxiedServiceTemplate;- existingNames: string[];- onComplete: () => void;- onBackToTemplates: () => void;-};--export const CreateProxiedServiceForm = ({- projectId,- environment,- secretPath,- template,- existingNames,- onComplete,- onBackToTemplates-}: Props) => {- const createProxiedService = useCreateProxiedService();-- const defaultValues = useMemo(- () => (template ? buildTemplateFormValues(template, existingNames) : emptyFormValues()),- // seed once on mount; regenerating would churn the placeholder values- []- );-- const formMethods = useForm<TProxiedServiceForm>({- resolver: zodResolver(proxiedServiceFormSchema),- defaultValues,- reValidateMode: "onChange"- });-- const { handleSubmit, trigger, watch, getValues, formState } = formMethods;-- const [stepIndex, setStepIndex] = useState(DETAILS);- const [credentialError, setCredentialError] = useState(false);- const [confirmBackOpen, setConfirmBackOpen] = useState(false);- // Templates that don't use header rewrites skip that step once, on first advance. After- // that the step rejoins normal navigation so Back/Continue never silently skip anything.- const [headerSkipConsumed, setHeaderSkipConsumed] = useState(false);-- const name = watch("name");- const headerMode = watch("headerMode");- const headers = watch("headers");-- const isHeaderStepEmpty =- headerMode !== HeaderRewritingMode.BasicAuth && (headers?.length ?? 0) === 0;- const isDuplicateName = existingNames.includes(name?.trim());-- const isStepValid = (index: number) => {- const { step } = PROXIED_SERVICE_STEPS[index];- // Only validate the header mode that's actually active, so a half-filled tab you- // switched away from can't block you.- if (step === ProxiedServiceStep.Headers) {- return trigger(headerMode === HeaderRewritingMode.BasicAuth ? ["basicAuth"] : ["headers"]);- }- return trigger(PROXIED_SERVICE_STEP_FIELDS[step]);- };-- const submit = async (form: TProxiedServiceForm) => {- try {- await createProxiedService.mutateAsync({- projectId,- environment,- secretPath,- name: form.name,- hostPattern: form.hostPattern,- isEnabled: form.isEnabled,- credentials: toCredentials(form)- });- createNotification({ text: "Successfully created proxied service", type: "success" });- onComplete();- } catch (err) {- const raw = (err as AxiosError<{ message?: string | { message?: string }[] }>)?.response?.data- ?.message;- const detail = Array.isArray(raw)- ? raw- .map((issue) => issue?.message)- .filter(Boolean)- .join(", ")- : raw;- createNotification({- text: `Failed to create proxied service${detail ? `: ${detail}` : ""}`,- type: "error"- });- }- };-- const handleNext = async () => {- if (stepIndex === REVIEW) {- if (!hasAtLeastOneCredential(getValues())) {- setCredentialError(true);- setStepIndex(SUBSTITUTION);- return;- }- handleSubmit(submit)();- return;- }-- if (stepIndex === DETAILS && isDuplicateName) return;- if (!(await isStepValid(stepIndex))) return;-- if (stepIndex === SUBSTITUTION && !hasAtLeastOneCredential(getValues())) {- setCredentialError(true);- return;- }-- let next = stepIndex + 1;- // One-time skip: on the first advance past Details, jump over an unused Header Rewrites- // step. Once consumed, every step is reachable normally (and Back always lands there).- if (next === HEADERS && isHeaderStepEmpty && !headerSkipConsumed) {- next = SUBSTITUTION;- setHeaderSkipConsumed(true);- }- setStepIndex(next);- };-- const handlePrev = () => {- if (stepIndex === DETAILS) {- if (formState.isDirty) setConfirmBackOpen(true);- else onBackToTemplates();- return;- }- setStepIndex(stepIndex - 1);- };-- const handleStepperChange = async (stepperIndex: number) => {- // Stepper index 0 is the Template picker; form steps are 1..N.- if (stepperIndex === 0) {- if (formState.isDirty) setConfirmBackOpen(true);- else onBackToTemplates();- return;- }- const target = stepperIndex - 1;- if (target === stepIndex) return;- if (target < stepIndex) {- setStepIndex(target);- return;- }- for (let i = stepIndex; i < target; i += 1) {- // eslint-disable-next-line no-await-in-loop- if (!(await isStepValid(i))) return;- }- setStepIndex(target);- };-- const current = PROXIED_SERVICE_STEPS[stepIndex];- const displayedStep = stepIndex + 2; // +1 for Template step, +1 for 1-based display- const totalSteps = PROXIED_SERVICE_STEPS.length + 1;-- return (- <FormProvider {...formMethods}>- <form className="flex h-full min-h-0 flex-col" onSubmit={(e) => e.preventDefault()}>- <div className="flex min-h-0 flex-1 overflow-hidden">- <aside className="flex w-60 shrink-0 flex-col border-r border-border px-5 py-6">- <p className="mb-5 text-[11px] font-medium tracking-wider text-muted uppercase">- Setup steps- </p>- <Stepper- activeStep={stepIndex + 1}- orientation="vertical"- onStepChange={handleStepperChange}- >- <StepperList>- <StepperStep index={0} title="Template" description={template?.name ?? "Custom"} />- {PROXIED_SERVICE_STEPS.map((meta, i) => (- <StepperStep- key={meta.step}- index={i + 1}- title={meta.name}- description={meta.shortDescription}- status={- credentialError && meta.step === ProxiedServiceStep.Substitution- ? "error"- : undefined- }- />- ))}- </StepperList>- </Stepper>- </aside>-- <div className="flex min-w-0 flex-1 flex-col gap-y-2 overflow-y-auto px-8 py-6">- <div className="mb-6">- <h2 className="text-lg font-normal text-foreground">{current.title}</h2>- <p className="mt-1 text-sm text-muted">{current.subtitle}</p>- </div>-- {stepIndex === DETAILS && (- <ProxiedServiceDetailsFields isDuplicateName={isDuplicateName} />- )}- {stepIndex === HEADERS && (- <ProxiedServiceHeaderFields- projectId={projectId}- environment={environment}- secretPath={secretPath}- />- )}- {stepIndex === SUBSTITUTION && (- <ProxiedServiceSubstitutionFields- projectId={projectId}- environment={environment}- secretPath={secretPath}- showCredentialError={credentialError}- onClearCredentialError={() => setCredentialError(false)}- />- )}- {stepIndex === REVIEW && <ProxiedServiceReviewFields />}- </div>-- <aside className="hidden w-80 shrink-0 flex-col gap-4 overflow-y-auto border-l border-border px-6 py-6 lg:flex">- <div className="flex items-center justify-between gap-2">- <p className="text-[11px] font-medium tracking-wider text-muted uppercase">- Step {displayedStep} · {current.rightLabel}- </p>- <DocumentationLinkBadge href={PROXIED_SERVICE_QUICKSTART_URL} />- </div>- <p className="text-sm font-semibold text-foreground">What this step does</p>- <p className="text-sm leading-relaxed text-muted">{current.rightDescription}</p>- {current.step === ProxiedServiceStep.Substitution && (- <ProxiedServiceSubstitutionDiagram template={template} />- )}- </aside>- </div>-- <SheetFooter className="shrink-0 items-center justify-between border-t">- <span className="text-xs text-muted">{formState.isDirty ? "Unsaved changes" : ""}</span>- <div className="flex items-center gap-3">- <span className="text-xs text-muted">- Step {displayedStep} of {totalSteps}- </span>- <Button variant="outline" onClick={handlePrev}>- Back- </Button>- <Button- variant="project"- onClick={handleNext}- isPending={stepIndex === REVIEW && createProxiedService.isPending}- isDisabled={- (stepIndex === DETAILS && isDuplicateName) ||- (stepIndex === REVIEW && createProxiedService.isPending)- }- >- {stepIndex === REVIEW ? "Create Proxied Service" : "Continue"}- </Button>- </div>- </SheetFooter>- </form>-- <AlertDialog open={confirmBackOpen} onOpenChange={setConfirmBackOpen}>- <AlertDialogContent>- <AlertDialogHeader>- <AlertDialogMedia>- <AlertTriangleIcon />- </AlertDialogMedia>- <AlertDialogTitle>Discard setup?</AlertDialogTitle>- <AlertDialogDescription>- Your progress configuring this proxied service will be lost.- </AlertDialogDescription>- </AlertDialogHeader>- <AlertDialogFooter>- <AlertDialogCancel>Keep Editing</AlertDialogCancel>- <AlertDialogAction variant="danger" onClick={onBackToTemplates}>- Discard- </AlertDialogAction>- </AlertDialogFooter>- </AlertDialogContent>- </AlertDialog>- </FormProvider>- );-};diff --git a/frontend/src/components/proxied-services/forms/ProxiedServiceSubstitutionDiagram.tsx b/frontend/src/components/proxied-services/forms/ProxiedServiceSubstitutionDiagram.tsxindex 02c2ff9709..cdf0b3e9d9 100644--- a/frontend/src/components/proxied-services/forms/ProxiedServiceSubstitutionDiagram.tsx+++ b/frontend/src/components/proxied-services/forms/ProxiedServiceSubstitutionDiagram.tsx@@ -1,4 +1,3 @@-import { useState } from "react";import { useFormContext } from "react-hook-form";import {ArrowDownIcon,@@ -10,15 +9,9 @@ import {} from "lucide-react";import { Tooltip, TooltipContent, TooltipTrigger } from "@app/components/v3";-import { ProviderIcon } from "@app/components/v3/platform/ProviderIcon";-import { ProxiedServiceTemplate } from "@app/helpers/proxiedServiceTemplates";import { TProxiedServiceForm } from "./schema";-type Props = {- template?: ProxiedServiceTemplate;-};-const truncate = (value: string, max = 16) =>value.length > max ? `${value.slice(0, max)}…` : value;@@ -58,23 +51,7 @@ const Node = ({</div>);-const ServiceIcon = ({ template }: { template?: ProxiedServiceTemplate }) => {- const [imgError, setImgError] = useState(false);-- if (template && !imgError) {- return (- <ProviderIcon- icon={template.image}- alt=""- className="size-3.5 shrink-0 object-contain"- onError={() => setImgError(true)}- />- );- }- return <GlobeIcon className="size-3.5 text-label-secondary" />;-};--export const ProxiedServiceSubstitutionDiagram = ({ template }: Props) => {+export const ProxiedServiceSubstitutionDiagram = () => {const { watch } = useFormContext<TProxiedServiceForm>();const substitutions = watch("substitutions");const example = substitutions?.find((s) => s.placeholderKey) ?? substitutions?.[0];@@ -129,7 +106,7 @@ export const ProxiedServiceSubstitutionDiagram = ({ template }: Props) => {<Connector label="Forwards the real request" />- <Node icon={<ServiceIcon template={template} />} title={template?.name || "External Service"}>+ <Node icon={<GlobeIcon className="size-3.5 text-label-secondary" />} title="External Service"><p className="text-[11px] leading-tight text-muted">Receives the real credential. Your agent never held it.</p>diff --git a/frontend/src/components/proxied-services/forms/index.ts b/frontend/src/components/proxied-services/forms/index.tsindex 09035201f5..30a0bd412d 100644--- a/frontend/src/components/proxied-services/forms/index.ts+++ b/frontend/src/components/proxied-services/forms/index.ts@@ -1,2 +1 @@-export * from "./CreateProxiedServiceForm";export * from "./EditProxiedServiceForm";diff --git a/frontend/src/components/proxied-services/forms/utils.ts b/frontend/src/components/proxied-services/forms/utils.tsindex aec8cb762d..54faeda78a 100644--- a/frontend/src/components/proxied-services/forms/utils.ts+++ b/frontend/src/components/proxied-services/forms/utils.ts@@ -1,4 +1,3 @@-import { ProxiedServiceTemplate } from "@app/helpers/proxiedServiceTemplates";import {ProxiedServiceCredentialRole,ProxiedServiceHeaderPurpose,@@ -141,44 +140,3 @@ export const toCredentials = (form: TProxiedServiceForm): TProxiedServiceCredentreturn credentials;};--// Appends a numeric suffix ("openai" -> "openai-2") until the name is unused in the folder.-export const uniqueServiceName = (base: string, existingNames: string[]) => {- const taken = new Set(existingNames);- if (!taken.has(base)) return base;- let i = 2;- while (taken.has(`${base}-${i}`)) i += 1;- return `${base}-${i}`;-};--// Seeds the form from a template. Every source is left blank — the one thing the user picks.-// Placeholders are generated once here so re-renders don't churn the value.-export const buildTemplateFormValues = (- template: ProxiedServiceTemplate,- existingNames: string[]-): TProxiedServiceForm => {- const isBasicAuth = Boolean(template.seed.basicAuth);-- return {- name: uniqueServiceName(template.defaultName ?? template.key, existingNames),- hostPattern: template.hostPattern,- isEnabled: true,- headerMode: isBasicAuth ? HeaderRewritingMode.BasicAuth : HeaderRewritingMode.Headers,- // Substitution-only templates omit `headers`, which becomes an empty list here so the- // legacy Authorization row is dropped and the Header Rewrites step is genuinely empty.- headers: isBasicAuth- ? []- : (template.seed.headers ?? []).map((h) => ({- ...emptySource(),- headerName: h.headerName,- headerPrefix: h.headerPrefix ?? ""- })),- basicAuth: { username: emptySource(), password: emptySource() },- substitutions: (template.seed.substitutions ?? []).map((s) => ({- ...emptySource(),- placeholderKey: s.placeholderKey,- placeholderValue: s.generatePlaceholder(),- surfaces: s.surfaces- }))- };-};diff --git a/frontend/src/components/proxied-services/index.ts b/frontend/src/components/proxied-services/index.tsindex 3456088904..b6615c931d 100644--- a/frontend/src/components/proxied-services/index.ts+++ b/frontend/src/components/proxied-services/index.ts@@ -1,3 +1,3 @@-export * from "./CreateProxiedServiceModal";+export * from "./AgentProxyMovedModal";export * from "./DeleteProxiedServiceModal";export * from "./EditProxiedServiceModal";diff --git a/frontend/src/helpers/proxiedServiceTemplates.ts b/frontend/src/helpers/proxiedServiceTemplates.tsdeleted file mode 100644index e7a28817ac..0000000000--- a/frontend/src/helpers/proxiedServiceTemplates.ts+++ /dev/null@@ -1,501 +0,0 @@-import { ProxiedServiceSubstitutionSurface } from "@app/hooks/api/proxiedServices/enums";--export enum ProxiedServiceTemplateCategory {- Llm = "LLM Providers",- DeveloperTools = "Developer Tools",- Communication = "Communication",- Monitoring = "Monitoring",- Productivity = "Productivity",- Payments = "Payments",- Commerce = "Commerce"-}--export type ProxiedServiceTemplateHeaderSeed = {- headerName: string;- headerPrefix?: string;-};--export type ProxiedServiceTemplateSubstitutionSeed = {- placeholderKey: string;- surfaces: ProxiedServiceSubstitutionSurface[];- generatePlaceholder: () => string;-};--export type ProxiedServiceTemplate = {- key: string;- name: string;- image: string;- category: ProxiedServiceTemplateCategory;- description: string;- hostPattern: string;- defaultName?: string;- aliases?: string[];- seed: {- // Substitution-only templates leave `headers` undefined; the form builder treats- // that as an explicit empty header list so the legacy Authorization row is dropped.- headers?: ProxiedServiceTemplateHeaderSeed[];- basicAuth?: { withPassword?: boolean };- substitutions?: ProxiedServiceTemplateSubstitutionSeed[];- };-};--const ALPHANUM = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";-const BASE64URL = `${ALPHANUM}-_`;-const HEX = "0123456789abcdef";-const DIGITS = "0123456789";--const UPPERALNUM = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";--const randomToken = (length: number, alphabet: string = ALPHANUM) =>- Array.from({ length }, () => alphabet[Math.floor(Math.random() * alphabet.length)]).join("");--// Slack accepts its tokens only in the Authorization header or a POST body param — never in-// the query string or path — so scope substitution to those two surfaces.-const HEADER_AND_BODY = [- ProxiedServiceSubstitutionSurface.Header,- ProxiedServiceSubstitutionSurface.Body-];--const bearer = (- headerName = "Authorization",- headerPrefix = "Bearer"-): ProxiedServiceTemplateHeaderSeed[] => [{ headerName, headerPrefix }];--// A substitution on the Authorization header: the agent's SDK sees a real-looking key and-// makes the request; the proxy swaps the placeholder for the real secret on the wire.-const bearerSubstitution = (- placeholderKey: string,- generatePlaceholder: () => string,- surfaces: ProxiedServiceSubstitutionSurface[] = [ProxiedServiceSubstitutionSurface.Header]-): ProxiedServiceTemplateSubstitutionSeed[] => [{ placeholderKey, surfaces, generatePlaceholder }];--export const PROXIED_SERVICE_TEMPLATES: ProxiedServiceTemplate[] = [- // ---- LLM Providers ----- {- key: "openai",- name: "OpenAI",- image: "OpenAI.png",- category: ProxiedServiceTemplateCategory.Llm,- description: "Chat and models from OpenAI.",- hostPattern: "api.openai.com",- aliases: ["gpt", "chatgpt"],- seed: {- substitutions: bearerSubstitution("OPENAI_API_KEY", () => `sk-proj-${randomToken(48)}`)- }- },- {- key: "anthropic",- name: "Anthropic",- image: "Anthropic.png",- category: ProxiedServiceTemplateCategory.Llm,- description: "Claude models from Anthropic.",- hostPattern: "api.anthropic.com",- aliases: ["claude"],- seed: {- substitutions: bearerSubstitution(- "ANTHROPIC_API_KEY",- () => `sk-ant-api03-${randomToken(93, BASE64URL)}AA`- )- }- },- {- key: "gemini",- name: "Google Gemini",- image: "Gemini.svg",- category: ProxiedServiceTemplateCategory.Llm,- description: "Google's Gemini models.",- hostPattern: "generativelanguage.googleapis.com",- aliases: ["google", "bard", "vertex"],- seed: {- substitutions: bearerSubstitution("GEMINI_API_KEY", () => `AIza${randomToken(35)}`, [- ProxiedServiceSubstitutionSurface.Query,- ProxiedServiceSubstitutionSurface.Header- ])- }- },- {- key: "mistral",- name: "Mistral AI",- image: "Mistral.svg",- category: ProxiedServiceTemplateCategory.Llm,- description: "Chat and embedding models from Mistral.",- hostPattern: "api.mistral.ai",- seed: {- substitutions: bearerSubstitution("MISTRAL_API_KEY", () => randomToken(32))- }- },- {- key: "cohere",- name: "Cohere",- image: "Cohere.svg",- category: ProxiedServiceTemplateCategory.Llm,- description: "Cohere's language models.",- hostPattern: "api.cohere.com",- seed: {- substitutions: bearerSubstitution("CO_API_KEY", () => randomToken(40))- }- },- {- key: "groq",- name: "Groq",- image: "Groq.svg",- category: ProxiedServiceTemplateCategory.Llm,- description: "Fast model inference from Groq.",- hostPattern: "api.groq.com",- seed: {- substitutions: bearerSubstitution("GROQ_API_KEY", () => `gsk_${randomToken(52)}`)- }- },- {- key: "perplexity",- name: "Perplexity",- image: "Perplexity.svg",- category: ProxiedServiceTemplateCategory.Llm,- description: "Perplexity's answer engine.",- hostPattern: "api.perplexity.ai",- seed: {- substitutions: bearerSubstitution("PERPLEXITY_API_KEY", () => `pplx-${randomToken(48)}`)- }- },- {- key: "openrouter",- name: "OpenRouter",- image: "OpenRouter.png",- category: ProxiedServiceTemplateCategory.Llm,- description: "One key for many AI models.",- hostPattern: "openrouter.ai",- seed: {- substitutions: bearerSubstitution(- "OPENROUTER_API_KEY",- () => `sk-or-v1-${randomToken(64, HEX)}`- )- }- },- {- key: "together",- name: "Together AI",- image: "Together.svg",- category: ProxiedServiceTemplateCategory.Llm,- description: "Open models on Together AI.",- hostPattern: "api.together.ai, api.together.xyz",- seed: {- substitutions: bearerSubstitution("TOGETHER_API_KEY", () => randomToken(64, HEX))- }- },- {- key: "deepseek",- name: "DeepSeek",- image: "DeepSeek.svg",- category: ProxiedServiceTemplateCategory.Llm,- description: "DeepSeek's chat and reasoning models.",- hostPattern: "api.deepseek.com",- seed: {- substitutions: bearerSubstitution("DEEPSEEK_API_KEY", () => `sk-${randomToken(32)}`)- }- },- {- key: "xai",- name: "xAI (Grok)",- image: "xAI.svg",- category: ProxiedServiceTemplateCategory.Llm,- description: "Grok models from xAI.",- hostPattern: "api.x.ai",- aliases: ["grok"],- seed: {- substitutions: bearerSubstitution("XAI_API_KEY", () => `xai-${randomToken(80)}`)- }- },- {- key: "fireworks",- name: "Fireworks AI",- image: "Fireworks.png",- category: ProxiedServiceTemplateCategory.Llm,- description: "Fast open-model inference.",- hostPattern: "api.fireworks.ai",- seed: {- substitutions: bearerSubstitution("FIREWORKS_API_KEY", () => `fw_${randomToken(24)}`)- }- },-- // ---- Payments ----- {- key: "stripe",- name: "Stripe",- image: "Stripe.svg",- category: ProxiedServiceTemplateCategory.Payments,- description: "Payments and billing.",- hostPattern: "api.stripe.com",- defaultName: "stripe-api",- seed: {- substitutions: bearerSubstitution("STRIPE_SECRET_KEY", () => `sk_live_${randomToken(24)}`)- }- },-- // ---- Communication ----- {- key: "twilio",- name: "Twilio",- image: "Twilio.svg",- category: ProxiedServiceTemplateCategory.Communication,- description: "SMS, voice, and messaging.",- hostPattern: "api.twilio.com",- seed: {- basicAuth: { withPassword: true }- }- },- {- key: "sendgrid",- name: "SendGrid",- image: "SendGrid.png",- category: ProxiedServiceTemplateCategory.Communication,- description: "Send transactional email.",- hostPattern: "api.sendgrid.com",- seed: {- substitutions: bearerSubstitution(- "SENDGRID_API_KEY",- () => `SG.${randomToken(22)}.${randomToken(43, BASE64URL)}`- )- }- },- {- key: "resend",- name: "Resend",- image: "Resend.svg",- category: ProxiedServiceTemplateCategory.Communication,- description: "Email built for developers.",- hostPattern: "api.resend.com",- seed: {- substitutions: bearerSubstitution("RESEND_API_KEY", () => `re_${randomToken(24)}`)- }- },- {- key: "slack",- name: "Slack",- image: "Slack.svg",- category: ProxiedServiceTemplateCategory.Communication,- description: "Post messages and build Slack apps.",- hostPattern: "slack.com",- // Slack needs both the app-level and bot tokens brokered across every surface.- seed: {- substitutions: [- {- placeholderKey: "SLACK_APP_TOKEN",- surfaces: HEADER_AND_BODY,- generatePlaceholder: () =>- `xapp-1-A0${randomToken(9, UPPERALNUM)}-${randomToken(13, DIGITS)}-${randomToken(64, HEX)}`- },- {- placeholderKey: "SLACK_BOT_TOKEN",- surfaces: HEADER_AND_BODY,- generatePlaceholder: () =>- `xoxb-${randomToken(11, DIGITS)}-${randomToken(13, DIGITS)}-${randomToken(24)}`- }- ]- }- },- {- key: "telegram",- name: "Telegram",- image: "Telegram.svg",- category: ProxiedServiceTemplateCategory.Communication,- description: "Build and run Telegram bots.",- hostPattern: "api.telegram.org",- defaultName: "telegram-bot-api",- seed: {- substitutions: bearerSubstitution(- "TELEGRAM_BOT_TOKEN",- () => `${randomToken(10, DIGITS)}:${randomToken(35, BASE64URL)}`,- [ProxiedServiceSubstitutionSurface.Path]- )- }- },- {- key: "discord",- name: "Discord",- image: "Discord.svg",- category: ProxiedServiceTemplateCategory.Communication,- description: "Build and run Discord bots.",- hostPattern: "discord.com/api/*",- seed: {- headers: bearer("Authorization", "Bot")- }- },-- // ---- Developer Tools ----- {- key: "github",- name: "GitHub",- image: "GitHub.png",- category: ProxiedServiceTemplateCategory.DeveloperTools,- description: "Repos, issues, and more on GitHub.",- hostPattern: "api.github.com",- seed: {- substitutions: bearerSubstitution("GITHUB_TOKEN", () => `ghp_${randomToken(36)}`)- }- },- {- key: "gitlab",- name: "GitLab",- image: "GitLab.png",- category: ProxiedServiceTemplateCategory.DeveloperTools,- description: "Repos and pipelines on GitLab.",- hostPattern: "gitlab.com/api/*",- seed: {- headers: [{ headerName: "PRIVATE-TOKEN" }]- }- },- {- key: "vercel",- name: "Vercel",- image: "Vercel.png",- category: ProxiedServiceTemplateCategory.DeveloperTools,- description: "Deploys and the Vercel API.",- hostPattern: "api.vercel.com",- seed: { headers: bearer() }- },- {- key: "cloudflare",- name: "Cloudflare",- image: "Cloudflare.png",- category: ProxiedServiceTemplateCategory.DeveloperTools,- description: "DNS, CDN, and the Cloudflare API.",- hostPattern: "api.cloudflare.com",- seed: { headers: bearer() }- },- {- key: "supabase",- name: "Supabase",- image: "Supabase.png",- category: ProxiedServiceTemplateCategory.DeveloperTools,- description: "Postgres, auth, and storage.",- hostPattern: "*.supabase.co",- seed: { headers: [{ headerName: "apikey" }] }- },- {- key: "npm",- name: "npm",- image: "NPM.svg",- category: ProxiedServiceTemplateCategory.DeveloperTools,- description: "The npm package registry.",- hostPattern: "registry.npmjs.org",- seed: { headers: bearer() }- },- {- key: "github-npm",- name: "GitHub Packages",- image: "GitHub.png",- category: ProxiedServiceTemplateCategory.DeveloperTools,- description: "GitHub's npm package registry.",- hostPattern: "npm.pkg.github.com",- aliases: ["npm", "packages"],- seed: { headers: bearer() }- },-- // ---- Monitoring ----- {- key: "datadog",- name: "Datadog",- image: "Datadog.png",- category: ProxiedServiceTemplateCategory.Monitoring,- description: "Monitoring and analytics.",- hostPattern: "api.datadoghq.com",- seed: { headers: [{ headerName: "DD-API-KEY" }] }- },- {- key: "sentry",- name: "Sentry",- image: "Sentry.svg",- category: ProxiedServiceTemplateCategory.Monitoring,- description: "Error and performance monitoring.",- hostPattern: "sentry.io",- seed: { headers: bearer() }- },- {- key: "pagerduty",- name: "PagerDuty",- image: "PagerDuty.svg",- category: ProxiedServiceTemplateCategory.Monitoring,- description: "On-call and incident management.",- hostPattern: "api.pagerduty.com",- // PagerDuty uses `Authorization: Token token=<key>`, which a prefix rewrite can't express- // (it inserts a space); substitution swaps the token by value regardless of format.- seed: { substitutions: bearerSubstitution("PAGERDUTY_TOKEN", () => randomToken(20)) }- },-- // ---- Productivity ----- {- key: "linear",- name: "Linear",- image: "Linear.svg",- category: ProxiedServiceTemplateCategory.Productivity,- description: "Issue tracking and project management.",- hostPattern: "api.linear.app",- // Linear personal API keys go in the Authorization header with no "Bearer" prefix.- seed: { headers: [{ headerName: "Authorization" }] }- },- {- key: "notion",- name: "Notion",- image: "Notion.svg",- category: ProxiedServiceTemplateCategory.Productivity,- description: "Notion workspace and docs.",- hostPattern: "api.notion.com",- seed: { headers: bearer() }- },- {- key: "jira",- name: "Jira",- image: "Jira.svg",- category: ProxiedServiceTemplateCategory.Productivity,- description: "Atlassian Jira issue tracking.",- hostPattern: "*.atlassian.net",- seed: { basicAuth: { withPassword: true } }- },- {- key: "google-workspace",- name: "Google Workspace",- image: "Google Workspace.svg",- category: ProxiedServiceTemplateCategory.Productivity,- description: "Gmail, Calendar, Sheets, and Drive.",- hostPattern:- "gmail.googleapis.com/*, sheets.googleapis.com/*, www.googleapis.com/calendar/*, www.googleapis.com/drive/*, www.googleapis.com/upload/drive/*",- aliases: ["workspace", "gsuite", "gmail", "calendar", "sheets", "drive", "gdrive"],- seed: {- substitutions: bearerSubstitution(- "GOOGLE_ACCESS_TOKEN",- () => `ya29.${randomToken(60, BASE64URL)}`,- [ProxiedServiceSubstitutionSurface.Header]- )- }- },-- // ---- Communication (email) ----- {- key: "postmark",- name: "Postmark",- image: "Postmark.png",- category: ProxiedServiceTemplateCategory.Communication,- description: "Transactional email.",- hostPattern: "api.postmarkapp.com",- seed: { headers: [{ headerName: "X-Postmark-Server-Token" }] }- },-- // ---- Commerce ----- {- key: "shopify",- name: "Shopify",- image: "Shopify.svg",- category: ProxiedServiceTemplateCategory.Commerce,- description: "Shopify e-commerce API.",- hostPattern: "*.myshopify.com",- seed: { headers: [{ headerName: "X-Shopify-Access-Token" }] }- }-];--export const POPULAR_PROXIED_SERVICE_TEMPLATES: string[] = [- "openai",- "anthropic",- "github",- "slack",- "google-workspace"-];diff --git a/frontend/src/hooks/api/proxiedServices/mutations.tsx b/frontend/src/hooks/api/proxiedServices/mutations.tsxindex 2d6376569a..38df3ddc19 100644--- a/frontend/src/hooks/api/proxiedServices/mutations.tsx+++ b/frontend/src/hooks/api/proxiedServices/mutations.tsx@@ -5,7 +5,6 @@ import { dashboardKeys } from "@app/hooks/api/dashboard/queries";import { proxiedServiceKeys } from "./queries";import {- TCreateProxiedServiceDTO,TDeleteProxiedServiceDTO,TProxiedService,TProxiedServiceBase,@@ -17,21 +16,6 @@ const invalidate = (queryClient: ReturnType<typeof useQueryClient>) => {queryClient.invalidateQueries({ queryKey: dashboardKeys.all() });};-export const useCreateProxiedService = () => {- const queryClient = useQueryClient();-- return useMutation<TProxiedService, object, TCreateProxiedServiceDTO>({- mutationFn: async (dto) => {- const { data } = await apiRequest.post<{ service: TProxiedService }>(- "/api/v1/proxied-services",- dto- );- return data.service;- },- onSuccess: () => invalidate(queryClient)- });-};-export const useUpdateProxiedService = () => {const queryClient = useQueryClient();diff --git a/frontend/src/hooks/api/proxiedServices/types.ts b/frontend/src/hooks/api/proxiedServices/types.tsindex 9cafee0fdc..defb4954e6 100644--- a/frontend/src/hooks/api/proxiedServices/types.ts+++ b/frontend/src/hooks/api/proxiedServices/types.ts@@ -59,16 +59,6 @@ export type TProxiedServiceCredentialInput = {dynamicSecretField?: string;};-export type TCreateProxiedServiceDTO = {- projectId: string;- environment: string;- secretPath: string;- name: string;- hostPattern: string;- isEnabled?: boolean;- credentials: TProxiedServiceCredentialInput[];-};-export type TUpdateProxiedServiceDTO = {serviceId: string;name?: string;diff --git a/frontend/src/pages/organization/ProjectsPage/components/ProjectCategoryOverview.tsx b/frontend/src/pages/organization/ProjectsPage/components/ProjectCategoryOverview.tsxindex 50580ed31d..583e8d688f 100644--- a/frontend/src/pages/organization/ProjectsPage/components/ProjectCategoryOverview.tsx+++ b/frontend/src/pages/organization/ProjectsPage/components/ProjectCategoryOverview.tsx@@ -3,6 +3,7 @@ import { useQueryClient } from "@tanstack/react-query";import { Link, useNavigate } from "@tanstack/react-router";import { PreviewBadge } from "@app/components/agent-vault/PreviewBadge";+import { useEnterAgentVault } from "@app/components/agent-vault/useEnterAgentVault";import { createNotification } from "@app/components/notifications";import { CertManagerNotConfiguredModal } from "@app/components/projects/CertManagerNotConfiguredModal";import { CertManagerSelectInstanceModal } from "@app/components/projects/CertManagerSelectInstanceModal";@@ -37,7 +38,6 @@ import {} from "@app/helpers/project";import { setSecretScanningActiveProjectCookie } from "@app/helpers/secretScanningActiveProject";import { useGetOrgProductStats, useGetUserProjects } from "@app/hooks/api";-import { fetchAgentVaultProjectId } from "@app/hooks/api/agentVault/queries";import { useCertManagerInstanceState } from "@app/hooks/api/certManagerInstance";import { useOrgAdminAccessProject } from "@app/hooks/api/orgAdmin/mutation";import { resolvePamProjectId } from "@app/hooks/api/pam/queries";@@ -137,6 +137,7 @@ export const ProjectCategoryOverview = () => {const { data: certManagerInstance } = useCertManagerInstanceState();const { data: productStats } = useGetOrgProductStats(currentOrg?.id ?? "");const orgAdminAccessProject = useOrgAdminAccessProject();+ const { enterAgentVault, agentVaultAccessRequest } = useEnterAgentVault();const [isRequestAccessOpen, setIsRequestAccessOpen] = useState(false);const [isCertManagerSetupOpen, setIsCertManagerSetupOpen] = useState(false);@@ -146,8 +147,6 @@ export const ProjectCategoryOverview = () => {);const [isPamRequestAccessOpen, setIsPamRequestAccessOpen] = useState(false);const [pendingPamProjectId, setPendingPamProjectId] = useState<string | null>(null);- const [isAgentVaultRequestAccessOpen, setIsAgentVaultRequestAccessOpen] = useState(false);- const [pendingAgentVaultProjectId, setPendingAgentVaultProjectId] = useState<string | null>(null);const [isSecretScanningRequestAccessOpen, setIsSecretScanningRequestAccessOpen] = useState(false);const [pendingSecretScanningProjectId, setPendingSecretScanningProjectId] = useState<string | null@@ -366,57 +365,6 @@ export const ProjectCategoryOverview = () => {}};- const navigateToAgentVault = () => {- navigate({- to: "/organizations/$orgId/agent-vault",- params: { orgId: currentOrg?.id ?? "" }- });- };-- const enterAgentVaultProject = async () => {- let agentVaultProjectId: string;- try {- agentVaultProjectId = currentOrg?.agentVaultProjectId ?? (await fetchAgentVaultProjectId());- } catch (err) {- createNotification({- type: "error",- text: err instanceof Error ? err.message : "Failed to resolve the Agent Vault project."- });- return;- }-- const isMember = projects.some((p) => p.id === agentVaultProjectId);- if (isMember) {- navigateToAgentVault();- return;- }-- setPendingAgentVaultProjectId(agentVaultProjectId);-- if (isOrgAdmin) {- try {- await orgAdminAccessProject.mutateAsync({ projectId: agentVaultProjectId });- navigateToAgentVault();- } catch (err) {- createNotification({- type: "error",- text: err instanceof Error ? err.message : "Failed to join the Agent Vault project."- });- }- return;- }-- if (canRequestAccess) {- setIsAgentVaultRequestAccessOpen(true);- return;- }-- createNotification({- type: "error",- text: "You don't have access to Agent Vault. Ask an Agent Vault admin to add you."- });- };-const navigateToSecretScanning = (projectId: string) => {if (currentOrg?.id) setSecretScanningActiveProjectCookie(currentOrg.id, projectId);navigate({@@ -522,7 +470,7 @@ export const ProjectCategoryOverview = () => {}if (type === ProjectType.AgentVault) {- await enterAgentVaultProject();+ await enterAgentVault();return;}@@ -585,13 +533,6 @@ export const ProjectCategoryOverview = () => {} as Project): undefined;- const agentVaultRequestAccessProject: Project | undefined = pendingAgentVaultProjectId- ? ({- id: pendingAgentVaultProjectId,- name: "Agent Vault"- } as Project)- : undefined;-return (<><div className="grid grid-cols-1 gap-5 lg:grid-cols-2">@@ -748,15 +689,7 @@ export const ProjectCategoryOverview = () => {subTitle="Requesting access to Secret Scanning. You may include an optional note for admins to review your request."/>- <RequestProjectAccessModal- isOpen={isAgentVaultRequestAccessOpen}- onOpenChange={(isOpen) => {- setIsAgentVaultRequestAccessOpen(isOpen);- if (!isOpen) setPendingAgentVaultProjectId(null);- }}- project={agentVaultRequestAccessProject}- subTitle="Requesting access to Agent Vault. You may include an optional note for admins to review your request."- />+ {agentVaultAccessRequest}<CertManagerNotConfiguredModalisOpen={isCertManagerSetupOpen}diff --git a/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx b/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsxindex b7512ea3b1..c2b1197cb6 100644--- a/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx+++ b/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx@@ -59,7 +59,6 @@ import {SecretAccessInsightsUpgradeIntent,SecretImportReplicationUpgradeIntent,SecretRotationsUpgradeIntent,- SecretsBrokeringUpgradeIntent,UpgradeIntent,useUpgradeGate} from "@app/components/license/UpgradeGate";@@ -67,7 +66,7 @@ import { createNotification } from "@app/components/notifications";import { PageTitle } from "@app/components/PageTitle";import { ProjectPermissionCan } from "@app/components/permissions";import {- CreateProxiedServiceModal,+ AgentProxyMovedModal,DeleteProxiedServiceModal,EditProxiedServiceModal} from "@app/components/proxied-services";@@ -3899,15 +3898,7 @@ const OverviewPageContent = () => {});},onAddHoneyToken: handleAddHoneyToken,- onAddProxiedService: () => {- if (subscription?.secretsBrokering) {- handlePopUpOpen("addProxiedService");- return;- }- openUpgradeGate({- intent: SecretsBrokeringUpgradeIntent- });- },+ onAddProxiedService: () => handlePopUpOpen("addProxiedService"),onCopySecrets: () =>handleOpenCopySecrets({origin: "toolbar",@@ -5220,13 +5211,9 @@ const OverviewPageContent = () => {isOpen={popUp.addHoneyToken.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("addHoneyToken", isOpen)}/>- <CreateProxiedServiceModal+ <AgentProxyMovedModalisOpen={popUp.addProxiedService.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("addProxiedService", isOpen)}- projectId={projectId}- environment={singleEnvSlug}- secretPath={secretPath}- existingNames={proxiedServiceNames}/><EditProxiedServiceModalisOpen={popUp.editProxiedService.isOpen}diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/AddResourceButtons/AddResourceButtons.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/AddResourceButtons/AddResourceButtons.tsxindex 188daca30f..f7adb4f160 100644--- a/frontend/src/pages/secret-manager/OverviewPage/components/AddResourceButtons/AddResourceButtons.tsx+++ b/frontend/src/pages/secret-manager/OverviewPage/components/AddResourceButtons/AddResourceButtons.tsx@@ -14,7 +14,6 @@ import {UploadIcon} from "lucide-react";-import { ProjectPermissionCan } from "@app/components/permissions";import {Button,DropdownMenu,@@ -31,8 +30,6 @@ import {TooltipContent,TooltipTrigger} from "@app/components/v3";-import { ProjectPermissionSub } from "@app/context";-import { ProjectPermissionProxiedServiceActions } from "@app/context/ProjectPermissionContext/types";import type {SecretsAddResourceAction,SecretsAddResourceMenuLevel,@@ -221,29 +218,10 @@ export function AddResourceButtons({Add Secret Rotation</DropdownMenuItem></MenuItemTooltip>- <ProjectPermissionCan- I={ProjectPermissionProxiedServiceActions.Create}- a={ProjectPermissionSub.ProxiedServices}- >- {(isAllowed) => (- <MenuItemTooltip- isDisabled={!isSingleEnvSelected || !isAllowed}- content={- !isAllowed- ? "Access Restricted"- : "Select a single environment to add a proxied service"- }- >- <DropdownMenuItem- onClick={selectAction("proxied-service", onAddProxiedService)}- isDisabled={!isSingleEnvSelected || !isAllowed}- >- <ChevronsLeftRightEllipsisIcon className="text-proxied-service" />- Add Proxied Service- </DropdownMenuItem>- </MenuItemTooltip>- )}- </ProjectPermissionCan>+ <DropdownMenuItem onClick={selectAction("proxied-service", onAddProxiedService)}>+ <ChevronsLeftRightEllipsisIcon className="text-proxied-service" />+ Add Proxied Service+ </DropdownMenuItem><MenuItemTooltipisDisabled={!isHoneyTokenAvailable || !canCreateHoneyTokens}content="Access Restricted"