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
improvement(agent-proxy): revamp proxied service create/edit with templates and a stepper (#7305)
Saif Ur Rahmanc37828c1f014
diff --git a/backend/src/db/migrations/20260716234217_drop-proxied-service-dynamic-secret-config.ts b/backend/src/db/migrations/20260716234217_drop-proxied-service-dynamic-secret-config.tsnew file mode 100644index 0000000000..7717d8ab79--- /dev/null+++ b/backend/src/db/migrations/20260716234217_drop-proxied-service-dynamic-secret-config.ts@@ -0,0 +1,23 @@+import { Knex } from "knex";++import { TableName } from "../schemas";++export async function up(knex: Knex): Promise<void> {+ const hasDynamicSecretConfig = await knex.schema.hasColumn(TableName.ProxiedServiceCredential, "dynamicSecretConfig");++ if (hasDynamicSecretConfig) {+ await knex.schema.alterTable(TableName.ProxiedServiceCredential, (t) => {+ t.dropColumn("dynamicSecretConfig");+ });+ }+}++export async function down(knex: Knex): Promise<void> {+ const hasDynamicSecretConfig = await knex.schema.hasColumn(TableName.ProxiedServiceCredential, "dynamicSecretConfig");++ if (!hasDynamicSecretConfig) {+ await knex.schema.alterTable(TableName.ProxiedServiceCredential, (t) => {+ t.jsonb("dynamicSecretConfig");+ });+ }+}diff --git a/backend/src/db/schemas/proxied-service-credentials.ts b/backend/src/db/schemas/proxied-service-credentials.tsindex aa908b3847..2dc64db50a 100644--- a/backend/src/db/schemas/proxied-service-credentials.ts+++ b/backend/src/db/schemas/proxied-service-credentials.ts@@ -21,8 +21,7 @@ export const ProxiedServiceCredentialsSchema = z.object({createdAt: z.date(),updatedAt: z.date(),dynamicSecretName: z.string().nullable().optional(),- dynamicSecretField: z.string().nullable().optional(),- dynamicSecretConfig: z.unknown().nullable().optional()+ dynamicSecretField: z.string().nullable().optional()});export type TProxiedServiceCredentials = z.infer<typeof ProxiedServiceCredentialsSchema>;diff --git a/backend/src/ee/services/proxied-service/proxied-service-brokerable-outputs.test.ts b/backend/src/ee/services/proxied-service/proxied-service-brokerable-outputs.test.tsindex 357e9d6cb0..6600a6f2dd 100644--- a/backend/src/ee/services/proxied-service/proxied-service-brokerable-outputs.test.ts+++ b/backend/src/ee/services/proxied-service/proxied-service-brokerable-outputs.test.ts@@ -12,16 +12,6 @@ describe("BROKERABLE_DYNAMIC_SECRETS", () => {});});- it("only Kubernetes carries a lease config schema", () => {- Object.entries(BROKERABLE_DYNAMIC_SECRETS).forEach(([provider, entry]) => {- if (provider === DynamicSecretProviders.Kubernetes) {- expect(entry?.leaseConfigSchema).toBeDefined();- } else {- expect(entry?.leaseConfigSchema).toBeUndefined();- }- });- });-it("does not broker database/ssh providers or metadata fields", () => {expect(BROKERABLE_DYNAMIC_SECRETS[DynamicSecretProviders.SqlDatabase]).toBeUndefined();expect(BROKERABLE_DYNAMIC_SECRETS[DynamicSecretProviders.AwsIam]).toBeUndefined();diff --git a/backend/src/ee/services/proxied-service/proxied-service-brokerable-outputs.ts b/backend/src/ee/services/proxied-service/proxied-service-brokerable-outputs.tsindex 3d2f980c38..a317800617 100644--- a/backend/src/ee/services/proxied-service/proxied-service-brokerable-outputs.ts+++ b/backend/src/ee/services/proxied-service/proxied-service-brokerable-outputs.ts@@ -1,19 +1,14 @@-import { z } from "zod";-import { DynamicSecretProviders } from "../dynamic-secret/providers/models";-// Providers a proxied service can broker over HTTP, with the eligible output fields and any lease config.+// Providers a proxied service can broker over HTTP, with the eligible output fields.// A provider not listed can't be brokered; a field not listed is blocked (e.g. metadata).// keep in sync with frontend/src/components/proxied-services/forms/brokerableDynamicSecrets.tstype TBrokerableDynamicSecret = {fields: string[];- leaseConfigSchema?: z.ZodTypeAny;};-const KubernetesLeaseConfigSchema = z.object({ namespace: z.string().trim().min(1).optional() }).strict();-export const BROKERABLE_DYNAMIC_SECRETS: Partial<Record<DynamicSecretProviders, TBrokerableDynamicSecret>> = {- [DynamicSecretProviders.Kubernetes]: { fields: ["TOKEN"], leaseConfigSchema: KubernetesLeaseConfigSchema },+ [DynamicSecretProviders.Kubernetes]: { fields: ["TOKEN"] },[DynamicSecretProviders.Github]: { fields: ["TOKEN"] },[DynamicSecretProviders.GcpIam]: { fields: ["TOKEN"] },[DynamicSecretProviders.IbmApiConnect]: { fields: ["CLIENT_ID", "CLIENT_SECRET"] },diff --git a/backend/src/ee/services/proxied-service/proxied-service-schemas.test.ts b/backend/src/ee/services/proxied-service/proxied-service-schemas.test.tsindex ae530acc83..623132d1f6 100644--- a/backend/src/ee/services/proxied-service/proxied-service-schemas.test.ts+++ b/backend/src/ee/services/proxied-service/proxied-service-schemas.test.ts@@ -166,9 +166,9 @@ describe("CredentialsArraySchema credential source (static vs dynamic)", () => {);});- it("rejects a static credential that also sets a dynamic field/config", () => {+ it("rejects a static credential that also sets a dynamic field", () => {expect(errorsOf([{ ...bearerHeader, secretKey: "K", dynamicSecretField: "DB_PASSWORD" }])).toContain(- "dynamicSecretField and dynamicSecretConfig are only valid with dynamicSecretName"+ "dynamicSecretField is only valid with dynamicSecretName");});diff --git a/backend/src/ee/services/proxied-service/proxied-service-schemas.ts b/backend/src/ee/services/proxied-service/proxied-service-schemas.tsindex 83d0a3c78f..b5f6df49cf 100644--- a/backend/src/ee/services/proxied-service/proxied-service-schemas.ts+++ b/backend/src/ee/services/proxied-service/proxied-service-schemas.ts@@ -73,13 +73,6 @@ export const hostPatternSchema = z});});-const DynamicSecretConfigSchema = z- .object({- namespace: z.string().trim().min(1).optional(),- principals: z.array(z.string().trim().min(1)).optional()- })- .strict();-const CredentialInputSchema = z.object({secretKey: z.string().trim().min(1).max(255).optional().describe(PROXIED_SERVICES.CREDENTIAL.secretKey),@@ -97,7 +90,6 @@ const CredentialInputSchema = z.max(255).optional().describe(PROXIED_SERVICES.CREDENTIAL.dynamicSecretField),- dynamicSecretConfig: DynamicSecretConfigSchema.optional().describe(PROXIED_SERVICES.CREDENTIAL.dynamicSecretConfig),role: z.nativeEnum(ProxiedServiceCredentialRole).describe(PROXIED_SERVICES.CREDENTIAL.role),headerName: z.string().trim().min(1).max(255).optional().describe(PROXIED_SERVICES.CREDENTIAL.headerName),headerPrefix: z.string().trim().max(255).optional().describe(PROXIED_SERVICES.CREDENTIAL.headerPrefix),@@ -133,10 +125,10 @@ const CredentialInputSchema = zmessage: "dynamicSecretField is required when dynamicSecretName is set"});}- } else if (cred.dynamicSecretField || cred.dynamicSecretConfig) {+ } else if (cred.dynamicSecretField) {ctx.addIssue({code: z.ZodIssueCode.custom,- message: "dynamicSecretField and dynamicSecretConfig are only valid with dynamicSecretName"+ message: "dynamicSecretField is only valid with dynamicSecretName"});}@@ -244,8 +236,7 @@ export const SanitizedProxiedServiceCredentialSchema = ProxiedServiceCredentialsplaceholderValue: true,substitutionSurfaces: true,dynamicSecretName: true,- dynamicSecretField: true,- dynamicSecretConfig: true+ dynamicSecretField: true});export const SanitizedProxiedServiceCredentialWithLeaseAccessSchema = SanitizedProxiedServiceCredentialSchema.extend({diff --git a/backend/src/ee/services/proxied-service/proxied-service-service.ts b/backend/src/ee/services/proxied-service/proxied-service-service.tsindex 93b9725c06..461e1ccf70 100644--- a/backend/src/ee/services/proxied-service/proxied-service-service.ts+++ b/backend/src/ee/services/proxied-service/proxied-service-service.ts@@ -10,8 +10,6 @@ import {import { BadRequestError, ForbiddenRequestError, NotFoundError } from "@app/lib/errors";import { prefixWithSlash, removeTrailingSlash } from "@app/lib/fn";import { OrgServiceActor, TDynamicSecretWithMetadata } from "@app/lib/types";-import { TKmsServiceFactory } from "@app/services/kms/kms-service";-import { KmsDataKey } from "@app/services/kms/kms-types";import { TProjectDALFactory } from "@app/services/project/project-dal";import { PersonalOverridesBehavior, SecretImportReferencesBehavior } from "@app/services/secret/secret-types";import { TSecretFolderDALFactory } from "@app/services/secret-folder/secret-folder-dal";@@ -50,7 +48,6 @@ type TProxiedServiceServiceFactoryDep = {licenseService: Pick<TLicenseServiceFactory, "getPlan">;dynamicSecretDAL: Pick<TDynamicSecretDALFactory, "findWithMetadata">;projectDAL: Pick<TProjectDALFactory, "findById">;- kmsService: Pick<TKmsServiceFactory, "createCipherPairWithDataKey">;};const toCredentialRow = (serviceId: string, credential: TProxiedServiceCredentialInput) => ({@@ -64,23 +61,13 @@ const toCredentialRow = (serviceId: string, credential: TProxiedServiceCredentiaplaceholderValue: credential.placeholderValue ?? null,substitutionSurfaces: credential.substitutionSurfaces ?? null,dynamicSecretName: credential.dynamicSecretName ?? null,- dynamicSecretField: credential.dynamicSecretField ?? null,- dynamicSecretConfig: credential.dynamicSecretConfig ?? null+ dynamicSecretField: credential.dynamicSecretField ?? null});type TCredentialRef = {secretKey?: string | null;dynamicSecretName?: string | null;dynamicSecretField?: string | null;- dynamicSecretConfig?: unknown;-};--const canonicalizeLeaseConfig = (config: unknown): string => {- if (!config || typeof config !== "object") return "";- const obj = config as Record<string, unknown>;- const keys = Object.keys(obj).sort();- if (!keys.length) return "";- return JSON.stringify(keys.map((k) => [k, obj[k]]));};export const proxiedServiceServiceFactory = ({@@ -91,8 +78,7 @@ export const proxiedServiceServiceFactory = ({permissionService,licenseService,dynamicSecretDAL,- projectDAL,- kmsService+ projectDAL}: TProxiedServiceServiceFactoryDep) => {const $checkLicense = async (orgId: string) => {const plan = await licenseService.getPlan(orgId);@@ -188,19 +174,6 @@ export const proxiedServiceServiceFactory = ({const dynamicCreds = credentials.filter((c) => Boolean(c.dynamicSecretName));if (!dynamicCreds.length) return;- const configByName = new Map<string, string>();- dynamicCreds.forEach((cred) => {- const name = cred.dynamicSecretName as string;- const canonical = canonicalizeLeaseConfig(cred.dynamicSecretConfig);- const seen = configByName.get(name);- if (seen !== undefined && seen !== canonical) {- throw new BadRequestError({- message: `Conflicting lease config for dynamic secret "${name}": all credentials referencing it must use the same config`- });- }- configByName.set(name, canonical);- });-const plan = await licenseService.getPlan(orgId);if (!plan.dynamicSecret) {throw new BadRequestError({@@ -236,57 +209,7 @@ export const proxiedServiceServiceFactory = ({message: `"${cred.dynamicSecretField}" is not a valid output field for dynamic secret "${ds.name}" (${ds.type}). Allowed: ${brokerable.fields.join(", ") || "none"}`});}-- if (cred.dynamicSecretConfig && Object.keys(cred.dynamicSecretConfig as object).length) {- if (!brokerable.leaseConfigSchema) {- throw new BadRequestError({- message: `Dynamic secret "${ds.name}" (${ds.type}) does not accept a lease config`- });- }- const parsed = brokerable.leaseConfigSchema.safeParse(cred.dynamicSecretConfig);- if (!parsed.success) {- throw new BadRequestError({- message: `Invalid lease config for dynamic secret "${ds.name}": ${parsed.error.issues.map((i) => i.message).join(", ")}`- });- }- }});-- const sshCreds = dynamicCreds.filter(- (c) => byName.get(c.dynamicSecretName as string)?.type === DynamicSecretProviders.Ssh- );- if (sshCreds.length) {- const { decryptor } = await kmsService.createCipherPairWithDataKey({- type: KmsDataKey.SecretManager,- projectId- });- const allowedByName = new Map<string, Set<string>>();- const allowedPrincipals = (name: string) => {- if (!allowedByName.has(name)) {- const ds = byName.get(name) as TDynamicSecretWithMetadata;- const decrypted = JSON.parse(decryptor({ cipherTextBlob: Buffer.from(ds.encryptedInput) }).toString()) as {- principals?: string[];- };- allowedByName.set(name, new Set(decrypted.principals ?? []));- }- return allowedByName.get(name) as Set<string>;- };-- sshCreds.forEach((cred) => {- const name = cred.dynamicSecretName as string;- const requested = (cred.dynamicSecretConfig as { principals?: string[] } | undefined)?.principals ?? [];- if (!requested.length) {- throw new BadRequestError({ message: `SSH dynamic secret "${name}" requires at least one principal` });- }- const allowed = allowedPrincipals(name);- const invalid = requested.filter((p) => !allowed.has(p));- if (invalid.length) {- throw new BadRequestError({- message: `Principal(s) not allowed for dynamic secret "${name}": ${invalid.join(", ")}`- });- }- });- }};const $decorateCredentialsWithLeaseAccess = async <T extends TCredentialRef>(diff --git a/backend/src/ee/services/proxied-service/proxied-service-types.ts b/backend/src/ee/services/proxied-service/proxied-service-types.tsindex ab5fca436f..7067f9e889 100644--- a/backend/src/ee/services/proxied-service/proxied-service-types.ts+++ b/backend/src/ee/services/proxied-service/proxied-service-types.ts@@ -1,4 +1,3 @@-import { TDynamicSecretLeaseConfig } from "@app/ee/services/dynamic-secret-lease/dynamic-secret-lease-types";import { OrderByDirection } from "@app/lib/types";import {@@ -11,7 +10,6 @@ export type TProxiedServiceCredentialInput = {secretKey?: string | null;dynamicSecretName?: string | null;dynamicSecretField?: string | null;- dynamicSecretConfig?: TDynamicSecretLeaseConfig | null;role: ProxiedServiceCredentialRole;headerName?: string | null;headerPrefix?: string | null;diff --git a/backend/src/lib/api-docs/constants.ts b/backend/src/lib/api-docs/constants.tsindex a6a17f5a81..5f96b49b01 100644--- a/backend/src/lib/api-docs/constants.ts+++ b/backend/src/lib/api-docs/constants.ts@@ -1646,8 +1646,6 @@ export const PROXIED_SERVICES = {"The name of the referenced dynamic secret. The dynamic secret must live in the same folder as the service; the agent proxy mints a lease and injects a field from its output. Provide exactly one of secretKey or dynamicSecretName. Referenced by name (like secretKey), so a deleted-then-recreated dynamic secret with the same name re-links automatically.",dynamicSecretField:"For a dynamic secret credential: which lease output field to inject (e.g. 'DB_PASSWORD', 'TOKEN'). Must be a valid output field for the dynamic secret's provider type.",- dynamicSecretConfig:- "For a dynamic secret credential: optional per-lease config passed when minting (e.g. { namespace } for kubernetes, { principals } for ssh).",role: "How the credential is applied: 'header-rewrite' sets an HTTP header on the outbound request; 'credential-substitution' replaces a placeholder value in the request.",headerName: "For header rewriting: the header to set, e.g. 'Authorization' or 'x-api-key'.",headerPrefix: "For header rewriting: an optional prefix joined to the secret value with a space, e.g. 'Bearer'.",diff --git a/backend/src/server/routes/index.ts b/backend/src/server/routes/index.tsindex 7c8611744a..0ea58a88a1 100644--- a/backend/src/server/routes/index.ts+++ b/backend/src/server/routes/index.ts@@ -2963,8 +2963,7 @@ export const registerRoutes = async (permissionService,licenseService,dynamicSecretDAL,- projectDAL,- kmsService+ projectDAL});const agentProxyCaService = agentProxyCaServiceFactory({diff --git a/docs/cli/commands/agent-proxy.mdx b/docs/cli/commands/agent-proxy.mdxindex 97d07ab08b..e58cea8270 100644--- a/docs/cli/commands/agent-proxy.mdx+++ b/docs/cli/commands/agent-proxy.mdx@@ -113,6 +113,37 @@ $ infisical secrets agent-proxy start --port 17322 --unmatched-host=blockinfisical secrets agent-proxy start --client-id=<client-id> --client-secret=<client-secret>```</Accordion>++ <Accordion title="--log-format">+ Output format for the proxy's logs, including [per-request activity](/documentation/platform/agent-proxy/activity-logs): `console` (human-readable, colorized in a terminal and plain otherwise) or `json` (machine). Logs are written to stderr.++ ```bash+ # Example+ infisical secrets agent-proxy start --log-format=json+ ```++ Default value: `console`+ </Accordion>++ <Accordion title="--log-file">+ Also write logs as `json` to this file, in addition to the console/json stream. Lets you watch the console and persist machine-readable logs at the same time. Rotate it with `logrotate` (`copytruncate`) or restart the proxy.++ ```bash+ # Example+ infisical secrets agent-proxy start --log-file=/var/log/infisical/agent-proxy.log+ ```+ </Accordion>++ <Accordion title="--log-level">+ Controls how much is logged. Each [activity decision](/documentation/platform/agent-proxy/activity-logs) maps to a level (`passthrough`=debug, `brokered`=info, `blocked`=warn, `error`=error), so this doubles as the activity filter: `debug` shows everything, the default `info` hides passthrough, `warn` shows only blocked and errors.++ ```bash+ # Example+ infisical secrets agent-proxy start --log-level=warn+ ```++ Default value: `info`+ </Accordion></Accordion><Accordion title="infisical secrets agent-proxy connect">diff --git a/docs/docs.json b/docs/docs.jsonindex a33dc14627..c611bf1fa4 100644--- a/docs/docs.json+++ b/docs/docs.json@@ -626,6 +626,7 @@"documentation/platform/agent-proxy/overview","documentation/platform/agent-proxy/quickstart","documentation/platform/agent-proxy/proxied-services",+ "documentation/platform/agent-proxy/activity-logs","documentation/platform/agent-proxy/security"]}diff --git a/docs/documentation/platform/agent-proxy/activity-logs.mdx b/docs/documentation/platform/agent-proxy/activity-logs.mdxnew file mode 100644index 0000000000..e3fbd89cc5--- /dev/null+++ b/docs/documentation/platform/agent-proxy/activity-logs.mdx@@ -0,0 +1,96 @@+---+title: "Activity Logs"+sidebarTitle: "Activity Logs"+description: "See what the agent proxy brokered on every request through its log stream, then ship it wherever you want."+---++The agent proxy logs one entry for every request it handles, in its normal log stream alongside its operational logs — nothing separate to enable. You ship that stream yourself (Infisical never stores it): point a collector like Fluent Bit or the OpenTelemetry Collector at it to forward to Splunk, Datadog, Elastic, or anywhere.++<Note>+ Only requests that reach the forwarding stage are logged. Requests rejected earlier (malformed proxy auth, an invalid `CONNECT` target, TLS failures) never reach it and aren't logged. A request whose identity can't be resolved at forwarding is still logged as an `error`, just with an empty agent.+</Note>++## What's in a record++Each request is logged with these fields (plus the standard `time`, `level`, and `message`):++| Field | Meaning |+| --- | --- |+| `event` | Always `agent-proxy.request`, so activity is easy to filter from other logs |+| `decision` | `brokered`, `passthrough`, `blocked`, or `error` |+| `agentId` / `agentName` | The agent that made the request, read from its access token |+| `projectId` / `environment` / `secretPath` | The folder the request was scoped to |+| `serviceName` / `serviceId` | The matched proxied service (omitted when none matched) |+| `method` / `host` / `port` / `path` | The request line, before substitution (so `path` shows the placeholder) |+| `status` | Upstream status on `brokered` / `passthrough`; `403` on `blocked`; `502` on `error` |+| `credentials` | What was injected: each entry's secret key (or, for a dynamic secret, its name and output field), and the header or surfaces it landed in |++<Warning>+ A record never contains a real secret. The proxy logs the request as the agent sent it, before the real value is swapped in, so `path` only ever shows the placeholder. The `credentials` list records secret **names** and where they were applied, never values, and header values and request bodies are never logged.+</Warning>++## Log levels++Each decision is logged at a level, so `--log-level` controls how much you see: the default `info` hides passthrough, `debug` shows everything, `warn` shows only blocked and errors.++| decision | level |+| --- | --- |+| `passthrough` | debug |+| `brokered` | info |+| `blocked` | warn |+| `error` | error |++## Output format and destination++| Flag | Values | Default |+| --- | --- | --- |+| `--log-format` | `console` \| `json` | `console` |+| `--log-file` | file path | none |++`--log-format` sets the shape: `console` (the default — human-readable, colorized in a terminal and plain when redirected or in a container) or `json` for machines and SIEMs. Logs go to **stderr** (capture with `2>` or `2>&1`). `--log-file` also writes `json` to a file, so you can watch the console **and** persist machine-readable logs at once.++<Tabs>+ <Tab title="console (human)">+ ```text+ 2026-07-17T14:32:09 INF agent request event=agent-proxy.request decision=brokered agentName=claude-agent serviceName=stripe-api method=POST host=api.stripe.com path=/v1/charges status=200 credentials=[{"key":"STRIPE_API_KEY","role":"header-rewrite","header":"Authorization"}]+ 2026-07-17T14:32:12 WRN agent request event=agent-proxy.request decision=blocked agentName=claude-agent host=evil.example.com method=GET status=403+ ```+ </Tab>+ <Tab title="json (machine)">+ ```json+ {"level":"info","time":"2026-07-17T14:32:09+05:30","message":"agent request","event":"agent-proxy.request","decision":"brokered","agentId":"9c1e40cf-...","agentName":"claude-agent","projectId":"53c8b330-...","environment":"prod","secretPath":"/ai-agents","serviceName":"stripe-api","method":"POST","host":"api.stripe.com","port":443,"path":"/v1/charges","status":200,"credentials":[{"key":"STRIPE_API_KEY","role":"header-rewrite","header":"Authorization"}]}+ ```+ </Tab>+ <Tab title="dynamic secret">+ A brokered credential backed by a [dynamic secret](/documentation/platform/dynamic-secrets/overview) records its name and output field instead of a static key:+ ```json+ "credentials":[{"dynamicSecretName":"my-postgres-creds","dynamicSecretField":"DB_PASSWORD","role":"header-rewrite","header":"Authorization"}]+ ```+ </Tab>+</Tabs>++## Common setups++```bash+# Watch live, readable (default)+infisical secrets agent-proxy start++# Watch the console and also persist json (e.g. for a SIEM)+infisical secrets agent-proxy start --log-file /var/log/infisical/agent-proxy.log++# Container: json on stderr for your platform to collect+infisical secrets agent-proxy start --log-format json+```++For rotation, containers let the platform rotate the stream; for `--log-file`, use `logrotate` with `copytruncate` (or restart the proxy).++## Next steps++<CardGroup cols={2}>+ <Card title="agent-proxy CLI reference" icon="terminal" href="/cli/commands/agent-proxy">+ Every flag for `start` and `connect`, including the logging options.+ </Card>+ <Card title="Audit Logs" icon="scroll" href="/documentation/platform/audit-logs">+ Configuration changes to your proxied services are recorded in Infisical's own audit trail.+ </Card>+</CardGroup>diff --git a/docs/documentation/platform/agent-proxy/overview.mdx b/docs/documentation/platform/agent-proxy/overview.mdxindex 75e11e9825..9c18f7fa5d 100644--- a/docs/documentation/platform/agent-proxy/overview.mdx+++ b/docs/documentation/platform/agent-proxy/overview.mdx@@ -81,13 +81,16 @@ Standalone credential proxies manage their own keys, users, and permissions in i## Next Steps-<CardGroup cols={3}>+<CardGroup cols={2}><Card title="Quickstart" icon="rocket" href="/documentation/platform/agent-proxy/quickstart">Broker your first credential to an agent in a few minutes.</Card><Card title="Proxied Services" icon="right-left" href="/documentation/platform/agent-proxy/proxied-services">Host patterns, header rewriting, and credential substitution.</Card>+ <Card title="Activity Logs" icon="list-timeline" href="/documentation/platform/agent-proxy/activity-logs">+ Record what the proxy brokered on every request, and ship it to your SIEM.+ </Card><Card title="Security & Architecture" icon="shield-halved" href="/documentation/platform/agent-proxy/security">Agent authentication, isolation, certificates, and high availability.</Card>diff --git a/docs/documentation/platform/agent-proxy/proxied-services.mdx b/docs/documentation/platform/agent-proxy/proxied-services.mdxindex 6f97767783..b6cc4e39dc 100644--- a/docs/documentation/platform/agent-proxy/proxied-services.mdx+++ b/docs/documentation/platform/agent-proxy/proxied-services.mdx@@ -130,7 +130,7 @@ Either way, the value is fully resolved before the proxy applies it.A credential can reference a [dynamic secret](/documentation/platform/dynamic-secrets/overview) instead of a static secret. Instead of injecting a fixed value, the agent proxy mints a short-lived lease and injects one of its output fields (for example a database password, a GitHub App token, or a Kubernetes service-account token). Because the value rotates on its own at the lease TTL, a credential that leaks is worthless shortly after.-In the credential form, choose a dynamic secret from the **Dynamic Secrets** group of the secret picker, then pick which **Output Field** of the lease to inject. Each provider exposes different fields (SQL databases give `DB_USERNAME` / `DB_PASSWORD`, GitHub gives a `TOKEN`, and so on); pick the field you want to inject. Basic auth works by pointing the username and password at two fields of the same dynamic secret. Some providers accept a per-lease input, such as a **Namespace** for Kubernetes, which you set on the credential.+In the credential form, choose a dynamic secret from the **Dynamic Secrets** group of the secret picker, then pick which **Output Field** of the lease to inject. Each provider exposes different fields (SQL databases give `DB_USERNAME` / `DB_PASSWORD`, GitHub gives a `TOKEN`, and so on); pick the field you want to inject. Basic auth works by pointing the username and password at two fields of the same dynamic secret.How the agent proxy handles the lease:@@ -174,7 +174,7 @@ curl -X POST https://app.infisical.com/api/v1/proxied-services \Header-rewrite credentials use `"role": "header-rewrite"` with `headerName` and an optional `headerPrefix`, or `headerPurpose` (`username`/`password`) for basic auth.-To reference a dynamic secret, replace `secretKey` on a credential with `dynamicSecretName` and `dynamicSecretField` (and an optional `dynamicSecretConfig`, e.g. `{ "namespace": "prod" }` for Kubernetes):+To reference a dynamic secret, replace `secretKey` on a credential with `dynamicSecretName` and `dynamicSecretField`:```json{diff --git a/frontend/public/images/integrations/Cohere.svg b/frontend/public/images/integrations/Cohere.svgnew file mode 100644index 0000000000..c3dc5007ae--- /dev/null+++ b/frontend/public/images/integrations/Cohere.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="enable-background:new 0 0 75 75" viewBox="0 0 75 75"><path d="M24.3 44.7c2 0 6-.1 11.6-2.4 6.5-2.7 19.3-7.5 28.6-12.5 6.5-3.5 9.3-8.1 9.3-14.3C73.8 7 66.9 0 58.3 0h-36C10 0 0 10 0 22.3s9.4 22.4 24.3 22.4z" style="fill-rule:evenodd;clip-rule:evenodd;fill:#39594d"/><path d="M30.4 60c0-6 3.6-11.5 9.2-13.8l11.3-4.7C62.4 36.8 75 45.2 75 57.6 75 67.2 67.2 75 57.6 75H45.3c-8.2 0-14.9-6.7-14.9-15z" style="fill-rule:evenodd;clip-rule:evenodd;fill:#d18ee2"/><path d="M12.9 47.6C5.8 47.6 0 53.4 0 60.5v1.7C0 69.2 5.8 75 12.9 75c7.1 0 12.9-5.8 12.9-12.9v-1.7c-.1-7-5.8-12.8-12.9-12.8z" style="fill:#ff7759"/></svg>\ No newline at end of filediff --git a/frontend/public/images/integrations/DeepSeek.svg b/frontend/public/images/integrations/DeepSeek.svgnew file mode 100644index 0000000000..1401c17cbf--- /dev/null+++ b/frontend/public/images/integrations/DeepSeek.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" style="flex:none;line-height:1" viewBox="0 0 24 24"><path fill="#4D6BFE" d="M23.748 4.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526 5.526 0 0 1-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365 11.365 0 0 0-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055 3.055 0 0 1-.465.137 9.597 9.597 0 0 0-2.883-.102c-1.885.21-3.39 1.102-4.497 2.623C.082 8.606-.231 10.684.152 12.85c.403 2.284 1.569 4.175 3.36 5.653 1.858 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.133-.284 4.994-1.86.47.234.962.327 1.78.397.63.059 1.236-.03 1.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926 1.096-1.296 2.746-2.642 3.392-7.003.05-.347.007-.565 0-.845-.004-.17.035-.237.23-.256a4.173 4.173 0 0 0 1.545-.475c1.396-.763 1.96-2.015 2.093-3.517.02-.23-.004-.467-.247-.588zM11.581 18c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696 4.696 0 0 1 1.529-.039c2.132.312 3.946 1.265 5.468 2.774.868.86 1.525 1.887 2.202 2.891.72 1.066 1.494 2.082 2.48 2.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306 0 0 1 .415-.287.302.302 0 0 1 .2.288.306.306 0 0 1-.31.307.303.303 0 0 1-.304-.308zm3.11 1.596c-.2.081-.399.151-.59.16a1.245 1.245 0 0 1-.798-.254c-.274-.23-.47-.358-.552-.758a1.73 1.73 0 0 1 .016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559 0 0 1-.254-.078.253.253 0 0 1-.114-.358c.028-.054.16-.186.192-.21.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z"/></svg>\ No newline at end of filediff --git a/frontend/public/images/integrations/Discord.svg b/frontend/public/images/integrations/Discord.svgnew file mode 100644index 0000000000..e6c391a6ba--- /dev/null+++ b/frontend/public/images/integrations/Discord.svg@@ -0,0 +1 @@+<svg viewBox="0 0 256 199" width="256" height="199" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid"><path d="M216.856 16.597A208.502 208.502 0 0 0 164.042 0c-2.275 4.113-4.933 9.645-6.766 14.046-19.692-2.961-39.203-2.961-58.533 0-1.832-4.4-4.55-9.933-6.846-14.046a207.809 207.809 0 0 0-52.855 16.638C5.618 67.147-3.443 116.4 1.087 164.956c22.169 16.555 43.653 26.612 64.775 33.193A161.094 161.094 0 0 0 79.735 175.3a136.413 136.413 0 0 1-21.846-10.632 108.636 108.636 0 0 0 5.356-4.237c42.122 19.702 87.89 19.702 129.51 0a131.66 131.66 0 0 0 5.355 4.237 136.07 136.07 0 0 1-21.886 10.653c4.006 8.02 8.638 15.67 13.873 22.848 21.142-6.58 42.646-16.637 64.815-33.213 5.316-56.288-9.08-105.09-38.056-148.36ZM85.474 135.095c-12.645 0-23.015-11.805-23.015-26.18s10.149-26.2 23.015-26.2c12.867 0 23.236 11.804 23.015 26.2.02 14.375-10.148 26.18-23.015 26.18Zm85.051 0c-12.645 0-23.014-11.805-23.014-26.18s10.148-26.2 23.014-26.2c12.867 0 23.236 11.804 23.015 26.2 0 14.375-10.148 26.18-23.015 26.18Z" fill="#5865F2"/></svg>\ No newline at end of filediff --git a/frontend/public/images/integrations/Gemini.svg b/frontend/public/images/integrations/Gemini.svgnew file mode 100644index 0000000000..f8d7189dc6--- /dev/null+++ b/frontend/public/images/integrations/Gemini.svg@@ -0,0 +1 @@+<svg viewBox="0 0 296 298" xmlns="http://www.w3.org/2000/svg" width="296" height="298" fill="none"><mask id="a" width="296" height="298" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#3186FF" d="M141.201 4.886c2.282-6.17 11.042-6.071 13.184.148l5.985 17.37a184.004 184.004 0 0 0 111.257 113.049l19.304 6.997c6.143 2.227 6.156 10.91.02 13.155l-19.35 7.082a184.001 184.001 0 0 0-109.495 109.385l-7.573 20.629c-2.241 6.105-10.869 6.121-13.133.025l-7.908-21.296a184 184 0 0 0-109.02-108.658l-19.698-7.239c-6.102-2.243-6.118-10.867-.025-13.132l20.083-7.467A183.998 183.998 0 0 0 133.291 26.28l7.91-21.394Z"/></mask><g mask="url(#a)"><g filter="url(#b)"><ellipse cx="163" cy="149" fill="#3689FF" rx="196" ry="159"/></g><g filter="url(#c)"><ellipse cx="33.5" cy="142.5" fill="#F6C013" rx="68.5" ry="72.5"/></g><g filter="url(#d)"><ellipse cx="19.5" cy="148.5" fill="#F6C013" rx="68.5" ry="72.5"/></g><g filter="url(#e)"><path fill="#FA4340" d="M194 10.5C172 82.5 65.5 134.333 22.5 135L144-66l50 76.5Z"/></g><g filter="url(#f)"><path fill="#FA4340" d="M190.5-12.5C168.5 59.5 62 111.333 19 112L140.5-89l50 76.5Z"/></g><g filter="url(#g)"><path fill="#14BB69" d="M194.5 279.5C172.5 207.5 66 155.667 23 155l121.5 201 50-76.5Z"/></g><g filter="url(#h)"><path fill="#14BB69" d="M196.5 320.5C174.5 248.5 68 196.667 25 196l121.5 201 50-76.5Z"/></g></g><defs><filter id="b" width="464" height="390" x="-69" y="-46" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_69_17998" stdDeviation="18"/></filter><filter id="c" width="265" height="273" x="-99" y="6" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_69_17998" stdDeviation="32"/></filter><filter id="d" width="265" height="273" x="-113" y="12" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_69_17998" stdDeviation="32"/></filter><filter id="e" width="299.5" height="329" x="-41.5" y="-130" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_69_17998" stdDeviation="32"/></filter><filter id="f" width="299.5" height="329" x="-45" y="-153" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_69_17998" stdDeviation="32"/></filter><filter id="g" width="299.5" height="329" x="-41" y="91" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_69_17998" stdDeviation="32"/></filter><filter id="h" width="299.5" height="329" x="-39" y="132" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_69_17998" stdDeviation="32"/></filter></defs></svg>\ No newline at end of filediff --git a/frontend/public/images/integrations/Groq.svg b/frontend/public/images/integrations/Groq.svgnew file mode 100644index 0000000000..cf90d287b1--- /dev/null+++ b/frontend/public/images/integrations/Groq.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 201 201"><path fill="#F54F35" d="M0 0h201v201H0V0Z"/><path fill="#FEFBFB" d="m128 49 1.895 1.52C136.336 56.288 140.602 64.49 142 73c.097 1.823.148 3.648.161 5.474l.03 3.247.012 3.482.017 3.613c.01 2.522.016 5.044.02 7.565.01 3.84.041 7.68.072 11.521.007 2.455.012 4.91.016 7.364l.038 3.457c-.033 11.717-3.373 21.83-11.475 30.547-4.552 4.23-9.148 7.372-14.891 9.73l-2.387 1.055c-9.275 3.355-20.3 2.397-29.379-1.13-5.016-2.38-9.156-5.17-13.234-8.925 3.678-4.526 7.41-8.394 12-12l3.063 2.375c5.572 3.958 11.135 5.211 17.937 4.625 6.96-1.384 12.455-4.502 17-10 4.174-6.784 4.59-12.222 4.531-20.094l.012-3.473c.003-2.414-.005-4.827-.022-7.241-.02-3.68 0-7.36.026-11.04-.003-2.353-.008-4.705-.016-7.058l.025-3.312c-.098-7.996-1.732-13.21-6.681-19.47-6.786-5.458-13.105-8.211-21.914-7.792-7.327 1.188-13.278 4.7-17.777 10.601C75.472 72.012 73.86 78.07 75 85c2.191 7.547 5.019 13.948 12 18 5.848 3.061 10.892 3.523 17.438 3.688l2.794.103c2.256.082 4.512.147 6.768.209v16c-16.682.673-29.615.654-42.852-10.848-8.28-8.296-13.338-19.55-13.71-31.277.394-9.87 3.93-17.894 9.562-25.875l1.688-2.563C84.698 35.563 110.05 34.436 128 49Z"/></svg>\ No newline at end of filediff --git a/frontend/public/images/integrations/Jira.svg b/frontend/public/images/integrations/Jira.svgnew file mode 100644index 0000000000..1bb9167366--- /dev/null+++ b/frontend/public/images/integrations/Jira.svg@@ -0,0 +1 @@+<svg fill="#0052CC" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Jira</title><path d="M11.571 11.513H0a5.218 5.218 0 0 0 5.232 5.215h2.13v2.057A5.215 5.215 0 0 0 12.575 24V12.518a1.005 1.005 0 0 0-1.005-1.005zm5.723-5.756H5.736a5.215 5.215 0 0 0 5.215 5.214h2.129v2.058a5.218 5.218 0 0 0 5.215 5.214V6.758a1.001 1.001 0 0 0-1.001-1.001zM23.013 0H11.455a5.215 5.215 0 0 0 5.215 5.215h2.129v2.057A5.215 5.215 0 0 0 24 12.483V1.005A1.001 1.001 0 0 0 23.013 0Z"/></svg>\ No newline at end of filediff --git a/frontend/public/images/integrations/Linear.svg b/frontend/public/images/integrations/Linear.svgnew file mode 100644index 0000000000..99209b4884--- /dev/null+++ b/frontend/public/images/integrations/Linear.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" fill="none" viewBox="0 0 100 100"><path fill="#5E6AD2" d="M1.225 61.523c-.222-.949.908-1.546 1.597-.857l36.512 36.512c.69.69.092 1.82-.857 1.597-18.425-4.323-32.93-18.827-37.252-37.252ZM.002 46.889a.99.99 0 0 0 .29.76L52.35 99.71c.201.2.478.307.76.29 2.37-.149 4.695-.46 6.963-.927.765-.157 1.03-1.096.478-1.648L2.576 39.448c-.552-.551-1.491-.286-1.648.479a50.067 50.067 0 0 0-.926 6.962ZM4.21 29.705a.988.988 0 0 0 .208 1.1l64.776 64.776c.289.29.726.375 1.1.208a49.908 49.908 0 0 0 5.185-2.684.981.981 0 0 0 .183-1.54L8.436 24.336a.981.981 0 0 0-1.541.183 49.896 49.896 0 0 0-2.684 5.185Zm8.448-11.631a.986.986 0 0 1-.045-1.354C21.78 6.46 35.111 0 49.952 0 77.592 0 100 22.407 100 50.048c0 14.84-6.46 28.172-16.72 37.338a.986.986 0 0 1-1.354-.045L12.659 18.074Z"/></svg>\ No newline at end of filediff --git a/frontend/public/images/integrations/Mistral.svg b/frontend/public/images/integrations/Mistral.svgnew file mode 100644index 0000000000..26f5913d73--- /dev/null+++ b/frontend/public/images/integrations/Mistral.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid" viewBox="0 0 256 233"><path d="M186.18182 0h46.54545v46.54545h-46.54545z"/><path fill="#F7D046" d="M209.45454 0h46.54545v46.54545h-46.54545z"/><path d="M0 0h46.54545v46.54545H0zM0 46.54545h46.54545V93.0909H0zM0 93.09091h46.54545v46.54545H0zM0 139.63636h46.54545v46.54545H0zM0 186.18182h46.54545v46.54545H0z"/><path fill="#F7D046" d="M23.27273 0h46.54545v46.54545H23.27273z"/><path fill="#F2A73B" d="M209.45454 46.54545h46.54545V93.0909h-46.54545zM23.27273 46.54545h46.54545V93.0909H23.27273z"/><path d="M139.63636 46.54545h46.54545V93.0909h-46.54545z"/><path fill="#F2A73B" d="M162.90909 46.54545h46.54545V93.0909h-46.54545zM69.81818 46.54545h46.54545V93.0909H69.81818z"/><path fill="#EE792F" d="M116.36364 93.09091h46.54545v46.54545h-46.54545zM162.90909 93.09091h46.54545v46.54545h-46.54545zM69.81818 93.09091h46.54545v46.54545H69.81818z"/><path d="M93.09091 139.63636h46.54545v46.54545H93.09091z"/><path fill="#EB5829" d="M116.36364 139.63636h46.54545v46.54545h-46.54545z"/><path fill="#EE792F" d="M209.45454 93.09091h46.54545v46.54545h-46.54545zM23.27273 93.09091h46.54545v46.54545H23.27273z"/><path d="M186.18182 139.63636h46.54545v46.54545h-46.54545z"/><path fill="#EB5829" d="M209.45454 139.63636h46.54545v46.54545h-46.54545z"/><path d="M186.18182 186.18182h46.54545v46.54545h-46.54545z"/><path fill="#EB5829" d="M23.27273 139.63636h46.54545v46.54545H23.27273z"/><path fill="#EA3326" d="M209.45454 186.18182h46.54545v46.54545h-46.54545zM23.27273 186.18182h46.54545v46.54545H23.27273z"/></svg>\ No newline at end of filediff --git a/frontend/public/images/integrations/NPM.svg b/frontend/public/images/integrations/NPM.svgnew file mode 100644index 0000000000..cc69e90abb--- /dev/null+++ b/frontend/public/images/integrations/NPM.svg@@ -0,0 +1 @@+<svg viewBox="0 0 2500 2500" xmlns="http://www.w3.org/2000/svg" width="2500" height="2500"><path fill="#c00" d="M0 0h2500v2500H0z"/><path fill="#fff" d="M1241.5 268.5h-973v1962.9h972.9V763.5h495v1467.9h495V268.5z"/></svg>\ No newline at end of filediff --git a/frontend/public/images/integrations/Notion.svg b/frontend/public/images/integrations/Notion.svgnew file mode 100644index 0000000000..fd68d140fc--- /dev/null+++ b/frontend/public/images/integrations/Notion.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="256" height="268" preserveAspectRatio="xMidYMid" viewBox="0 0 256 268"><path fill="#FFF" d="M16.092 11.538 164.09.608c18.179-1.56 22.85-.508 34.28 7.801l47.243 33.282C253.406 47.414 256 48.975 256 55.207v182.527c0 11.439-4.155 18.205-18.696 19.24L65.44 267.378c-10.913.517-16.11-1.043-21.825-8.327L8.826 213.814C2.586 205.487 0 199.254 0 191.97V29.726c0-9.352 4.155-17.153 16.092-18.188Z"/><path d="M164.09.608 16.092 11.538C4.155 12.573 0 20.374 0 29.726v162.245c0 7.284 2.585 13.516 8.826 21.843l34.789 45.237c5.715 7.284 10.912 8.844 21.825 8.327l171.864-10.404c14.532-1.035 18.696-7.801 18.696-19.24V55.207c0-5.911-2.336-7.614-9.21-12.66l-1.185-.856L198.37 8.409C186.94.1 182.27-.952 164.09.608ZM69.327 52.22c-14.033.945-17.216 1.159-25.186-5.323L23.876 30.778c-2.06-2.086-1.026-4.69 4.163-5.207l142.274-10.395c11.947-1.043 18.17 3.12 22.842 6.758l24.401 17.68c1.043.525 3.638 3.637.517 3.637L71.146 52.095l-1.819.125Zm-16.36 183.954V81.222c0-6.767 2.077-9.887 8.3-10.413L230.02 60.93c5.724-.517 8.31 3.12 8.31 9.879v153.917c0 6.767-1.044 12.49-10.387 13.008l-161.487 9.361c-9.343.517-13.489-2.594-13.489-10.921ZM212.377 89.53c1.034 4.681 0 9.362-4.681 9.897l-7.783 1.542v114.404c-6.758 3.637-12.981 5.715-18.18 5.715-8.308 0-10.386-2.604-16.609-10.396l-50.898-80.079v77.476l16.1 3.646s0 9.362-12.989 9.362l-35.814 2.077c-1.043-2.086 0-7.284 3.63-8.318l9.351-2.595V109.823l-12.98-1.052c-1.044-4.68 1.55-11.439 8.826-11.965l38.426-2.585 52.958 81.113v-71.76l-13.498-1.552c-1.043-5.733 3.111-9.896 8.3-10.404l35.84-2.087Z"/></svg>\ No newline at end of filediff --git a/frontend/public/images/integrations/PagerDuty.svg b/frontend/public/images/integrations/PagerDuty.svgnew file mode 100644index 0000000000..f9dffb1e0a--- /dev/null+++ b/frontend/public/images/integrations/PagerDuty.svg@@ -0,0 +1 @@+<svg fill="#06AC38" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>PagerDuty</title><path d="M16.965 1.18C15.085.164 13.769 0 10.683 0H3.73v14.55h6.926c2.743 0 4.8-.164 6.61-1.37 1.975-1.303 3.004-3.484 3.004-6.007 0-2.716-1.262-4.896-3.305-5.994zm-5.5 10.326h-4.21V3.113l3.977-.027c3.62-.028 5.43 1.234 5.43 4.128 0 3.113-2.248 4.292-5.197 4.292zM3.73 17.61h3.525V24H3.73Z"/></svg>\ No newline at end of filediff --git a/frontend/public/images/integrations/Perplexity.svg b/frontend/public/images/integrations/Perplexity.svgnew file mode 100644index 0000000000..5091b5a0e2--- /dev/null+++ b/frontend/public/images/integrations/Perplexity.svg@@ -0,0 +1,24 @@+<svg+xmlns="http://www.w3.org/2000/svg"+width="80"+height="80"+viewBox="0 0 48 48">+<path+fill="none"+stroke="#20808d"+stroke-linecap="round"+stroke-linejoin="round"+d="M24 4.5v39M13.73 16.573v-9.99L24 16.573m0 14.5L13.73 41.417V27.01L24 16.573m0 0l10.27-9.99v9.99"/>+<path+fill="none"+stroke="#20808d"+stroke-linecap="round"+stroke-linejoin="round"+d="M13.73 31.396H9.44V16.573h29.12v14.823h-4.29"/>+<path+fill="none"+stroke="#20808d"+stroke-linecap="round"+stroke-linejoin="round"+d="M24 16.573L34.27 27.01v14.407L24 31.073"/>+</svg>\ No newline at end of filediff --git a/frontend/public/images/integrations/Postmark.png b/frontend/public/images/integrations/Postmark.pngnew file mode 100644index 0000000000..7819e1c0d3Binary files /dev/null and b/frontend/public/images/integrations/Postmark.png differdiff --git a/frontend/public/images/integrations/Resend.svg b/frontend/public/images/integrations/Resend.svgnew file mode 100644index 0000000000..4371f60b33--- /dev/null+++ b/frontend/public/images/integrations/Resend.svg@@ -0,0 +1,3 @@+<svg width="1800" height="1800" viewBox="0 0 1800 1800" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M1000.46 450C1174.77 450 1278.43 553.669 1278.43 691.282C1278.43 828.896 1174.77 932.563 1000.46 932.563H912.382L1350 1350H1040.82L707.794 1033.48C683.944 1011.47 672.936 985.781 672.935 963.765C672.935 932.572 694.959 905.049 737.161 893.122L908.712 847.244C973.85 829.812 1018.81 779.353 1018.81 713.298C1018.8 632.567 952.745 585.78 871.095 585.78H450V450H1000.46Z" fill="#FDFDFD"/>+</svg>diff --git a/frontend/public/images/integrations/Sentry.svg b/frontend/public/images/integrations/Sentry.svgnew file mode 100644index 0000000000..0b470579c6--- /dev/null+++ b/frontend/public/images/integrations/Sentry.svg@@ -0,0 +1 @@+<svg fill="#ffffff" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Sentry</title><path d="M13.91 2.505c-.873-1.448-2.972-1.448-3.844 0L6.904 7.92a15.478 15.478 0 0 1 8.53 12.811h-2.221A13.301 13.301 0 0 0 5.784 9.814l-2.926 5.06a7.65 7.65 0 0 1 4.435 5.848H2.194a.365.365 0 0 1-.298-.534l1.413-2.402a5.16 5.16 0 0 0-1.614-.913L.296 19.275a2.182 2.182 0 0 0 .812 2.999 2.24 2.24 0 0 0 1.086.288h6.983a9.322 9.322 0 0 0-3.845-8.318l1.11-1.922a11.47 11.47 0 0 1 4.95 10.24h5.915a17.242 17.242 0 0 0-7.885-15.28l2.244-3.845a.37.37 0 0 1 .504-.13c.255.14 9.75 16.708 9.928 16.9a.365.365 0 0 1-.327.543h-2.287c.029.612.029 1.223 0 1.831h2.297a2.206 2.206 0 0 0 1.922-3.31z"/></svg>\ No newline at end of filediff --git a/frontend/public/images/integrations/Shopify.svg b/frontend/public/images/integrations/Shopify.svgnew file mode 100644index 0000000000..ea2677e662--- /dev/null+++ b/frontend/public/images/integrations/Shopify.svg@@ -0,0 +1,5 @@+<svg width="2192" height="2500" viewBox="0 0 256 292" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid">+ <path d="M223.774 57.34c-.201-1.46-1.48-2.268-2.537-2.357-1.055-.088-23.383-1.743-23.383-1.743s-15.507-15.395-17.209-17.099c-1.703-1.703-5.029-1.185-6.32-.805-.19.056-3.388 1.043-8.678 2.68-5.18-14.906-14.322-28.604-30.405-28.604-.444 0-.901.018-1.358.044C129.31 3.407 123.644.779 118.75.779c-37.465 0-55.364 46.835-60.976 70.635-14.558 4.511-24.9 7.718-26.221 8.133-8.126 2.549-8.383 2.805-9.45 10.462C21.3 95.806.038 260.235.038 260.235l165.678 31.042 89.77-19.42S223.973 58.8 223.775 57.34zM156.49 40.848l-14.019 4.339c.005-.988.01-1.96.01-3.023 0-9.264-1.286-16.723-3.349-22.636 8.287 1.04 13.806 10.469 17.358 21.32zm-27.638-19.483c2.304 5.773 3.802 14.058 3.802 25.238 0 .572-.005 1.095-.01 1.624-9.117 2.824-19.024 5.89-28.953 8.966 5.575-21.516 16.025-31.908 25.161-35.828zm-11.131-10.537c1.617 0 3.246.549 4.805 1.622-12.007 5.65-24.877 19.88-30.312 48.297l-22.886 7.088C75.694 46.16 90.81 10.828 117.72 10.828z" fill="#95BF46"/>+ <path d="M221.237 54.983c-1.055-.088-23.383-1.743-23.383-1.743s-15.507-15.395-17.209-17.099c-.637-.634-1.496-.959-2.394-1.099l-12.527 256.233 89.762-19.418S223.972 58.8 223.774 57.34c-.201-1.46-1.48-2.268-2.537-2.357" fill="#5E8E3E"/>+ <path d="M135.242 104.585l-11.069 32.926s-9.698-5.176-21.586-5.176c-17.428 0-18.305 10.937-18.305 13.693 0 15.038 39.2 20.8 39.2 56.024 0 27.713-17.577 45.558-41.277 45.558-28.44 0-42.984-17.7-42.984-17.7l7.615-25.16s14.95 12.835 27.565 12.835c8.243 0 11.596-6.49 11.596-11.232 0-19.616-32.16-20.491-32.16-52.724 0-27.129 19.472-53.382 58.778-53.382 15.145 0 22.627 4.338 22.627 4.338" fill="#FFF"/>+</svg>diff --git a/frontend/public/images/integrations/Slack.svg b/frontend/public/images/integrations/Slack.svgnew file mode 100644index 0000000000..6d14c726ca--- /dev/null+++ b/frontend/public/images/integrations/Slack.svg@@ -0,0 +1,24 @@+<svg+ enable-background="new 0 0 2447.6 2452.5"+ viewBox="0 0 2447.6 2452.5"+ xmlns="http://www.w3.org/2000/svg"+>+ <g clip-rule="evenodd" fill-rule="evenodd">+ <path+ d="m897.4 0c-135.3.1-244.8 109.9-244.7 245.2-.1 135.3 109.5 245.1 244.8 245.2h244.8v-245.1c.1-135.3-109.5-245.1-244.9-245.3.1 0 .1 0 0 0m0 654h-652.6c-135.3.1-244.9 109.9-244.8 245.2-.2 135.3 109.4 245.1 244.7 245.3h652.7c135.3-.1 244.9-109.9 244.8-245.2.1-135.4-109.5-245.2-244.8-245.3z"+ fill="#36c5f0"+ />+ <path+ d="m2447.6 899.2c.1-135.3-109.5-245.1-244.8-245.2-135.3.1-244.9 109.9-244.8 245.2v245.3h244.8c135.3-.1 244.9-109.9 244.8-245.3zm-652.7 0v-654c.1-135.2-109.4-245-244.7-245.2-135.3.1-244.9 109.9-244.8 245.2v654c-.2 135.3 109.4 245.1 244.7 245.3 135.3-.1 244.9-109.9 244.8-245.3z"+ fill="#2eb67d"+ />+ <path+ d="m1550.1 2452.5c135.3-.1 244.9-109.9 244.8-245.2.1-135.3-109.5-245.1-244.8-245.2h-244.8v245.2c-.1 135.2 109.5 245 244.8 245.2zm0-654.1h652.7c135.3-.1 244.9-109.9 244.8-245.2.2-135.3-109.4-245.1-244.7-245.3h-652.7c-135.3.1-244.9 109.9-244.8 245.2-.1 135.4 109.4 245.2 244.7 245.3z"+ fill="#ecb22e"+ />+ <path+ d="m0 1553.2c-.1 135.3 109.5 245.1 244.8 245.2 135.3-.1 244.9-109.9 244.8-245.2v-245.2h-244.8c-135.3.1-244.9 109.9-244.8 245.2zm652.7 0v654c-.2 135.3 109.4 245.1 244.7 245.3 135.3-.1 244.9-109.9 244.8-245.2v-653.9c.2-135.3-109.4-245.1-244.7-245.3-135.4 0-244.9 109.8-244.8 245.1 0 0 0 .1 0 0"+ fill="#e01e5a"+ />+ </g>+</svg>diff --git a/frontend/public/images/integrations/Stripe.svg b/frontend/public/images/integrations/Stripe.svgnew file mode 100644index 0000000000..468b5bfcb6--- /dev/null+++ b/frontend/public/images/integrations/Stripe.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" fill="none" viewBox="100 100 312 312"><path fill="#533afd" fill-rule="evenodd" d="m120 392 272-57.683V120l-272 58.357z" clip-rule="evenodd"/></svg>\ No newline at end of filediff --git a/frontend/public/images/integrations/Telegram.svg b/frontend/public/images/integrations/Telegram.svgnew file mode 100644index 0000000000..2800caab76--- /dev/null+++ b/frontend/public/images/integrations/Telegram.svg@@ -0,0 +1 @@+<svg viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg" width="256" height="256" preserveAspectRatio="xMidYMid"><defs><linearGradient id="a" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#2AABEE"/><stop offset="100%" stop-color="#229ED9"/></linearGradient></defs><path fill="url(#a)" d="M128 0C94.06 0 61.48 13.494 37.5 37.49A128.038 128.038 0 0 0 0 128c0 33.934 13.5 66.514 37.5 90.51C61.48 242.506 94.06 256 128 256s66.52-13.494 90.5-37.49c24-23.996 37.5-56.576 37.5-90.51 0-33.934-13.5-66.514-37.5-90.51C194.52 13.494 161.94 0 128 0Z"/><path fill="#FFF" d="M57.94 126.648c37.32-16.256 62.2-26.974 74.64-32.152 35.56-14.786 42.94-17.354 47.76-17.441 1.06-.017 3.42.245 4.96 1.49 1.28 1.05 1.64 2.47 1.82 3.467.16.996.38 3.266.2 5.038-1.92 20.24-10.26 69.356-14.5 92.026-1.78 9.592-5.32 12.808-8.74 13.122-7.44.684-13.08-4.912-20.28-9.63-11.26-7.386-17.62-11.982-28.56-19.188-12.64-8.328-4.44-12.906 2.76-20.386 1.88-1.958 34.64-31.748 35.26-34.45.08-.338.16-1.598-.6-2.262-.74-.666-1.84-.438-2.64-.258-1.14.256-19.12 12.152-54 35.686-5.1 3.508-9.72 5.218-13.88 5.128-4.56-.098-13.36-2.584-19.9-4.708-8-2.606-14.38-3.984-13.82-8.41.28-2.304 3.46-4.662 9.52-7.072Z"/></svg>\ No newline at end of filediff --git a/frontend/public/images/integrations/Together.svg b/frontend/public/images/integrations/Together.svgnew file mode 100644index 0000000000..84da2c3da9--- /dev/null+++ b/frontend/public/images/integrations/Together.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2159 501"><path fill="#F1EFED" d="M614.21 158.547c6.46 5.65 11.345 11.647 16.79 18.453l4-32h31c.046 26.253.082 52.506.104 78.759.01 12.191.024 24.383.047 36.574.02 10.634.033 21.268.037 31.903.003 5.623.009 11.246.023 16.87.014 5.308.018 10.617.015 15.926 0 1.933.005 3.866.012 5.8.037 9.681-.182 19.257-1.12 28.898l-.231 2.41c-2.267 21.01-10.896 41.137-27.44 54.823-26.18 20.615-61.85 23.667-93.974 20.568-25.398-3.021-47.118-12.925-63.848-32.406C471.338 394.208 466 379.724 466 366h35l5 13c8.226 13.71 19.361 20.694 34.645 25.035 21.022 4.655 47.18 4.251 65.812-7.598 13.657-10.05 20.334-23.089 23.073-39.64.47-3.801.584-7.433.568-11.262l-.005-2.055c-.005-2.14-.018-4.278-.03-6.418-.006-1.461-.01-2.923-.014-4.384-.011-3.56-.028-7.119-.049-10.678l-1.37 1.79c-13.35 17.323-29.914 29.013-52.08 31.962-30.036 2.917-58.91-1.822-82.636-21.283C478.397 321.11 468.323 303.659 463 284l-.969-3.527c-4.416-19.81-4.408-44.893.969-64.473l1.031-3.809c7.416-24.476 23.478-45.592 45.844-58.252 30.875-16.328 76-18.748 104.336 4.608ZM514 194l-1.805 1.703c-14.695 15.093-17.638 38.726-17.41 58.633.54 20.01 7.747 38.863 21.465 53.539 16.245 15.171 34.55 17.96 55.813 17.304 16.608-1.013 31.333-9.736 42.382-21.863 14.56-18.187 19.223-41.445 16.93-64.316-2.297-19.27-10.021-38.419-25.043-51.285-29.138-21.987-66.726-19.55-92.332 6.285ZM1972.785 160.164c14.484 12.364 21.496 29.09 23.215 47.836.142 3.484.154 6.965.158 10.452l.015 3.077c.01 2.193.02 4.386.026 6.579.012 3.472.032 6.944.053 10.416.062 9.867.116 19.735.15 29.602.02 6.046.056 12.091.1 18.137.014 2.3.023 4.601.026 6.902.005 3.214.028 6.428.055 9.642l-.009 2.872c.066 5.188.528 8.83 3.426 13.321 3.477 2.779 7.972 2.443 12.25 2.625l7.75.375v32l-12.813.125-3.968.055c-10.879.051-22.747-.202-31.16-7.973-5.835-6.298-8.18-12.97-10.059-21.207l-1.688 1.941c-15.139 17.16-33.36 27.8-56.558 29.264-3.483.098-6.957.124-10.441.108l-3.739-.015c-21.974-.282-42.883-6.198-59.129-21.657-3.592-3.88-6.144-7.898-8.445-12.641l-1.176-2.395c-6.944-15.631-6.337-34.453-.637-50.355 6.524-15.726 18.16-26.393 33.75-32.938 15.222-5.34 30.484-6.908 46.516-6.703 1.765.008 3.53.014 5.295.018 4.57.015 9.14.054 13.71.098 4.694.042 9.387.06 14.081.08 9.154.042 18.307.11 27.461.195-.082-3.626-.195-7.25-.313-10.875l-.068-3.07c-.41-11.641-3.118-21.644-11.588-29.996-13.96-11.71-31.534-13.42-49.031-12.059-12.547 1.665-24.423 6.282-33.21 15.648-4.168 5.477-7.125 11.693-8.79 18.352h-35c1.749-17.486 7.589-30.526 20-43l2.016-2.121c30.963-30.314 95.18-28.037 127.77-2.715ZM1859.09 269.922c-6.644 8.423-8.87 17.718-7.875 28.379 1.907 9.065 6.737 15.535 14.05 20.976 15.22 9.588 34.714 9.047 51.735 5.723 15.917-4.321 28.867-12.401 37.313-26.75 5.467-9.882 6.853-18.504 6.75-29.648l-.014-2.804A1706.86 1706.86 0 0 0 1961 259c-9.685-.07-19.37-.123-29.054-.155-4.498-.016-8.996-.037-13.495-.071-4.35-.033-8.7-.05-13.052-.059-1.65-.005-3.3-.016-4.95-.032-14.358-.137-30.548.362-41.36 11.239ZM1480.813 163.25c19.408 16.976 30.991 41.046 33.187 66.75.98 22.04.98 22.04-1 26h-161c2.556 23.007 6.284 40.766 24.375 56 12.24 9.101 25.435 12.395 40.438 12.313l3.225-.018c15.91-.246 29.143-4.844 40.778-16.014 6.966-7.277 11.725-15.446 14.184-25.281h35c-2.204 19.832-11.038 35.2-25 49l-2.21 2.242c-19.582 18.707-45.654 22.615-71.626 22.106-26.953-.994-51.24-11.725-69.926-31.23-15.746-18.086-25.213-41.817-25.476-65.876l-.03-2.233c-.328-31.046-.328-31.046 4.268-46.009l.633-2.118c4.96-16.014 13.5-29.154 25.367-40.882l2.207-2.238c33.989-32.476 97.06-32.17 132.605-2.512ZM1391 177l-2.832 1.285c-15.862 7.964-26.071 19.944-32.293 36.45-1.203 4.163-1.203 4.163-1.875 12.265h124c-1.75-17.495-7.728-30.424-21.172-41.93-18.068-13.226-45.104-17.56-65.828-8.07ZM874 165c18.801 16.716 28.602 40.083 31.438 64.75l.245 2.067c.73 8.173-.192 15.835-.683 24.183H743c2.952 20.667 6.042 41.554 23.529 55.192 17.291 12.647 36.27 14.759 57.225 12.382 14.035-3.112 26.961-10.85 34.996-22.824 3.594-5.7 5.568-11.314 8.25-17.75h35c-4.259 23.424-15.999 43.841-35.613 57.781-16.8 11.314-35.51 15.624-55.512 15.531-1.281-.005-2.562-.01-3.882-.017-29.91-.382-54.323-10.776-75.321-32.248C709.822 299.99 705.543 267.112 707 236c2.217-28.117 13.638-54.12 35.117-72.754C779.867 133.834 837.27 134.06 874 165Zm-115 29c-8.456 9.94-11.682 20.25-14 33h125c-2.997-17.98-9.237-32.84-24.45-43.758C817.053 165.436 782.06 169.885 759 194ZM1090 67h34l1 108 11-13c20.065-16.686 42.721-22.054 68.474-19.782 10.047 1.174 19.308 3.516 28.526 7.782l2.82 1.27c7.958 3.933 13.956 9.524 20.18 15.73l1.809 1.738c20.317 21.309 19.662 54.7 19.495 81.945-.019 3.646-.02 7.292-.024 10.938-.01 6.87-.034 13.74-.064 20.61a9790.29 9790.29 0 0 0-.065 23.507c-.031 16.088-.086 32.175-.151 48.262h-34l-.06-10.762a26637.34 26637.34 0 0 0-.228-35.347c-.05-7.138-.096-14.276-.134-21.414-.033-6.23-.073-12.459-.12-18.688a3150.44 3150.44 0 0 1-.061-9.874c.217-37.616.217-37.616-17.17-69.88-13.272-12.13-29.642-13.658-46.73-13.167-13.428.71-25.403 7.097-34.958 16.308-18.575 20.66-18.986 47.688-19.05 73.86l-.055 7.729c-.042 6.04-.072 12.082-.095 18.124-.028 6.89-.072 13.78-.117 20.67A18718.64 18718.64 0 0 0 1124 354h-34V67ZM391 166c19.739 17.16 30.757 40.188 34 66 1.793 36.444-3.63 66.431-27.707 95.027-15.913 17.122-41.083 28.147-64.297 29.096-28.72.666-28.72.666-41.996-3.123l-2.057-.586c-24.808-7.302-44.944-23.157-57.654-45.693-15.234-28.264-17.85-62.54-9-93.291 7.702-25.353 23.555-46.356 46.711-59.43 38.732-20.316 88.426-15.928 122 12Zm-118 27-2.137 2.266C260.408 207.294 253.664 225.054 253 241l-.156 3.438c-.669 22.169 4.997 45.16 20.347 61.882 7.373 6.847 15.35 12.23 24.809 15.68l2.512.965c17.257 5.467 36.703 3.154 52.777-4.54 15.934-8.652 27.7-22.872 32.938-40.312 7.072-25.268 5.146-50.879-7.29-74.175C369.41 188.39 354.587 178.471 337 174c-23.114-4.783-47.785 1.587-64 19ZM101 86h34v59h53v31h-53c.063 16.795.138 33.589.236 50.383.045 7.799.084 15.597.11 23.396.023 6.8.057 13.6.103 20.4.024 3.598.042 7.196.049 10.794.007 4.024.037 8.048.07 12.072l-.005 3.585c.086 7.548.326 15.09 5.75 20.808 6.207 3.609 11.895 3.89 18.898 3.976l2.934.059c3.076.06 6.153.106 9.23.152 2.092.038 4.185.077 6.277.117 5.116.098 10.232.177 15.348.258v32c-6.525.07-13.049.129-19.574.165-2.212.015-4.424.035-6.636.061-40.317.466-40.317.466-55.165-12.788-10.601-11.551-11.937-26.34-11.852-41.241v-4.083c-.002-3.665.01-7.33.024-10.994.013-3.841.014-7.682.016-11.523.006-7.26.023-14.52.043-21.78.022-8.27.033-16.542.043-24.813.021-17.001.058-34.003.101-51.004H63v-31h38V86ZM961 86h34v59h53v31h-53c.063 16.5.138 32.998.236 49.497.045 7.662.084 15.324.11 22.986.023 6.682.057 13.364.103 20.046.024 3.534.042 7.068.049 10.603.007 3.956.037 7.913.07 11.87l-.005 3.506c.09 7.863.249 16.959 5.75 23.055 6.303 3.371 11.895 3.764 18.898 3.851l2.934.059c3.076.06 6.153.106 9.23.152 2.092.038 4.185.077 6.277.117 5.116.098 10.232.177 15.348.258v32c-6.543.07-13.085.129-19.629.165-2.219.015-4.437.035-6.656.061-40.811.47-40.811.47-55.453-13.62-10.276-11.838-11.736-27.624-11.603-42.68V293.9c-.002-3.594.016-7.188.037-10.782.019-3.774.02-7.548.024-11.323.01-7.125.034-14.25.064-21.375.034-8.121.05-16.242.065-24.364.031-16.685.086-33.37.151-50.056h-38v-31h38V86ZM1555 145h31l4 28 5.188-5.938c11.257-12.361 24.142-19.695 40.812-22.062 2.09-.077 4.182-.108 6.273-.098l3.154.008 3.948.028L1662 145v33l-10.563.313c-16.059.635-31.373 2.245-43.628 13.687-13.515 14.945-16.91 36.376-17.014 55.74l-.03 3.491a6450.11 6450.11 0 0 0-.081 11.363l-.063 7.902c-.05 6.212-.095 12.424-.138 18.635-.05 7.077-.105 14.153-.16 21.229-.114 14.547-.22 29.093-.323 43.64h-35V145ZM2057 145h34v209h-34V145Z"/><path fill="#217AFF" d="M1740.313 293.813c7.498 6.155 12.256 13.45 13.562 23.125.587 9.242-1.76 17.966-7.598 25.195-5.975 6.438-13.097 10.307-21.906 11.105-9.795.248-17.556-1.584-25.246-7.863-5.62-5.368-9.784-12.759-10.363-20.598-.214-11.05 1.248-19.635 9.043-27.953 12.185-10.125 29.293-12.476 42.507-3.012Z"/><path fill="#F1EFED" d="M2087 67c4.633 4.304 8.654 8.732 9.336 15.172.088 8.071-.073 14.285-5.762 20.348-6.206 5.564-12.086 5.94-20.125 5.78-4.627-.403-7.927-1.211-11.449-4.3-6.096-7.422-7.678-13.5-7-23 1.071-6.181 4.122-9.731 8.965-13.59 7.329-5.078 18.434-5.178 26.035-.41Z"/></svg>\ No newline at end of filediff --git a/frontend/public/images/integrations/Twilio.svg b/frontend/public/images/integrations/Twilio.svgnew file mode 100644index 0000000000..33198b8196--- /dev/null+++ b/frontend/public/images/integrations/Twilio.svg@@ -0,0 +1 @@+<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" width="64" height="64"><g transform="translate(0 .047) scale(.93704)" fill="#e31e26"><path d="M34.1 0C15.3 0 0 15.3 0 34.1s15.3 34.1 34.1 34.1C53 68.3 68.3 53 68.3 34.1S53 0 34.1 0zm0 59.3C20.3 59.3 9 48 9 34.1 9 20.3 20.3 9 34.1 9 48 9 59.3 20.3 59.3 34.1 59.3 48 48 59.3 34.1 59.3z"/><circle cx="42.6" cy="25.6" r="7.1"/><circle cx="42.6" cy="42.6" r="7.1"/><circle cx="25.6" cy="42.6" r="7.1"/><circle cx="25.6" cy="25.6" r="7.1"/></g></svg>\ No newline at end of filediff --git a/frontend/public/images/integrations/xAI.svg b/frontend/public/images/integrations/xAI.svgnew file mode 100644index 0000000000..7057a3bfa6--- /dev/null+++ b/frontend/public/images/integrations/xAI.svg@@ -0,0 +1,4 @@+<svg width="1024" height="1024" viewBox="0 0 1024 1024" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M395.479 633.828L735.91 381.105C752.599 368.715 776.454 373.548 784.406 392.792C826.26 494.285 807.561 616.253 724.288 699.996C641.016 783.739 525.151 802.104 419.247 760.277L303.556 814.143C469.49 928.202 670.987 899.995 796.901 773.282C896.776 672.843 927.708 535.937 898.785 412.476L899.047 412.739C857.105 231.37 909.358 158.874 1016.4 10.6326C1018.93 7.11771 1021.47 3.60279 1024 0L883.144 141.651V141.212L395.392 633.916" fill="white"/>+<path d="M325.226 695.251C206.128 580.84 226.662 403.776 328.285 301.668C403.431 226.097 526.549 195.254 634.026 240.596L749.454 186.994C728.657 171.88 702.007 155.623 671.424 144.2C533.19 86.9942 367.693 115.465 255.323 228.382C147.234 337.081 113.244 504.215 171.613 646.833C215.216 753.423 143.739 828.818 71.7385 904.916C46.2237 931.893 20.6216 958.87 0 987.429L325.139 695.339" fill="white"/>+</svg>diff --git a/frontend/src/components/proxied-services/CreateProxiedServiceModal.tsx b/frontend/src/components/proxied-services/CreateProxiedServiceModal.tsxindex 95cadb093f..afc73b2629 100644--- a/frontend/src/components/proxied-services/CreateProxiedServiceModal.tsx+++ b/frontend/src/components/proxied-services/CreateProxiedServiceModal.tsx@@ -1,7 +1,27 @@-import { Sheet, SheetContent, SheetHeader } from "@app/components/v3";+import { useEffect, useState } from "react";+import { AlertTriangleIcon } from "lucide-react";-import { ProxiedServiceForm } from "./forms";+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;@@ -9,29 +29,106 @@ type Props = {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+ 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={onOpenChange}>- <SheetContent className="flex h-full flex-col gap-y-0 overflow-y-auto sm:max-w-4xl">- <SheetHeader className="border-b">- <ProxiedServiceModalHeader />- </SheetHeader>- <ProxiedServiceForm- projectId={projectId}- environment={environment}- secretPath={secretPath}- onComplete={() => onOpenChange(false)}- onCancel={() => onOpenChange(false)}- />- </SheetContent>- </Sheet>+ <>+ <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 start from scratch.+ </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/EditProxiedServiceModal.tsx b/frontend/src/components/proxied-services/EditProxiedServiceModal.tsxindex 65e904036b..caecc117d2 100644--- a/frontend/src/components/proxied-services/EditProxiedServiceModal.tsx+++ b/frontend/src/components/proxied-services/EditProxiedServiceModal.tsx@@ -1,7 +1,7 @@import { Sheet, SheetContent, SheetHeader } from "@app/components/v3";import { TDashboardProxiedService } from "@app/hooks/api/proxiedServices/types";-import { ProxiedServiceForm } from "./forms";+import { EditProxiedServiceForm } from "./forms";import { ProxiedServiceModalHeader } from "./ProxiedServiceModalHeader";type Props = {@@ -9,30 +9,39 @@ type Props = {isOpen: boolean;onOpenChange: (isOpen: boolean) => void;projectId: string;+ existingNames?: string[];};export const EditProxiedServiceModal = ({proxiedService,isOpen,onOpenChange,- projectId+ projectId,+ existingNames = []}: Props) => {if (!proxiedService) return null;+ const otherNames = existingNames.filter((name) => name !== proxiedService.name);+return (<Sheet open={isOpen} onOpenChange={onOpenChange}>- <SheetContent className="flex h-full flex-col gap-y-0 overflow-y-auto sm:max-w-4xl">+ <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">- <ProxiedServiceModalHeader isEdit />+ <ProxiedServiceModalHeader+ title={proxiedService.name}+ subtitle="Update how the agent proxy brokers this service."+ /></SheetHeader>- <ProxiedServiceForm- projectId={projectId}- environment={proxiedService.environment.slug}- secretPath={proxiedService.folder.path}- proxiedService={proxiedService}- onComplete={() => onOpenChange(false)}- onCancel={() => onOpenChange(false)}- />+ <div className="flex min-h-0 flex-1 flex-col">+ <EditProxiedServiceForm+ proxiedService={proxiedService}+ projectId={projectId}+ environment={proxiedService.environment.slug}+ secretPath={proxiedService.folder.path}+ existingNames={otherNames}+ onComplete={() => onOpenChange(false)}+ />+ </div></SheetContent></Sheet>);diff --git a/frontend/src/components/proxied-services/ProxiedServiceModalHeader.tsx b/frontend/src/components/proxied-services/ProxiedServiceModalHeader.tsxindex 137d83ee23..e19eb32309 100644--- a/frontend/src/components/proxied-services/ProxiedServiceModalHeader.tsx+++ b/frontend/src/components/proxied-services/ProxiedServiceModalHeader.tsx@@ -1,21 +1,40 @@+import { useState } from "react";+import { GlobeIcon } from "lucide-react";+import { DocumentationLinkBadge, SheetDescription, SheetTitle } from "@app/components/v3";+import { PROXIED_SERVICE_QUICKSTART_URL } from "./forms/stepMeta";+type Props = {- isEdit?: boolean;+ title: string;+ subtitle?: string;+ image?: string;};-export const ProxiedServiceModalHeader = ({ isEdit }: Props) => {+export const ProxiedServiceModalHeader = ({ title, subtitle, image }: Props) => {+ const [imgError, setImgError] = useState(false);+return (<>- <div className="flex items-center gap-x-2">- <SheetTitle>{isEdit ? "Edit Proxied Service" : "Create Proxied Service"}</SheetTitle>- <DocumentationLinkBadge href="https://infisical.com/docs/documentation/platform/agent-proxy/quickstart" />+ <div className="flex items-center gap-x-3">+ {image && (+ <div className="flex h-8 w-8 items-center justify-center rounded-md bg-mineshaft-700">+ {imgError ? (+ <GlobeIcon className="h-4 w-4 text-bunker-300" />+ ) : (+ <img+ src={`/images/integrations/${image}`}+ alt=""+ className="h-5 w-5 object-contain"+ onError={() => setImgError(true)}+ />+ )}+ </div>+ )}+ <SheetTitle>{title}</SheetTitle>+ <DocumentationLinkBadge href={PROXIED_SERVICE_QUICKSTART_URL} /></div>- <SheetDescription>- {isEdit- ? "Update how the agent proxy brokers this service."- : "Define a service the agent proxy can broker secrets for."}- </SheetDescription>+ {subtitle && <SheetDescription>{subtitle}</SheetDescription>}</>);};diff --git a/frontend/src/components/proxied-services/ProxiedServiceTemplateSelect.tsx b/frontend/src/components/proxied-services/ProxiedServiceTemplateSelect.tsxnew file mode 100644index 0000000000..b82153412b--- /dev/null+++ b/frontend/src/components/proxied-services/ProxiedServiceTemplateSelect.tsx@@ -0,0 +1,206 @@+import { useMemo, useState } from "react";+import { GlobeIcon, PlusIcon, SearchIcon } from "lucide-react";++import {+ Empty,+ EmptyDescription,+ EmptyHeader,+ EmptyMedia,+ EmptyTitle,+ InputGroup,+ InputGroupAddon,+ InputGroupInput+} from "@app/components/v3";+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-mineshaft-500 hover:bg-mineshaft-700/50"+ >+ <div className="flex items-start justify-between gap-2">+ <div className="flex h-9 w-9 items-center justify-center rounded-md bg-mineshaft-700">+ {imgError ? (+ <GlobeIcon className="h-5 w-5 text-bunker-300" />+ ) : (+ <img+ src={`/images/integrations/${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-mineshaft-500 bg-card p-4 text-left transition-colors hover:border-mineshaft-400 hover:bg-mineshaft-700/50"+ >+ <div className="flex items-start justify-between gap-2">+ <div className="flex h-9 w-9 items-center justify-center rounded-md bg-mineshaft-700">+ <PlusIcon className="h-5 w-5 text-bunker-300" />+ </div>+ <span className="text-[10px] font-medium tracking-wider text-muted uppercase">Custom</span>+ </div>+ <div className="flex flex-col gap-1">+ <p className="text-sm font-semibold text-foreground">Start from scratch</p>+ <p className="text-xs leading-relaxed text-muted">Set up your own service by hand.</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>+ {filtered.length ? (+ <Grid>+ <CustomCard onClick={() => onSelect(null)} />+ {filtered.map((template) => (+ <TemplateCard+ key={template.key}+ template={template}+ onClick={() => onSelect(template)}+ />+ ))}+ </Grid>+ ) : (+ <Grid>+ <CustomCard onClick={() => onSelect(null)} />+ </Grid>+ )}+ {!filtered.length && (+ <Empty className="mt-3 border">+ <EmptyHeader>+ <EmptyMedia variant="icon">+ <SearchIcon />+ </EmptyMedia>+ <EmptyTitle>No matching services</EmptyTitle>+ <EmptyDescription>+ Try a different search term, or start from a custom service.+ </EmptyDescription>+ </EmptyHeader>+ </Empty>+ )}+ </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>+ )+ )}+ </>+ )}+ </div>+ );+};diff --git a/frontend/src/components/proxied-services/forms/CreateProxiedServiceForm.tsx b/frontend/src/components/proxied-services/forms/CreateProxiedServiceForm.tsxnew file mode 100644index 0000000000..207b66e9af--- /dev/null+++ b/frontend/src/components/proxied-services/forms/CreateProxiedServiceForm.tsx@@ -0,0 +1,320 @@+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,+ 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+ // eslint-disable-next-line react-hooks/exhaustive-deps+ []+ );++ 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-semibold 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>++ <div className="flex shrink-0 items-center justify-between gap-3 border-t border-border px-6 py-4">+ <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>+ </div>+ </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/DynamicSecretLeaseSettings.tsx b/frontend/src/components/proxied-services/forms/DynamicSecretLeaseSettings.tsxdeleted file mode 100644index 4b0580acdb..0000000000--- a/frontend/src/components/proxied-services/forms/DynamicSecretLeaseSettings.tsx+++ /dev/null@@ -1,98 +0,0 @@-import { FingerprintIcon } from "lucide-react";--import { Field, FieldContent, FieldDescription, FieldLabel, Input } from "@app/components/v3";-import { useProject } from "@app/context";-import { useGetDynamicSecrets } from "@app/hooks/api/dynamicSecret/queries";--import { BROKERABLE_DYNAMIC_SECRETS, TProviderLeaseInput } from "./brokerableDynamicSecrets";-import { TLeaseConfig } from "./schema";--type Props = {- environment: string;- secretPath: string;- referencedNames: string[];- configs: Record<string, TLeaseConfig>;- onChange: (name: string, config: TLeaseConfig) => void;-};--const LeaseInput = ({- input,- config,- onChange-}: {- input: TProviderLeaseInput;- config: TLeaseConfig;- onChange: (config: TLeaseConfig) => void;-}) => {- return (- <Field>- <FieldLabel>{input.label}</FieldLabel>- <FieldContent>- <Input- value={config.namespace ?? ""}- placeholder={input.label}- onChange={(e) => onChange({ ...config, namespace: e.target.value || undefined })}- />- <FieldDescription>{input.helperText}</FieldDescription>- </FieldContent>- </Field>- );-};--export const DynamicSecretLeaseSettings = ({- environment,- secretPath,- referencedNames,- configs,- onChange-}: Props) => {- const { currentProject } = useProject();- const { data: dynamicSecrets = [] } = useGetDynamicSecrets({- projectSlug: currentProject.slug,- environmentSlug: environment,- path: secretPath- });-- const providerByName = new Map(dynamicSecrets.map((ds) => [ds.name, ds.type]));-- const entries = referencedNames- .map((name) => {- const provider = providerByName.get(name);- return {- name,- leaseInputs: provider ? (BROKERABLE_DYNAMIC_SECRETS[provider]?.leaseInputs ?? []) : []- };- })- .filter((entry) => entry.leaseInputs.length > 0);-- if (!entries.length) return null;-- return (- <div className="flex flex-col gap-3">- <div>- <p className="text-sm font-medium">Dynamic Secret Settings</p>- <p className="mt-1 text-xs text-muted">- Some of these dynamic secrets need extra details before they can be used.- </p>- </div>- <div className="flex flex-col divide-y divide-border rounded-md border border-border bg-container/50">- {entries.map(({ name, leaseInputs }) => (- <div key={name} className="flex flex-col gap-3 p-4">- <div className="flex items-center gap-2">- <FingerprintIcon className="size-4 shrink-0 text-dynamic-secret" />- <span className="truncate font-mono text-xs text-foreground">{name}</span>- </div>- {leaseInputs.map((input) => (- <LeaseInput- key={input.name}- input={input}- config={configs[name] ?? {}}- onChange={(config) => onChange(name, config)}- />- ))}- </div>- ))}- </div>- </div>- );-};diff --git a/frontend/src/components/proxied-services/forms/EditProxiedServiceForm.tsx b/frontend/src/components/proxied-services/forms/EditProxiedServiceForm.tsxnew file mode 100644index 0000000000..a1a303c72b--- /dev/null+++ b/frontend/src/components/proxied-services/forms/EditProxiedServiceForm.tsx@@ -0,0 +1,215 @@+import { useState } from "react";+import { FormProvider, useForm } from "react-hook-form";+import { zodResolver } from "@hookform/resolvers/zod";+import { AxiosError } from "axios";++import { createNotification } from "@app/components/notifications";+import {+ Button,+ DocumentationLinkBadge,+ Stepper,+ StepperList,+ StepperStep+} from "@app/components/v3";+import { useUpdateProxiedService } from "@app/hooks/api/proxiedServices/mutations";+import { TDashboardProxiedService } from "@app/hooks/api/proxiedServices/types";++import { ProxiedServiceDetailsFields } from "./ProxiedServiceDetailsFields";+import { ProxiedServiceHeaderFields } from "./ProxiedServiceHeaderFields";+import { ProxiedServiceReviewFields } from "./ProxiedServiceReviewFields";+import { ProxiedServiceSubstitutionDiagram } from "./ProxiedServiceSubstitutionDiagram";+import { ProxiedServiceSubstitutionFields } from "./ProxiedServiceSubstitutionFields";+import {+ hasAtLeastOneCredential,+ proxiedServiceFormSchema,+ ProxiedServiceStep,+ TProxiedServiceForm+} from "./schema";+import { PROXIED_SERVICE_QUICKSTART_URL, PROXIED_SERVICE_STEPS } from "./stepMeta";+import { toCredentials, toDefaultValues } from "./utils";++const REVIEW = PROXIED_SERVICE_STEPS.length - 1;++type Props = {+ proxiedService: TDashboardProxiedService;+ projectId: string;+ environment: string;+ secretPath: string;+ existingNames: string[];+ onComplete: () => void;+};++export const EditProxiedServiceForm = ({+ proxiedService,+ projectId,+ environment,+ secretPath,+ existingNames,+ onComplete+}: Props) => {+ const updateProxiedService = useUpdateProxiedService();++ const formMethods = useForm<TProxiedServiceForm>({+ resolver: zodResolver(proxiedServiceFormSchema),+ defaultValues: toDefaultValues(proxiedService),+ reValidateMode: "onChange"+ });++ const { handleSubmit, trigger, watch, formState } = formMethods;++ const [stepIndex, setStepIndex] = useState(0);+ const [credentialError, setCredentialError] = useState(false);++ const name = watch("name");+ const isDuplicateName = existingNames.includes(name?.trim());++ const submit = async (form: TProxiedServiceForm) => {+ if (!hasAtLeastOneCredential(form)) {+ setCredentialError(true);+ setStepIndex(+ PROXIED_SERVICE_STEPS.findIndex((s) => s.step === ProxiedServiceStep.Substitution)+ );+ return;+ }+ try {+ await updateProxiedService.mutateAsync({+ serviceId: proxiedService.id,+ name: form.name,+ hostPattern: form.hostPattern,+ isEnabled: form.isEnabled,+ credentials: toCredentials(form)+ });+ createNotification({ text: "Successfully updated 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 update proxied service${detail ? `: ${detail}` : ""}`,+ type: "error"+ });+ }+ };++ const handleUpdate = async () => {+ if (isDuplicateName) {+ setStepIndex(0);+ return;+ }+ if (!(await trigger())) return;+ handleSubmit(submit)();+ };++ const current = PROXIED_SERVICE_STEPS[stepIndex];++ 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">+ Configuration+ </p>+ <Stepper+ activeStep={stepIndex}+ orientation="vertical"+ nonLinear+ onStepChange={setStepIndex}+ >+ <StepperList>+ {PROXIED_SERVICE_STEPS.map((meta, i) => (+ <StepperStep+ key={meta.step}+ index={i}+ 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-semibold text-foreground">{current.title}</h2>+ <p className="mt-1 text-sm text-muted">{current.subtitle}</p>+ </div>++ {stepIndex === 0 && <ProxiedServiceDetailsFields isDuplicateName={isDuplicateName} />}+ {stepIndex === 1 && (+ <ProxiedServiceHeaderFields+ projectId={projectId}+ environment={environment}+ secretPath={secretPath}+ />+ )}+ {stepIndex === 2 && (+ <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">+ {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 />+ )}+ </aside>+ </div>++ <div className="flex shrink-0 items-center justify-between gap-3 border-t border-border px-6 py-4">+ <span className="text-xs text-muted">{formState.isDirty ? "Unsaved changes" : ""}</span>+ <div className="flex items-center gap-3">+ <Button+ variant="outline"+ isDisabled={stepIndex === 0}+ onClick={() => setStepIndex((s) => Math.max(0, s - 1))}+ >+ Back+ </Button>+ {stepIndex < REVIEW && (+ <Button+ variant="outline"+ onClick={() => setStepIndex((s) => Math.min(REVIEW, s + 1))}+ >+ Next+ </Button>+ )}+ <Button+ variant="project"+ onClick={handleUpdate}+ isPending={updateProxiedService.isPending}+ isDisabled={updateProxiedService.isPending}+ >+ Update+ </Button>+ </div>+ </div>+ </form>+ </FormProvider>+ );+};diff --git a/frontend/src/components/proxied-services/forms/ProxiedServiceDetailsFields.tsx b/frontend/src/components/proxied-services/forms/ProxiedServiceDetailsFields.tsxnew file mode 100644index 0000000000..f4f8ce6d2e--- /dev/null+++ b/frontend/src/components/proxied-services/forms/ProxiedServiceDetailsFields.tsx@@ -0,0 +1,99 @@+import { Controller, useFormContext } from "react-hook-form";+import { InfoIcon } from "lucide-react";++import {+ Field,+ FieldContent,+ FieldDescription,+ FieldError,+ FieldLabel,+ FieldTitle,+ Input,+ Switch,+ Tooltip,+ TooltipContent,+ TooltipTrigger+} from "@app/components/v3";++import { TProxiedServiceForm } from "./schema";++type Props = {+ isDuplicateName?: boolean;+};++export const ProxiedServiceDetailsFields = ({ isDuplicateName }: Props) => {+ const {+ control,+ register,+ formState: { errors }+ } = useFormContext<TProxiedServiceForm>();++ return (+ <div className="flex flex-col gap-4">+ <Field>+ <FieldLabel>Service Name</FieldLabel>+ <FieldContent>+ <Input+ placeholder="stripe-api"+ isError={Boolean(errors.name) || isDuplicateName}+ {...register("name")}+ />+ <FieldDescription>Lowercase letters, numbers, and hyphens only.</FieldDescription>+ <FieldError errors={[errors.name]} />+ {isDuplicateName && !errors.name && (+ <FieldError>A proxied service with this name already exists in this folder.</FieldError>+ )}+ </FieldContent>+ </Field>++ <Field>+ <FieldLabel>+ Host Pattern+ <Tooltip>+ <TooltipTrigger asChild>+ <InfoIcon />+ </TooltipTrigger>+ <TooltipContent className="max-w-xs">+ <p>+ The hosts whose traffic this service brokers. Separate multiple with commas, for+ example:+ </p>+ <p className="mt-1.5 font-mono">+ api.stripe.com, *.github.com/v1/*, internal.corp.com:8443+ </p>+ </TooltipContent>+ </Tooltip>+ </FieldLabel>+ <FieldContent>+ <Input+ placeholder="api.stripe.com, *.github.com/v1/*"+ isError={Boolean(errors.hostPattern)}+ {...register("hostPattern")}+ />+ <FieldError errors={[errors.hostPattern]} />+ </FieldContent>+ </Field>++ <Controller+ control={control}+ name="isEnabled"+ render={({ field }) => (+ <Field orientation="horizontal">+ <FieldContent>+ <FieldTitle>Enabled</FieldTitle>+ <FieldDescription>+ When off, the proxy stops brokering this service's traffic.+ </FieldDescription>+ </FieldContent>+ <Switch+ id="proxied-service-enabled"+ variant="project"+ checked={field.value}+ onCheckedChange={field.onChange}+ />+ </Field>+ )}+ />+ </div>+ );+};diff --git a/frontend/src/components/proxied-services/forms/ProxiedServiceForm.tsx b/frontend/src/components/proxied-services/forms/ProxiedServiceForm.tsxdeleted file mode 100644index fa919581c6..0000000000--- a/frontend/src/components/proxied-services/forms/ProxiedServiceForm.tsx+++ /dev/null@@ -1,711 +0,0 @@-import { Controller, useFieldArray, useForm } from "react-hook-form";-import { zodResolver } from "@hookform/resolvers/zod";-import { AxiosError } from "axios";-import { InfoIcon, PlusIcon, TrashIcon } from "lucide-react";-import { twMerge } from "tailwind-merge";--import { createNotification } from "@app/components/notifications";-import {- Button,- Field,- FieldContent,- FieldDescription,- FieldError,- FieldLabel,- FieldTitle,- IconButton,- Input,- SheetFooter,- Switch,- Tabs,- TabsContent,- TabsList,- TabsTrigger,- Tooltip,- TooltipContent,- TooltipTrigger-} from "@app/components/v3";-import {- ProxiedServiceCredentialRole,- ProxiedServiceHeaderPurpose,- ProxiedServiceSubstitutionSurface-} from "@app/hooks/api/proxiedServices/enums";-import {- useCreateProxiedService,- useUpdateProxiedService-} from "@app/hooks/api/proxiedServices/mutations";-import {- TDashboardProxiedService,- TProxiedServiceCredentialInput,- TProxiedServiceLeaseConfig-} from "@app/hooks/api/proxiedServices/types";--import { CredentialSourceFields, TCredentialSource } from "./CredentialSourceFields";-import { DynamicSecretLeaseSettings } from "./DynamicSecretLeaseSettings";-import {- HeaderRewritingMode,- proxiedServiceFormSchema,- TCredentialSourceForm,- TLeaseConfig,- TProxiedServiceForm-} from "./schema";-import { SurfaceSelect } from "./SurfaceSelect";--type Props = {- projectId: string;- environment: string;- secretPath: string;- proxiedService?: TDashboardProxiedService;- onComplete: () => void;- onCancel: () => void;-};--const genPlaceholder = () =>- `placeholder_${Array.from({ length: 12 }, () => "abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random() * 26)]).join("")}`;--const emptySource = (): TCredentialSourceForm => ({- secretKey: "",- dynamicSecretName: "",- dynamicSecretField: ""-});--const toSource = (c: TDashboardProxiedService["credentials"][number]): TCredentialSourceForm =>- c.dynamicSecretName- ? {- secretKey: "",- dynamicSecretName: c.dynamicSecretName,- dynamicSecretField: c.dynamicSecretField ?? ""- }- : {- secretKey: c.secretKey ?? "",- dynamicSecretName: "",- dynamicSecretField: ""- };--const hasSource = (src: TCredentialSourceForm) => Boolean(src.secretKey || src.dynamicSecretName);--const toLeaseConfig = (leaseConfig?: TLeaseConfig): TProxiedServiceLeaseConfig | undefined => {- if (!leaseConfig) return undefined;- const cfg: TProxiedServiceLeaseConfig = {};- if (leaseConfig.namespace) cfg.namespace = leaseConfig.namespace;- if (leaseConfig.principals?.length) cfg.principals = leaseConfig.principals;- return Object.keys(cfg).length ? cfg : undefined;-};--const sourceToInput = (- src: TCredentialSourceForm,- configs: Record<string, TLeaseConfig>-): Pick<- TProxiedServiceCredentialInput,- "secretKey" | "dynamicSecretName" | "dynamicSecretField" | "dynamicSecretConfig"-> =>- src.dynamicSecretName- ? {- dynamicSecretName: src.dynamicSecretName,- dynamicSecretField: src.dynamicSecretField,- dynamicSecretConfig: toLeaseConfig(configs[src.dynamicSecretName])- }- : { secretKey: src.secretKey };--const toDynamicSecretConfigs = (svc: TDashboardProxiedService): Record<string, TLeaseConfig> => {- const configs: Record<string, TLeaseConfig> = {};- svc.credentials.forEach((c) => {- if (!c.dynamicSecretName || configs[c.dynamicSecretName]) return;- const cfg = c.dynamicSecretConfig;- if (cfg?.namespace || cfg?.principals?.length) {- configs[c.dynamicSecretName] = { namespace: cfg.namespace, principals: cfg.principals };- }- });- return configs;-};--const toDefaultValues = (svc?: TDashboardProxiedService): TProxiedServiceForm => {- if (!svc) {- return {- name: "",- hostPattern: "",- isEnabled: true,- headerMode: HeaderRewritingMode.Headers,- headers: [{ ...emptySource(), headerName: "Authorization", headerPrefix: "Bearer" }],- basicAuth: { username: emptySource(), password: emptySource() },- substitutions: [],- dynamicSecretConfigs: {}- };- }-- const headerCreds = svc.credentials.filter(- (c) => c.role === ProxiedServiceCredentialRole.HeaderRewrite- );- const isBasicAuth = headerCreds.some((c) => c.headerPurpose);- const username = headerCreds.find(- (c) => c.headerPurpose === ProxiedServiceHeaderPurpose.Username- );- const password = headerCreds.find(- (c) => c.headerPurpose === ProxiedServiceHeaderPurpose.Password- );- const subs = svc.credentials.filter(- (c) => c.role === ProxiedServiceCredentialRole.CredentialSubstitution- );-- return {- name: svc.name,- hostPattern: svc.hostPattern,- isEnabled: svc.isEnabled,- headerMode: isBasicAuth ? HeaderRewritingMode.BasicAuth : HeaderRewritingMode.Headers,- headers: isBasicAuth- ? []- : headerCreds.map((c) => ({- ...toSource(c),- headerName: c.headerName ?? "",- headerPrefix: c.headerPrefix ?? ""- })),- basicAuth: {- username: username ? toSource(username) : emptySource(),- password: password ? toSource(password) : emptySource()- },- substitutions: subs.map((c) => ({- ...toSource(c),- placeholderKey: c.placeholderKey ?? "",- placeholderValue: c.placeholderValue ?? genPlaceholder(),- surfaces: (c.substitutionSurfaces ?? []) as ProxiedServiceSubstitutionSurface[]- })),- dynamicSecretConfigs: toDynamicSecretConfigs(svc)- };-};--const toCredentials = (form: TProxiedServiceForm): TProxiedServiceCredentialInput[] => {- const credentials: TProxiedServiceCredentialInput[] = [];- const configs = form.dynamicSecretConfigs ?? {};-- if (form.headerMode === HeaderRewritingMode.BasicAuth) {- if (form.basicAuth && hasSource(form.basicAuth.username)) {- credentials.push({- ...sourceToInput(form.basicAuth.username, configs),- role: ProxiedServiceCredentialRole.HeaderRewrite,- headerPurpose: ProxiedServiceHeaderPurpose.Username- });- }- if (form.basicAuth && hasSource(form.basicAuth.password)) {- credentials.push({- ...sourceToInput(form.basicAuth.password, configs),- role: ProxiedServiceCredentialRole.HeaderRewrite,- headerPurpose: ProxiedServiceHeaderPurpose.Password- });- }- } else {- form.headers.forEach((h) => {- credentials.push({- ...sourceToInput(h, configs),- role: ProxiedServiceCredentialRole.HeaderRewrite,- headerName: h.headerName,- // omit rather than send null: the API field is optional and rejects null- headerPrefix: h.headerPrefix || undefined- });- });- }-- form.substitutions.forEach((s) => {- credentials.push({- ...sourceToInput(s, configs),- role: ProxiedServiceCredentialRole.CredentialSubstitution,- placeholderKey: s.placeholderKey,- placeholderValue: s.placeholderValue,- substitutionSurfaces: s.surfaces- });- });-- return credentials;-};--export const ProxiedServiceForm = ({- projectId,- environment,- secretPath,- proxiedService,- onComplete,- onCancel-}: Props) => {- const isEdit = Boolean(proxiedService);- const createProxiedService = useCreateProxiedService();- const updateProxiedService = useUpdateProxiedService();-- const {- control,- handleSubmit,- watch,- register,- setValue,- formState: { errors, isSubmitting }- } = useForm<TProxiedServiceForm>({- resolver: zodResolver(proxiedServiceFormSchema),- defaultValues: toDefaultValues(proxiedService)- });-- const headerMode = watch("headerMode");- const watchedHeaders = watch("headers");- const watchedBasicAuth = watch("basicAuth");- const watchedSubstitutions = watch("substitutions");- const watchedConfigs = watch("dynamicSecretConfigs");-- const headerFields = useFieldArray({ control, name: "headers" });- const substitutionFields = useFieldArray({ control, name: "substitutions" });-- const setHeaderSource = (i: number, v: TCredentialSource) => {- setValue(`headers.${i}.secretKey`, v.secretKey ?? "");- setValue(`headers.${i}.dynamicSecretName`, v.dynamicSecretName ?? "");- setValue(`headers.${i}.dynamicSecretField`, v.dynamicSecretField ?? "");- };- const setSubstitutionSource = (i: number, v: TCredentialSource) => {- setValue(`substitutions.${i}.secretKey`, v.secretKey ?? "");- setValue(`substitutions.${i}.dynamicSecretName`, v.dynamicSecretName ?? "");- setValue(`substitutions.${i}.dynamicSecretField`, v.dynamicSecretField ?? "");- };- const setBasicAuthSource = (which: "username" | "password", v: TCredentialSource) => {- setValue(`basicAuth.${which}.secretKey`, v.secretKey ?? "");- setValue(`basicAuth.${which}.dynamicSecretName`, v.dynamicSecretName ?? "");- setValue(`basicAuth.${which}.dynamicSecretField`, v.dynamicSecretField ?? "");- };-- // computed inline, not memoized: react-hook-form mutates watched objects in place so a useMemo would never recompute- const referencedDynamicSecretNames = (() => {- const names = new Set<string>();- const add = (name?: string) => {- if (name) names.add(name);- };- if (headerMode === HeaderRewritingMode.BasicAuth) {- add(watchedBasicAuth?.username?.dynamicSecretName);- add(watchedBasicAuth?.password?.dynamicSecretName);- } else {- (watchedHeaders ?? []).forEach((h) => add(h?.dynamicSecretName));- }- (watchedSubstitutions ?? []).forEach((s) => add(s?.dynamicSecretName));- return [...names];- })();-- const setDynamicSecretConfig = (name: string, config: TLeaseConfig) => {- setValue("dynamicSecretConfigs", { ...(watchedConfigs ?? {}), [name]: config });- };-- // The "at least one credential" issue is attached to the headers array node by the schema.- const headersArrayError = errors.headers as- | { message?: string; root?: { message?: string } }- | undefined;- const headersRootError = headersArrayError?.root?.message ?? headersArrayError?.message;-- const onSubmit = async (form: TProxiedServiceForm) => {- const credentials = toCredentials(form);- try {- if (isEdit && proxiedService) {- await updateProxiedService.mutateAsync({- serviceId: proxiedService.id,- name: form.name,- hostPattern: form.hostPattern,- isEnabled: form.isEnabled,- credentials- });- } else {- await createProxiedService.mutateAsync({- projectId,- environment,- secretPath,- name: form.name,- hostPattern: form.hostPattern,- isEnabled: form.isEnabled,- credentials- });- }- createNotification({- text: `Successfully ${isEdit ? "updated" : "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 ${isEdit ? "update" : "create"} proxied service${detail ? `: ${detail}` : ""}`,- type: "error"- });- }- };-- return (- <form onSubmit={handleSubmit(onSubmit)} className="flex flex-1 flex-col gap-4 overflow-hidden">- <div className="flex thin-scrollbar flex-1 flex-col gap-4 overflow-y-auto p-4">- <Field>- <FieldLabel>Service Name</FieldLabel>- <FieldContent>- <Input placeholder="stripe-api" isError={Boolean(errors.name)} {...register("name")} />- <FieldDescription>Lowercase letters, numbers, and hyphens only.</FieldDescription>- <FieldError errors={[errors.name]} />- </FieldContent>- </Field>-- <Field>- <FieldLabel>- Host Pattern- <Tooltip>- <TooltipTrigger asChild>- <InfoIcon />- </TooltipTrigger>- <TooltipContent className="max-w-xs">- <p>- The hosts whose traffic this service brokers. Separate multiple with commas, for- example:- </p>- <p className="mt-1.5 font-mono">- api.stripe.com, *.github.com/v1/*, internal.corp.com:8443- </p>- </TooltipContent>- </Tooltip>- </FieldLabel>- <FieldContent>- <Input- placeholder="api.stripe.com, *.github.com/v1/*"- isError={Boolean(errors.hostPattern)}- {...register("hostPattern")}- />- <FieldError errors={[errors.hostPattern]} />- </FieldContent>- </Field>-- <Controller- control={control}- name="isEnabled"- render={({ field }) => (- <Field orientation="horizontal">- <FieldContent>- <FieldTitle>Enabled</FieldTitle>- <FieldDescription>- When off, the proxy stops brokering this service's traffic.- </FieldDescription>- </FieldContent>- <Switch- id="proxied-service-enabled"- variant="project"- checked={field.value}- onCheckedChange={field.onChange}- />- </Field>- )}- />-- <div className="flex flex-col gap-3">- <Tabs- value={headerMode}- onValueChange={(value) => setValue("headerMode", value as HeaderRewritingMode)}- >- <div className="flex items-start justify-between gap-2">- <div>- <p className="text-sm font-medium">Header Rewrites</p>- <p className="mt-1 text-xs text-muted">Sets these headers on every request.</p>- </div>- <TabsList>- <TabsTrigger value={HeaderRewritingMode.Headers}>Custom Headers</TabsTrigger>- <TabsTrigger value={HeaderRewritingMode.BasicAuth}>Basic Auth</TabsTrigger>- </TabsList>- </div>-- <TabsContent value={HeaderRewritingMode.Headers} className="flex flex-col gap-3">- <div className="flex flex-col gap-3 rounded-md border border-border bg-container/50 p-4">- {headerFields.fields.length === 0 && (- <p className="text-center text-sm text-muted">- No headers added. Click below to add.- </p>- )}- {headerFields.fields.map((row, i) => (- <div key={row.id} className="flex items-start gap-3">- <Field className="flex-1">- {i === 0 && <FieldLabel className="text-xs">Name</FieldLabel>}- <FieldContent>- <Input- placeholder="Authorization"- isError={Boolean(errors.headers?.[i]?.headerName)}- {...register(`headers.${i}.headerName`)}- />- <FieldError errors={[errors.headers?.[i]?.headerName]} />- </FieldContent>- </Field>- <Field className="w-28">- {i === 0 && <FieldLabel className="text-xs">Prefix</FieldLabel>}- <FieldContent>- <Input placeholder="Bearer" {...register(`headers.${i}.headerPrefix`)} />- </FieldContent>- </Field>- <Field className="flex-1">- {i === 0 && <FieldLabel className="text-xs">Value</FieldLabel>}- <FieldContent>- <CredentialSourceFields- projectId={projectId}- environment={environment}- secretPath={secretPath}- value={{- secretKey: watchedHeaders?.[i]?.secretKey,- dynamicSecretName: watchedHeaders?.[i]?.dynamicSecretName,- dynamicSecretField: watchedHeaders?.[i]?.dynamicSecretField- }}- onChange={(v) => setHeaderSource(i, v)}- isSecretError={Boolean(errors.headers?.[i]?.secretKey)}- isFieldError={Boolean(errors.headers?.[i]?.dynamicSecretField)}- />- <FieldError- errors={[- errors.headers?.[i]?.secretKey,- errors.headers?.[i]?.dynamicSecretField- ]}- />- </FieldContent>- </Field>- <IconButton- variant="ghost"- size="xs"- type="button"- aria-label="Remove header"- className={twMerge(- i === 0 ? "mt-6.5" : "mt-0.5",- "transition-transform hover:text-danger"- )}- onClick={() => headerFields.remove(i)}- >- <TrashIcon className="size-4" />- </IconButton>- </div>- ))}- </div>- <div className="flex items-center gap-2">- <Button- variant="ghost"- size="xs"- type="button"- onClick={() =>- headerFields.append({ ...emptySource(), headerName: "", headerPrefix: "" })- }- >- <PlusIcon className="mr-1 size-4" />- Add Header- </Button>- </div>- {headersRootError && <FieldError>{headersRootError}</FieldError>}- </TabsContent>-- <TabsContent value={HeaderRewritingMode.BasicAuth}>- <div className="flex gap-3 rounded-md border border-border bg-container/50 p-4">- <Field className="flex-1">- <FieldLabel>Username</FieldLabel>- <FieldContent>- <CredentialSourceFields- projectId={projectId}- environment={environment}- secretPath={secretPath}- value={{- secretKey: watchedBasicAuth?.username?.secretKey,- dynamicSecretName: watchedBasicAuth?.username?.dynamicSecretName,- dynamicSecretField: watchedBasicAuth?.username?.dynamicSecretField- }}- onChange={(v) => setBasicAuthSource("username", v)}- isSecretError={Boolean(errors.basicAuth?.username?.secretKey)}- isFieldError={Boolean(errors.basicAuth?.username?.dynamicSecretField)}- />- <FieldError- errors={[- errors.basicAuth?.username?.secretKey,- errors.basicAuth?.username?.dynamicSecretField- ]}- />- </FieldContent>- </Field>- <Field className="flex-1">- <FieldLabel>- Password- <span className="ml-1 font-normal text-muted">(optional)</span>- </FieldLabel>- <FieldContent>- <CredentialSourceFields- projectId={projectId}- environment={environment}- secretPath={secretPath}- value={{- secretKey: watchedBasicAuth?.password?.secretKey,- dynamicSecretName: watchedBasicAuth?.password?.dynamicSecretName,- dynamicSecretField: watchedBasicAuth?.password?.dynamicSecretField- }}- onChange={(v) => setBasicAuthSource("password", v)}- isSecretError={Boolean(errors.basicAuth?.password?.secretKey)}- isFieldError={Boolean(errors.basicAuth?.password?.dynamicSecretField)}- />- <FieldError- errors={[- errors.basicAuth?.password?.secretKey,- errors.basicAuth?.password?.dynamicSecretField- ]}- />- </FieldContent>- </Field>- </div>- </TabsContent>- </Tabs>- </div>-- <div className="flex flex-col gap-3">- <div>- <p className="text-sm font-medium">Secret Substitution</p>- <p className="mt-1 text-xs text-muted">- When an agent launches with{" "}- <span className="font-mono text-foreground">- infisical secrets agent-proxy connect- </span>- , Infisical sets each placeholder below as an environment variable on it. The agent- sends the placeholder in its requests, and the proxy swaps it for the real secret on- the wire.- </p>- </div>-- <div className="flex flex-col gap-3">- {substitutionFields.fields.length === 0 && (- <div className="rounded-md border border-border bg-container/50 p-4 text-center text-sm text-muted">- No substitutions added. Click below to add.- </div>- )}- {substitutionFields.fields.map((row, i) => (- <div- key={row.id}- className="flex flex-col gap-3 rounded-md border border-border bg-container/50 p-4 text-sm"- >- <div className="flex flex-wrap items-center gap-x-2 gap-y-2">- <span className="shrink-0 text-muted">Set</span>- <Input- className="w-44 font-mono"- placeholder="ENV_VAR_NAME"- isError={Boolean(errors.substitutions?.[i]?.placeholderKey)}- {...register(`substitutions.${i}.placeholderKey`)}- />- <Tooltip>- <TooltipTrigger asChild>- <InfoIcon className="size-3.5 shrink-0 text-muted" />- </TooltipTrigger>- <TooltipContent className="max-w-xs">- Infisical sets this environment variable on the agent for you, holding the- placeholder value.- </TooltipContent>- </Tooltip>- <span className="shrink-0 text-muted">to the placeholder</span>- <Input- className="min-w-0 flex-1 font-mono"- placeholder="placeholder_value"- isError={Boolean(errors.substitutions?.[i]?.placeholderValue)}- {...register(`substitutions.${i}.placeholderValue`)}- />- <Tooltip>- <TooltipTrigger asChild>- <InfoIcon className="size-3.5 shrink-0 text-muted" />- </TooltipTrigger>- <TooltipContent className="max-w-xs">- The value the agent sends instead of the real secret; the proxy swaps it on- the wire.- </TooltipContent>- </Tooltip>- <IconButton- variant="ghost"- size="xs"- type="button"- aria-label="Remove substitution"- className="shrink-0 transition-transform hover:text-danger"- onClick={() => substitutionFields.remove(i)}- >- <TrashIcon className="size-4" />- </IconButton>- </div>- <FieldError- errors={[- errors.substitutions?.[i]?.placeholderKey,- errors.substitutions?.[i]?.placeholderValue- ]}- />-- <div className="flex items-center gap-2">- <span className="shrink-0 text-muted">and replace it in</span>- <div className="flex-1">- <Controller- control={control}- name={`substitutions.${i}.surfaces`}- render={({ field }) => (- <SurfaceSelect value={field.value} onChange={field.onChange} />- )}- />- <FieldError errors={[errors.substitutions?.[i]?.surfaces]} />- </div>- </div>-- <div className="flex items-center gap-2">- <span className="shrink-0 text-muted">with value of</span>- <div className="flex-1">- <CredentialSourceFields- projectId={projectId}- environment={environment}- secretPath={secretPath}- value={{- secretKey: watchedSubstitutions?.[i]?.secretKey,- dynamicSecretName: watchedSubstitutions?.[i]?.dynamicSecretName,- dynamicSecretField: watchedSubstitutions?.[i]?.dynamicSecretField- }}- onChange={(v) => setSubstitutionSource(i, v)}- isSecretError={Boolean(errors.substitutions?.[i]?.secretKey)}- isFieldError={Boolean(errors.substitutions?.[i]?.dynamicSecretField)}- />- <FieldError- errors={[- errors.substitutions?.[i]?.secretKey,- errors.substitutions?.[i]?.dynamicSecretField- ]}- />- </div>- </div>- </div>- ))}- </div>- <div>- <Button- variant="ghost"- size="xs"- type="button"- onClick={() =>- substitutionFields.append({- ...emptySource(),- placeholderKey: "",- placeholderValue: genPlaceholder(),- surfaces: []- })- }- >- <PlusIcon className="mr-1 size-4" />- Add Substitution- </Button>- </div>- </div>-- <DynamicSecretLeaseSettings- environment={environment}- secretPath={secretPath}- referencedNames={referencedDynamicSecretNames}- configs={watchedConfigs ?? {}}- onChange={setDynamicSecretConfig}- />- </div>-- <SheetFooter className="border-t">- <Button isPending={isSubmitting} isDisabled={isSubmitting} variant="project" type="submit">- {isEdit ? "Update Proxied Service" : "Create Proxied Service"}- </Button>- <Button onClick={onCancel} variant="outline" type="button">- Cancel- </Button>- </SheetFooter>- </form>- );-};diff --git a/frontend/src/components/proxied-services/forms/ProxiedServiceHeaderFields.tsx b/frontend/src/components/proxied-services/forms/ProxiedServiceHeaderFields.tsxnew file mode 100644index 0000000000..43768329ae--- /dev/null+++ b/frontend/src/components/proxied-services/forms/ProxiedServiceHeaderFields.tsx@@ -0,0 +1,221 @@+import { useFieldArray, useFormContext } from "react-hook-form";+import { PlusIcon, TrashIcon } from "lucide-react";+import { twMerge } from "tailwind-merge";++import {+ Button,+ Field,+ FieldContent,+ FieldError,+ FieldLabel,+ IconButton,+ Input,+ Tabs,+ TabsContent,+ TabsList,+ TabsTrigger+} from "@app/components/v3";++import { CredentialSourceFields, TCredentialSource } from "./CredentialSourceFields";+import { HeaderRewritingMode, TProxiedServiceForm } from "./schema";++type Props = {+ projectId: string;+ environment: string;+ secretPath: string;+};++export const ProxiedServiceHeaderFields = ({ projectId, environment, secretPath }: Props) => {+ const {+ control,+ register,+ watch,+ setValue,+ clearErrors,+ formState: { errors }+ } = useFormContext<TProxiedServiceForm>();++ const headerMode = watch("headerMode");+ const watchedHeaders = watch("headers");+ const watchedBasicAuth = watch("basicAuth");+ const headerFields = useFieldArray({ control, name: "headers" });++ const setHeaderSource = (i: number, v: TCredentialSource) => {+ setValue(`headers.${i}.secretKey`, v.secretKey ?? "");+ setValue(`headers.${i}.dynamicSecretName`, v.dynamicSecretName ?? "");+ setValue(`headers.${i}.dynamicSecretField`, v.dynamicSecretField ?? "");+ };++ const setBasicAuthSource = (which: "username" | "password", v: TCredentialSource) => {+ setValue(`basicAuth.${which}.secretKey`, v.secretKey ?? "");+ setValue(`basicAuth.${which}.dynamicSecretName`, v.dynamicSecretName ?? "");+ setValue(`basicAuth.${which}.dynamicSecretField`, v.dynamicSecretField ?? "");+ };++ const handleModeChange = (value: string) => {+ setValue("headerMode", value as HeaderRewritingMode);+ // Drop any validation errors from the mode we just left so they neither block+ // navigation nor show up on the now-hidden tab.+ clearErrors(["headers", "basicAuth"]);+ };++ return (+ <div className="flex flex-col gap-3">+ <Tabs value={headerMode} onValueChange={handleModeChange}>+ <div className="flex items-start justify-between gap-2">+ <div>+ <p className="text-sm font-medium">Header Rewrites</p>+ <p className="mt-1 text-xs text-muted">Sets these headers on every request.</p>+ </div>+ <TabsList>+ <TabsTrigger value={HeaderRewritingMode.Headers}>Custom Headers</TabsTrigger>+ <TabsTrigger value={HeaderRewritingMode.BasicAuth}>Basic Auth</TabsTrigger>+ </TabsList>+ </div>++ <TabsContent value={HeaderRewritingMode.Headers} className="flex flex-col gap-3">+ <div className="flex flex-col gap-3 rounded-md border border-border bg-container/50 p-4">+ {headerFields.fields.length === 0 && (+ <p className="text-center text-sm text-muted">+ No headers added. Click below to add.+ </p>+ )}+ {headerFields.fields.map((row, i) => (+ <div key={row.id} className="flex items-start gap-3">+ <Field className="flex-1">+ {i === 0 && <FieldLabel className="text-xs">Name</FieldLabel>}+ <FieldContent>+ <Input+ placeholder="Authorization"+ isError={Boolean(errors.headers?.[i]?.headerName)}+ {...register(`headers.${i}.headerName`)}+ />+ <FieldError errors={[errors.headers?.[i]?.headerName]} />+ </FieldContent>+ </Field>+ <Field className="w-28">+ {i === 0 && <FieldLabel className="text-xs">Prefix</FieldLabel>}+ <FieldContent>+ <Input placeholder="Bearer" {...register(`headers.${i}.headerPrefix`)} />+ </FieldContent>+ </Field>+ <Field className="flex-1">+ {i === 0 && <FieldLabel className="text-xs">Value</FieldLabel>}+ <FieldContent>+ <CredentialSourceFields+ projectId={projectId}+ environment={environment}+ secretPath={secretPath}+ value={{+ secretKey: watchedHeaders?.[i]?.secretKey,+ dynamicSecretName: watchedHeaders?.[i]?.dynamicSecretName,+ dynamicSecretField: watchedHeaders?.[i]?.dynamicSecretField+ }}+ onChange={(v) => setHeaderSource(i, v)}+ isSecretError={Boolean(errors.headers?.[i]?.secretKey)}+ isFieldError={Boolean(errors.headers?.[i]?.dynamicSecretField)}+ />+ <FieldError+ errors={[+ errors.headers?.[i]?.secretKey,+ errors.headers?.[i]?.dynamicSecretField+ ]}+ />+ </FieldContent>+ </Field>+ <IconButton+ variant="ghost"+ size="xs"+ type="button"+ aria-label="Remove header"+ className={twMerge(+ i === 0 ? "mt-6.5" : "mt-0.5",+ "transition-transform hover:text-danger"+ )}+ onClick={() => headerFields.remove(i)}+ >+ <TrashIcon className="size-4" />+ </IconButton>+ </div>+ ))}+ </div>+ <div className="flex items-center gap-2">+ <Button+ variant="ghost"+ size="xs"+ type="button"+ onClick={() =>+ headerFields.append({+ secretKey: "",+ dynamicSecretName: "",+ dynamicSecretField: "",+ headerName: "",+ headerPrefix: ""+ })+ }+ >+ <PlusIcon className="mr-1 size-4" />+ Add Header+ </Button>+ </div>+ </TabsContent>++ <TabsContent value={HeaderRewritingMode.BasicAuth}>+ <div className="flex gap-3 rounded-md border border-border bg-container/50 p-4">+ <Field className="flex-1">+ <FieldLabel>Username</FieldLabel>+ <FieldContent>+ <CredentialSourceFields+ projectId={projectId}+ environment={environment}+ secretPath={secretPath}+ value={{+ secretKey: watchedBasicAuth?.username?.secretKey,+ dynamicSecretName: watchedBasicAuth?.username?.dynamicSecretName,+ dynamicSecretField: watchedBasicAuth?.username?.dynamicSecretField+ }}+ onChange={(v) => setBasicAuthSource("username", v)}+ isSecretError={Boolean(errors.basicAuth?.username?.secretKey)}+ isFieldError={Boolean(errors.basicAuth?.username?.dynamicSecretField)}+ />+ <FieldError+ errors={[+ errors.basicAuth?.username?.secretKey,+ errors.basicAuth?.username?.dynamicSecretField+ ]}+ />+ </FieldContent>+ </Field>+ <Field className="flex-1">+ <FieldLabel>+ Password+ <span className="ml-1 font-normal text-muted">(optional)</span>+ </FieldLabel>+ <FieldContent>+ <CredentialSourceFields+ projectId={projectId}+ environment={environment}+ secretPath={secretPath}+ value={{+ secretKey: watchedBasicAuth?.password?.secretKey,+ dynamicSecretName: watchedBasicAuth?.password?.dynamicSecretName,+ dynamicSecretField: watchedBasicAuth?.password?.dynamicSecretField+ }}+ onChange={(v) => setBasicAuthSource("password", v)}+ isSecretError={Boolean(errors.basicAuth?.password?.secretKey)}+ isFieldError={Boolean(errors.basicAuth?.password?.dynamicSecretField)}+ />+ <FieldError+ errors={[+ errors.basicAuth?.password?.secretKey,+ errors.basicAuth?.password?.dynamicSecretField+ ]}+ />+ </FieldContent>+ </Field>+ </div>+ </TabsContent>+ </Tabs>+ </div>+ );+};diff --git a/frontend/src/components/proxied-services/forms/ProxiedServiceReviewFields.tsx b/frontend/src/components/proxied-services/forms/ProxiedServiceReviewFields.tsxnew file mode 100644index 0000000000..e309146a87--- /dev/null+++ b/frontend/src/components/proxied-services/forms/ProxiedServiceReviewFields.tsx@@ -0,0 +1,141 @@+import { useFormContext } from "react-hook-form";++import {+ Badge,+ Detail,+ DetailGroup,+ DetailGroupHeader,+ DetailLabel,+ DetailValue+} from "@app/components/v3";++import { HeaderRewritingMode, TCredentialSourceForm, TProxiedServiceForm } from "./schema";++const NONE = <span className="text-muted italic">None</span>;++const hasSource = (src?: TCredentialSourceForm) =>+ Boolean(src?.secretKey || src?.dynamicSecretName);++const SourceValue = ({ src }: { src?: TCredentialSourceForm }) => {+ if (src?.dynamicSecretName) {+ return (+ <DetailValue className="font-mono">+ {src.dynamicSecretName}+ {src.dynamicSecretField ? ` → ${src.dynamicSecretField}` : ""}+ </DetailValue>+ );+ }+ return <DetailValue className="font-mono">{src?.secretKey || NONE}</DetailValue>;+};++export const ProxiedServiceReviewFields = () => {+ const { watch } = useFormContext<TProxiedServiceForm>();+ const { name, hostPattern, isEnabled, headerMode, headers, basicAuth, substitutions } = watch();++ const isBasicAuth = headerMode === HeaderRewritingMode.BasicAuth;+ const activeHeaders = headers.filter((h) => h.headerName && hasSource(h));++ return (+ <div className="mb-4 flex flex-col gap-y-8">+ <DetailGroup>+ <DetailGroupHeader className="border-b border-border pb-2">Details</DetailGroupHeader>+ <div className="flex flex-wrap gap-x-8 gap-y-4">+ <Detail>+ <DetailLabel>Name</DetailLabel>+ <DetailValue>{name}</DetailValue>+ </Detail>+ <Detail>+ <DetailLabel>Host Pattern</DetailLabel>+ <DetailValue className="font-mono">{hostPattern}</DetailValue>+ </Detail>+ <Detail>+ <DetailLabel>Status</DetailLabel>+ <DetailValue>+ <Badge variant={isEnabled ? "success" : "neutral"}>+ {isEnabled ? "Enabled" : "Disabled"}+ </Badge>+ </DetailValue>+ </Detail>+ </div>+ </DetailGroup>++ <DetailGroup>+ <DetailGroupHeader className="border-b border-border pb-2">+ Header Rewrites+ </DetailGroupHeader>+ {isBasicAuth ? (+ <div className="flex flex-wrap gap-x-8 gap-y-4">+ <Detail>+ <DetailLabel>Type</DetailLabel>+ <DetailValue>Basic Auth</DetailValue>+ </Detail>+ <Detail>+ <DetailLabel>Username</DetailLabel>+ <SourceValue src={basicAuth?.username} />+ </Detail>+ <Detail>+ <DetailLabel>Password</DetailLabel>+ {hasSource(basicAuth?.password) ? (+ <SourceValue src={basicAuth?.password} />+ ) : (+ <DetailValue>{NONE}</DetailValue>+ )}+ </Detail>+ </div>+ ) : (+ <div className="flex flex-col gap-3">+ {activeHeaders.length === 0+ ? NONE+ : activeHeaders.map((h) => (+ <div+ key={`${h.headerName}-${h.secretKey}-${h.dynamicSecretName}`}+ className="flex flex-wrap gap-x-8 gap-y-4"+ >+ <Detail>+ <DetailLabel>Header</DetailLabel>+ <DetailValue className="font-mono">+ {h.headerName}+ {h.headerPrefix ? `: ${h.headerPrefix} …` : ""}+ </DetailValue>+ </Detail>+ <Detail>+ <DetailLabel>Value</DetailLabel>+ <SourceValue src={h} />+ </Detail>+ </div>+ ))}+ </div>+ )}+ </DetailGroup>++ <DetailGroup>+ <DetailGroupHeader className="border-b border-border pb-2">Substitutions</DetailGroupHeader>+ <div className="flex flex-col gap-3">+ {substitutions.length === 0+ ? NONE+ : substitutions.map((s) => (+ <div+ key={`${s.placeholderKey}-${s.secretKey}-${s.dynamicSecretName}`}+ className="flex flex-wrap gap-x-8 gap-y-4"+ >+ <Detail>+ <DetailLabel>Env Var</DetailLabel>+ <DetailValue className="font-mono">{s.placeholderKey}</DetailValue>+ </Detail>+ <Detail>+ <DetailLabel>Replace In</DetailLabel>+ <DetailValue className="capitalize">+ {s.surfaces.join(", ") || NONE}+ </DetailValue>+ </Detail>+ <Detail>+ <DetailLabel>Value</DetailLabel>+ <SourceValue src={s} />+ </Detail>+ </div>+ ))}+ </div>+ </DetailGroup>+ </div>+ );+};diff --git a/frontend/src/components/proxied-services/forms/ProxiedServiceSubstitutionDiagram.tsx b/frontend/src/components/proxied-services/forms/ProxiedServiceSubstitutionDiagram.tsxnew file mode 100644index 0000000000..7459916770--- /dev/null+++ b/frontend/src/components/proxied-services/forms/ProxiedServiceSubstitutionDiagram.tsx@@ -0,0 +1,138 @@+import { useState } from "react";+import { useFormContext } from "react-hook-form";+import {+ ArrowDownIcon,+ ArrowRightIcon,+ BotIcon,+ ChevronsLeftRightEllipsisIcon,+ GlobeIcon,+ InfoIcon+} from "lucide-react";++import { Tooltip, TooltipContent, TooltipTrigger } from "@app/components/v3";+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;++const Connector = ({ label }: { label: string }) => (+ <div className="flex items-center gap-2 py-1.5 pl-3.5">+ <div className="flex flex-col items-center">+ <div className="h-3 w-px bg-border" />+ <ArrowDownIcon className="-mt-1 size-3 text-muted" />+ </div>+ <span className="text-[11px] leading-tight text-muted">{label}</span>+ </div>+);++const Node = ({+ icon,+ title,+ accent,+ children+}: {+ icon: React.ReactNode;+ title: string;+ accent?: boolean;+ children: React.ReactNode;+}) => (+ <div+ className={`rounded-md border p-2.5 ${+ accent+ ? "border-proxied-service/30 bg-proxied-service/10"+ : "border-border bg-mineshaft-700/40"+ }`}+ >+ <div className="flex items-center gap-1.5 text-xs font-medium text-foreground">+ {icon}+ {title}+ </div>+ <div className="mt-1.5">{children}</div>+ </div>+);++const ServiceIcon = ({ template }: { template?: ProxiedServiceTemplate }) => {+ const [imgError, setImgError] = useState(false);++ if (template && !imgError) {+ return (+ <img+ src={`/images/integrations/${template.image}`}+ alt=""+ className="size-3.5 shrink-0 object-contain"+ onError={() => setImgError(true)}+ />+ );+ }+ return <GlobeIcon className="size-3.5 text-bunker-300" />;+};++export const ProxiedServiceSubstitutionDiagram = ({ template }: Props) => {+ const { watch } = useFormContext<TProxiedServiceForm>();+ const substitutions = watch("substitutions");+ const example = substitutions?.find((s) => s.placeholderKey) ?? substitutions?.[0];++ const envVar = example?.placeholderKey || "API_KEY";+ const placeholder = truncate(example?.placeholderValue || "sk-xxxxxxxxxxxx");++ return (+ <div className="rounded-md border border-border bg-container/40 p-3">+ <div className="mb-2.5 flex items-center gap-1.5">+ <p className="text-xs font-semibold text-foreground">On the wire</p>+ <Tooltip>+ <TooltipTrigger asChild>+ <InfoIcon className="size-3 cursor-help text-muted" />+ </TooltipTrigger>+ <TooltipContent className="max-w-xs">+ When an agent launches with{" "}+ <span className="font-mono">infisical secrets agent-proxy connect</span>, Infisical sets+ each placeholder as an environment variable on it. The agent sends the placeholder in+ its requests, and the proxy swaps it for the real secret on the wire.+ </TooltipContent>+ </Tooltip>+ </div>++ <Node icon={<BotIcon className="size-3.5 text-bunker-300" />} title="Your Agent">+ <p className="font-mono text-[11px] break-all">+ <span className="text-bunker-300">{envVar}</span>+ <span className="text-muted">=</span>+ <span className="text-foreground">{placeholder}</span>+ </p>+ <p className="mt-1 text-[11px] leading-tight text-muted">+ Infisical sets this env var to a fake, real-looking value.+ </p>+ </Node>++ <Connector label="Agent sends the placeholder in its request" />++ <Node+ icon={<ChevronsLeftRightEllipsisIcon className="size-3.5 text-proxied-service" />}+ title="Agent Proxy"+ accent+ >+ <p className="flex flex-wrap items-center gap-1 font-mono text-[11px]">+ <span className="text-muted line-through">{placeholder}</span>+ <ArrowRightIcon className="size-3 shrink-0 text-muted" />+ <span className="text-foreground">real secret</span>+ </p>+ <p className="mt-1 text-[11px] leading-tight text-muted">+ Swaps the placeholder for the real secret.+ </p>+ </Node>++ <Connector label="Forwards the real request" />++ <Node icon={<ServiceIcon template={template} />} title={template?.name || "External Service"}>+ <p className="text-[11px] leading-tight text-muted">+ Receives the real credential. Your agent never held it.+ </p>+ </Node>+ </div>+ );+};diff --git a/frontend/src/components/proxied-services/forms/ProxiedServiceSubstitutionFields.tsx b/frontend/src/components/proxied-services/forms/ProxiedServiceSubstitutionFields.tsxnew file mode 100644index 0000000000..727f4ce3a3--- /dev/null+++ b/frontend/src/components/proxied-services/forms/ProxiedServiceSubstitutionFields.tsx@@ -0,0 +1,193 @@+import { Controller, useFieldArray, useFormContext } from "react-hook-form";+import { InfoIcon, PlusIcon, TrashIcon, TriangleAlertIcon } from "lucide-react";++import {+ Alert,+ AlertDescription,+ AlertTitle,+ Button,+ FieldError,+ IconButton,+ Input,+ Tooltip,+ TooltipContent,+ TooltipTrigger+} from "@app/components/v3";++import { CredentialSourceFields, TCredentialSource } from "./CredentialSourceFields";+import { TProxiedServiceForm } from "./schema";+import { SurfaceSelect } from "./SurfaceSelect";+import { genPlaceholder } from "./utils";++type Props = {+ projectId: string;+ environment: string;+ secretPath: string;+ showCredentialError?: boolean;+ onClearCredentialError?: () => void;+};++export const ProxiedServiceSubstitutionFields = ({+ projectId,+ environment,+ secretPath,+ showCredentialError,+ onClearCredentialError+}: Props) => {+ const {+ control,+ register,+ watch,+ setValue,+ formState: { errors }+ } = useFormContext<TProxiedServiceForm>();++ const substitutionFields = useFieldArray({ control, name: "substitutions" });+ const watchedSubstitutions = watch("substitutions");++ const setSubstitutionSource = (i: number, v: TCredentialSource) => {+ setValue(`substitutions.${i}.secretKey`, v.secretKey ?? "");+ setValue(`substitutions.${i}.dynamicSecretName`, v.dynamicSecretName ?? "");+ setValue(`substitutions.${i}.dynamicSecretField`, v.dynamicSecretField ?? "");+ };++ return (+ <div className="flex flex-col gap-3">+ {showCredentialError && (+ <Alert variant="danger">+ <TriangleAlertIcon />+ <AlertTitle>Add at least one credential</AlertTitle>+ <AlertDescription>+ A proxied service needs at least one header rewrite or substitution. Add a substitution+ below, or go back to Header Rewrites.+ </AlertDescription>+ </Alert>+ )}+ <div className="flex flex-col gap-3">+ {substitutionFields.fields.length === 0 && (+ <div className="rounded-md border border-border bg-container/50 p-4 text-center text-sm text-muted">+ No substitutions added. Click below to add.+ </div>+ )}+ {substitutionFields.fields.map((row, i) => (+ <div+ key={row.id}+ className="flex flex-col gap-3 rounded-md border border-border bg-container/50 p-4 text-sm"+ >+ <div className="flex flex-wrap items-center gap-x-2 gap-y-2">+ <span className="shrink-0 text-muted">Set</span>+ <Input+ className="w-44 font-mono"+ placeholder="ENV_VAR_NAME"+ isError={Boolean(errors.substitutions?.[i]?.placeholderKey)}+ {...register(`substitutions.${i}.placeholderKey`)}+ />+ <Tooltip>+ <TooltipTrigger asChild>+ <InfoIcon className="size-3.5 shrink-0 text-muted" />+ </TooltipTrigger>+ <TooltipContent className="max-w-xs">+ Infisical sets this environment variable on the agent for you, holding the+ placeholder value.+ </TooltipContent>+ </Tooltip>+ <span className="shrink-0 text-muted">to the placeholder</span>+ <Input+ className="min-w-0 flex-1 font-mono"+ placeholder="placeholder_value"+ isError={Boolean(errors.substitutions?.[i]?.placeholderValue)}+ {...register(`substitutions.${i}.placeholderValue`)}+ />+ <Tooltip>+ <TooltipTrigger asChild>+ <InfoIcon className="size-3.5 shrink-0 text-muted" />+ </TooltipTrigger>+ <TooltipContent className="max-w-xs">+ The value the agent sends instead of the real secret; the proxy swaps it on the+ wire. Prefilled to look like a real credential so format-checking clients accept+ it — edit it if your client expects a different shape.+ </TooltipContent>+ </Tooltip>+ <IconButton+ variant="ghost"+ size="xs"+ type="button"+ aria-label="Remove substitution"+ className="shrink-0 transition-transform hover:text-danger"+ onClick={() => substitutionFields.remove(i)}+ >+ <TrashIcon className="size-4" />+ </IconButton>+ </div>+ <FieldError+ errors={[+ errors.substitutions?.[i]?.placeholderKey,+ errors.substitutions?.[i]?.placeholderValue+ ]}+ />++ <div className="flex items-center gap-2">+ <span className="shrink-0 text-muted">and replace it in</span>+ <div className="flex-1">+ <Controller+ control={control}+ name={`substitutions.${i}.surfaces`}+ render={({ field }) => (+ <SurfaceSelect value={field.value} onChange={field.onChange} />+ )}+ />+ <FieldError errors={[errors.substitutions?.[i]?.surfaces]} />+ </div>+ </div>++ <div className="flex items-center gap-2">+ <span className="shrink-0 text-muted">with value of</span>+ <div className="flex-1">+ <CredentialSourceFields+ projectId={projectId}+ environment={environment}+ secretPath={secretPath}+ value={{+ secretKey: watchedSubstitutions?.[i]?.secretKey,+ dynamicSecretName: watchedSubstitutions?.[i]?.dynamicSecretName,+ dynamicSecretField: watchedSubstitutions?.[i]?.dynamicSecretField+ }}+ onChange={(v) => setSubstitutionSource(i, v)}+ isSecretError={Boolean(errors.substitutions?.[i]?.secretKey)}+ isFieldError={Boolean(errors.substitutions?.[i]?.dynamicSecretField)}+ />+ <FieldError+ errors={[+ errors.substitutions?.[i]?.secretKey,+ errors.substitutions?.[i]?.dynamicSecretField+ ]}+ />+ </div>+ </div>+ </div>+ ))}+ </div>+ <div>+ <Button+ variant="ghost"+ size="xs"+ type="button"+ onClick={() => {+ substitutionFields.append({+ secretKey: "",+ dynamicSecretName: "",+ dynamicSecretField: "",+ placeholderKey: "",+ placeholderValue: genPlaceholder(),+ surfaces: []+ });+ onClearCredentialError?.();+ }}+ >+ <PlusIcon className="mr-1 size-4" />+ Add Substitution+ </Button>+ </div>+ </div>+ );+};diff --git a/frontend/src/components/proxied-services/forms/brokerableDynamicSecrets.ts b/frontend/src/components/proxied-services/forms/brokerableDynamicSecrets.tsindex 553570a238..c85f17e0e8 100644--- a/frontend/src/components/proxied-services/forms/brokerableDynamicSecrets.ts+++ b/frontend/src/components/proxied-services/forms/brokerableDynamicSecrets.ts@@ -1,27 +1,17 @@import { DynamicSecretProviders } from "@app/hooks/api/dynamicSecret/types";-export type TProviderLeaseInput = { name: "namespace"; label: string; helperText: string };-type TBrokerableDynamicSecret = {fields: { name: string; label: string }[];- leaseInputs?: TProviderLeaseInput[];};-// Dynamic-secret providers a proxied service can broker over HTTP, with the eligible output fields and any-// lease inputs. A provider not listed can't be brokered; a field not listed is hidden (e.g. metadata).+// Dynamic-secret providers a proxied service can broker over HTTP, with the eligible output fields.+// A provider not listed can't be brokered; a field not listed is hidden (e.g. metadata).// keep in sync with backend/src/ee/services/proxied-service/proxied-service-brokerable-outputs.tsexport const BROKERABLE_DYNAMIC_SECRETS: Partial<Record<DynamicSecretProviders, TBrokerableDynamicSecret>> = {[DynamicSecretProviders.Kubernetes]: {- fields: [{ name: "TOKEN", label: "Service Account JWT" }],- leaseInputs: [- {- name: "namespace",- label: "Namespace",- helperText: "Kubernetes namespace to use. Optional."- }- ]+ fields: [{ name: "TOKEN", label: "Service Account JWT" }]},[DynamicSecretProviders.Github]: { fields: [{ name: "TOKEN", label: "Token" }] },[DynamicSecretProviders.GcpIam]: { fields: [{ name: "TOKEN", label: "Token" }] },diff --git a/frontend/src/components/proxied-services/forms/index.ts b/frontend/src/components/proxied-services/forms/index.tsindex 5abab58fd0..09035201f5 100644--- a/frontend/src/components/proxied-services/forms/index.ts+++ b/frontend/src/components/proxied-services/forms/index.ts@@ -1 +1,2 @@-export * from "./ProxiedServiceForm";+export * from "./CreateProxiedServiceForm";+export * from "./EditProxiedServiceForm";diff --git a/frontend/src/components/proxied-services/forms/schema.ts b/frontend/src/components/proxied-services/forms/schema.tsindex e847e97b06..f2b24434cb 100644--- a/frontend/src/components/proxied-services/forms/schema.ts+++ b/frontend/src/components/proxied-services/forms/schema.ts@@ -52,13 +52,6 @@ const hostPatternField = z});});-const leaseConfigSchema = z.object({- namespace: z.string().trim().optional(),- principals: z.array(z.string().trim().min(1)).optional()-});--export type TLeaseConfig = z.infer<typeof leaseConfigSchema>;-const credentialSourceSchema = z.object({secretKey: z.string().trim().default(""),dynamicSecretName: z.string().trim().default(""),@@ -87,6 +80,7 @@ const substitutionSchema = credentialSourceSchema.extend({surfaces: z.array(z.nativeEnum(ProxiedServiceSubstitutionSurface)).min(1, "Select at least one")});+// A credential source is exactly one of a static secret or a dynamic secret (with an output field).const refineCredentialSource = (row: TCredentialSourceForm,ctx: z.RefinementCtx,@@ -129,8 +123,7 @@ export const proxiedServiceFormSchema = zheaderMode: z.nativeEnum(HeaderRewritingMode).default(HeaderRewritingMode.Headers),headers: z.array(headerCredentialSchema).default([]),basicAuth: basicAuthSchema.optional(),- substitutions: z.array(substitutionSchema).default([]),- dynamicSecretConfigs: z.record(z.string(), leaseConfigSchema).default({})+ substitutions: z.array(substitutionSchema).default([])}).superRefine((form, ctx) => {if (form.headerMode === HeaderRewritingMode.Headers) {@@ -155,13 +148,6 @@ export const proxiedServiceFormSchema = zseenHeaderNames.set(key, i);}});- if (!form.headers.length && !form.substitutions.length) {- ctx.addIssue({- code: z.ZodIssueCode.custom,- message: "Add at least one header or substitution",- path: ["headers"]- });- }} else if (form.basicAuth) {refineCredentialSource(form.basicAuth.username, ctx, ["basicAuth", "username"]);if (form.basicAuth.password.secretKey || form.basicAuth.password.dynamicSecretName) {@@ -189,3 +175,32 @@ export const proxiedServiceFormSchema = z});export type TProxiedServiceForm = z.infer<typeof proxiedServiceFormSchema>;++export enum ProxiedServiceStep {+ Details = "details",+ Headers = "headers",+ Substitution = "substitution",+ Review = "review"+}++// Field names validated when advancing past each step (via react-hook-form `trigger`).+export const PROXIED_SERVICE_STEP_FIELDS: Record<+ ProxiedServiceStep,+ (keyof TProxiedServiceForm)[]+> = {+ [ProxiedServiceStep.Details]: ["name", "hostPattern", "isEnabled"],+ [ProxiedServiceStep.Headers]: ["headerMode", "headers", "basicAuth"],+ [ProxiedServiceStep.Substitution]: ["substitutions"],+ [ProxiedServiceStep.Review]: []+};++// The "at least one credential" rule lives here rather than in the zod schema: in zod it would+// attach to the headers node and block a substitution-only (or basic-auth-only) config on the+// empty Header Rewrites step. Enforced imperatively when leaving Substitution / on submit.+export const hasAtLeastOneCredential = (form: TProxiedServiceForm) => {+ const hasSource = (source?: TCredentialSourceForm) =>+ Boolean(source?.secretKey || source?.dynamicSecretName);+ if (form.substitutions.length) return true;+ if (form.headerMode === HeaderRewritingMode.BasicAuth) return hasSource(form.basicAuth?.username);+ return form.headers.length > 0;+};diff --git a/frontend/src/components/proxied-services/forms/stepMeta.ts b/frontend/src/components/proxied-services/forms/stepMeta.tsnew file mode 100644index 0000000000..1985d3f72e--- /dev/null+++ b/frontend/src/components/proxied-services/forms/stepMeta.ts@@ -0,0 +1,59 @@+import { ProxiedServiceStep } from "./schema";++export const PROXIED_SERVICE_QUICKSTART_URL =+ "https://infisical.com/docs/documentation/platform/agent-proxy/quickstart";++type StepMeta = {+ step: ProxiedServiceStep;+ name: string;+ shortDescription: string;+ title: string;+ subtitle: string;+ rightLabel: string;+ rightDescription: string;+};++// Ordered as the form advances. The Header Rewrites step is skipped in linear navigation+// when it is empty (see the form orchestrators), but always stays in this list.+export const PROXIED_SERVICE_STEPS: StepMeta[] = [+ {+ step: ProxiedServiceStep.Details,+ name: "Details",+ shortDescription: "Name and host",+ title: "Service Details",+ subtitle: "Name the service and choose which hosts it brokers.",+ rightLabel: "DETAILS",+ rightDescription:+ "The name identifies this service within the folder. The host pattern decides which outbound requests the agent proxy applies these credentials to."+ },+ {+ step: ProxiedServiceStep.Headers,+ name: "Header Rewrites",+ shortDescription: "Request headers",+ title: "Header Rewrites",+ subtitle: "Set or overwrite request headers with a secret.",+ rightLabel: "HEADER REWRITES",+ rightDescription:+ "The proxy sets these headers on every outbound request, overwriting whatever the agent sent. Use this for Bearer tokens, API-key headers, or basic auth. Skip it if the credential is carried elsewhere."+ },+ {+ step: ProxiedServiceStep.Substitution,+ name: "Substitution",+ shortDescription: "Placeholder swaps",+ title: "Secret Substitution",+ subtitle: "Swap a placeholder the agent sends for the real secret.",+ rightLabel: "SUBSTITUTION",+ rightDescription:+ "Infisical hands the agent a placeholder as an environment variable; the proxy swaps it for the real secret wherever it appears in the surfaces you pick (path, query, header, body). Ideal when the credential sits in the URL or the agent's client validates its format."+ },+ {+ step: ProxiedServiceStep.Review,+ name: "Review",+ shortDescription: "Confirm",+ title: "Review",+ subtitle: "Confirm the configuration before saving.",+ rightLabel: "REVIEW",+ rightDescription:+ "Double-check the host pattern and each credential. You can edit any of this later from the folder view."+ }+];diff --git a/frontend/src/components/proxied-services/forms/utils.ts b/frontend/src/components/proxied-services/forms/utils.tsnew file mode 100644index 0000000000..aec8cb762d--- /dev/null+++ b/frontend/src/components/proxied-services/forms/utils.ts@@ -0,0 +1,184 @@+import { ProxiedServiceTemplate } from "@app/helpers/proxiedServiceTemplates";+import {+ ProxiedServiceCredentialRole,+ ProxiedServiceHeaderPurpose,+ ProxiedServiceSubstitutionSurface+} from "@app/hooks/api/proxiedServices/enums";+import {+ TDashboardProxiedService,+ TProxiedServiceCredentialInput+} from "@app/hooks/api/proxiedServices/types";++import { HeaderRewritingMode, TCredentialSourceForm, TProxiedServiceForm } from "./schema";++export const genPlaceholder = () =>+ `placeholder_${Array.from(+ { length: 12 },+ () => "abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random() * 26)]+ ).join("")}`;++const emptySource = (): TCredentialSourceForm => ({+ secretKey: "",+ dynamicSecretName: "",+ dynamicSecretField: ""+});++const toSource = (c: TDashboardProxiedService["credentials"][number]): TCredentialSourceForm =>+ c.dynamicSecretName+ ? {+ secretKey: "",+ dynamicSecretName: c.dynamicSecretName,+ dynamicSecretField: c.dynamicSecretField ?? ""+ }+ : { secretKey: c.secretKey ?? "", dynamicSecretName: "", dynamicSecretField: "" };++const hasSource = (src: TCredentialSourceForm) => Boolean(src.secretKey || src.dynamicSecretName);++// Emits the source half of a credential input: either a static secretKey or a dynamic+// secret + output field. (Lease config, e.g. k8s namespace, is intentionally not collected.)+const sourceToInput = (+ src: TCredentialSourceForm+): Pick<+ TProxiedServiceCredentialInput,+ "secretKey" | "dynamicSecretName" | "dynamicSecretField"+> =>+ src.dynamicSecretName+ ? { dynamicSecretName: src.dynamicSecretName, dynamicSecretField: src.dynamicSecretField }+ : { secretKey: src.secretKey };++// The legacy blank-slate defaults, used for "Custom" and as the base for new services.+export const emptyFormValues = (): TProxiedServiceForm => ({+ name: "",+ hostPattern: "",+ isEnabled: true,+ headerMode: HeaderRewritingMode.Headers,+ headers: [{ ...emptySource(), headerName: "Authorization", headerPrefix: "Bearer" }],+ basicAuth: { username: emptySource(), password: emptySource() },+ substitutions: []+});++export const toDefaultValues = (svc?: TDashboardProxiedService): TProxiedServiceForm => {+ if (!svc) return emptyFormValues();++ const headerCreds = svc.credentials.filter(+ (c) => c.role === ProxiedServiceCredentialRole.HeaderRewrite+ );+ const isBasicAuth = headerCreds.some((c) => c.headerPurpose);+ const username = headerCreds.find(+ (c) => c.headerPurpose === ProxiedServiceHeaderPurpose.Username+ );+ const password = headerCreds.find(+ (c) => c.headerPurpose === ProxiedServiceHeaderPurpose.Password+ );+ const subs = svc.credentials.filter(+ (c) => c.role === ProxiedServiceCredentialRole.CredentialSubstitution+ );++ return {+ name: svc.name,+ hostPattern: svc.hostPattern,+ isEnabled: svc.isEnabled,+ headerMode: isBasicAuth ? HeaderRewritingMode.BasicAuth : HeaderRewritingMode.Headers,+ headers: isBasicAuth+ ? []+ : headerCreds.map((c) => ({+ ...toSource(c),+ headerName: c.headerName ?? "",+ headerPrefix: c.headerPrefix ?? ""+ })),+ basicAuth: {+ username: username ? toSource(username) : emptySource(),+ password: password ? toSource(password) : emptySource()+ },+ substitutions: subs.map((c) => ({+ ...toSource(c),+ placeholderKey: c.placeholderKey ?? "",+ placeholderValue: c.placeholderValue ?? genPlaceholder(),+ surfaces: (c.substitutionSurfaces ?? []) as ProxiedServiceSubstitutionSurface[]+ }))+ };+};++export const toCredentials = (form: TProxiedServiceForm): TProxiedServiceCredentialInput[] => {+ const credentials: TProxiedServiceCredentialInput[] = [];++ if (form.headerMode === HeaderRewritingMode.BasicAuth) {+ if (form.basicAuth && hasSource(form.basicAuth.username)) {+ credentials.push({+ ...sourceToInput(form.basicAuth.username),+ role: ProxiedServiceCredentialRole.HeaderRewrite,+ headerPurpose: ProxiedServiceHeaderPurpose.Username+ });+ }+ if (form.basicAuth && hasSource(form.basicAuth.password)) {+ credentials.push({+ ...sourceToInput(form.basicAuth.password),+ role: ProxiedServiceCredentialRole.HeaderRewrite,+ headerPurpose: ProxiedServiceHeaderPurpose.Password+ });+ }+ } else {+ form.headers.forEach((h) => {+ credentials.push({+ ...sourceToInput(h),+ role: ProxiedServiceCredentialRole.HeaderRewrite,+ headerName: h.headerName,+ // omit rather than send null: the API field is optional and rejects null+ headerPrefix: h.headerPrefix || undefined+ });+ });+ }++ form.substitutions.forEach((s) => {+ credentials.push({+ ...sourceToInput(s),+ role: ProxiedServiceCredentialRole.CredentialSubstitution,+ placeholderKey: s.placeholderKey,+ placeholderValue: s.placeholderValue,+ substitutionSurfaces: s.surfaces+ });+ });++ return 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/helpers/proxiedServiceTemplates.ts b/frontend/src/helpers/proxiedServiceTemplates.tsnew file mode 100644index 0000000000..b3884698af--- /dev/null+++ b/frontend/src/helpers/proxiedServiceTemplates.ts@@ -0,0 +1,484 @@+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 } }+ },++ // ---- 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",+ "stripe"+];diff --git a/frontend/src/hooks/api/proxiedServices/types.ts b/frontend/src/hooks/api/proxiedServices/types.tsindex 2e94715f25..b5c0fe6fb7 100644--- a/frontend/src/hooks/api/proxiedServices/types.ts+++ b/frontend/src/hooks/api/proxiedServices/types.ts@@ -4,11 +4,6 @@ import {ProxiedServiceSubstitutionSurface} from "./enums";-export type TProxiedServiceLeaseConfig = {- namespace?: string;- principals?: string[];-};-export type TProxiedServiceCredential = {id: string;serviceId: string;@@ -22,7 +17,6 @@ export type TProxiedServiceCredential = {substitutionSurfaces?: ProxiedServiceSubstitutionSurface[] | null;dynamicSecretName?: string | null;dynamicSecretField?: string | null;- dynamicSecretConfig?: TProxiedServiceLeaseConfig | null;callerCanLease?: boolean;};@@ -62,7 +56,6 @@ export type TProxiedServiceCredentialInput = {substitutionSurfaces?: ProxiedServiceSubstitutionSurface[] | null;dynamicSecretName?: string;dynamicSecretField?: string;- dynamicSecretConfig?: TProxiedServiceLeaseConfig;};export type TCreateProxiedServiceDTO = {diff --git a/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx b/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsxindex 24406929ca..7addd31a88 100644--- a/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx+++ b/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx@@ -3711,12 +3711,14 @@ const OverviewPageContent = () => {projectId={projectId}environment={singleEnvSlug}secretPath={secretPath}+ existingNames={proxiedServiceNames}/><EditProxiedServiceModalisOpen={popUp.editProxiedService.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("editProxiedService", isOpen)}proxiedService={popUp.editProxiedService.data as TDashboardProxiedService}projectId={projectId}+ existingNames={proxiedServiceNames}/><DeleteProxiedServiceModalisOpen={popUp.deleteProxiedService.isOpen}