Skip to content

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

Merge branch 'main' into feat/adilsitos/eng-5311

adilsonb6afc9d9d57f
diff --cc backend/src/ee/routes/v2/secret-rotation-v2-routers/index.ts
index 1e4b714dd7,54148dfb29..f529032576
--- a/backend/src/ee/routes/v2/secret-rotation-v2-routers/index.ts
+++ b/backend/src/ee/routes/v2/secret-rotation-v2-routers/index.ts
@@@ -7,9 -7,9 +7,10 @@@ import { registerConvexAccessKeyRotatio
import { registerDatabricksServicePrincipalSecretRotationRouter } from "./databricks-service-principal-secret-rotation-router";
import { registerDatadogApplicationKeySecretRotationRouter } from "./datadog-application-key-secret-rotation-router";
import { registerDbtServiceTokenRotationRouter } from "./dbt-service-token-rotation-router";
+ import { registerFireworksApiKeyRotationRouter } from "./fireworks-api-key-rotation-router";
import { registerHpIloRotationRouter } from "./hp-ilo-rotation-router";
import { registerLdapPasswordRotationRouter } from "./ldap-password-rotation-router";
+import { registerLiteLLMApiKeyRotationRouter } from "./litellm-api-key-rotation-router";
import { registerMongoDBCredentialsRotationRouter } from "./mongodb-credentials-rotation-router";
import { registerMsSqlCredentialsRotationRouter } from "./mssql-credentials-rotation-router";
import { registerMySqlCredentialsRotationRouter } from "./mysql-credentials-rotation-router";
@@@ -45,7 -46,7 +47,8 @@@ export const SECRET_ROTATION_REGISTER_R
[SecretRotation.DbtServiceToken]: registerDbtServiceTokenRotationRouter,
[SecretRotation.WindowsLocalAccount]: registerWindowsLocalAccountRotationRouter,
[SecretRotation.OpenRouterApiKey]: registerOpenRouterApiKeyRotationRouter,
+ [SecretRotation.LiteLLMApiKey]: registerLiteLLMApiKeyRotationRouter,
+ [SecretRotation.OpenAIServiceAccount]: registerOpenAIServiceAccountRotationRouter,
[SecretRotation.HpIloLocalAccount]: registerHpIloRotationRouter,
[SecretRotation.SupabaseApiKey]: registerSupabaseApiKeyRotationRouter,
[SecretRotation.SalesforceOauthCredentials]: registerSalesforceOauthCredentialsRotationRouter,
diff --cc backend/src/ee/routes/v2/secret-rotation-v2-routers/secret-rotation-v2-router.ts
index 641478d4ea,b9a4225cbd..a7fc88177f
--- a/backend/src/ee/routes/v2/secret-rotation-v2-routers/secret-rotation-v2-router.ts
+++ b/backend/src/ee/routes/v2/secret-rotation-v2-routers/secret-rotation-v2-router.ts
@@@ -8,9 -8,9 +8,10 @@@ import { ConvexAccessKeyRotationListIte
import { DatabricksServicePrincipalSecretRotationListItemSchema } from "@app/ee/services/secret-rotation-v2/databricks-service-principal-secret";
import { DatadogApplicationKeySecretRotationListItemSchema } from "@app/ee/services/secret-rotation-v2/datadog-application-key-secret";
import { DbtServiceTokenRotationListItemSchema } from "@app/ee/services/secret-rotation-v2/dbt-service-token";
+ import { FireworksApiKeyRotationListItemSchema } from "@app/ee/services/secret-rotation-v2/fireworks-api-key";
import { HpIloRotationListItemSchema } from "@app/ee/services/secret-rotation-v2/hp-ilo-rotation";
import { LdapPasswordRotationListItemSchema } from "@app/ee/services/secret-rotation-v2/ldap-password";
+import { LiteLLMApiKeyRotationListItemSchema } from "@app/ee/services/secret-rotation-v2/litellm-api-key";
import { MongoDBCredentialsRotationListItemSchema } from "@app/ee/services/secret-rotation-v2/mongodb-credentials";
import { MsSqlCredentialsRotationListItemSchema } from "@app/ee/services/secret-rotation-v2/mssql-credentials";
import { MySqlCredentialsRotationListItemSchema } from "@app/ee/services/secret-rotation-v2/mysql-credentials";
@@@ -46,7 -47,7 +48,8 @@@ const SecretRotationV2OptionsSchema = z
DbtServiceTokenRotationListItemSchema,
WindowsLocalAccountRotationListItemSchema,
OpenRouterApiKeyRotationListItemSchema,
+ LiteLLMApiKeyRotationListItemSchema,
+ OpenAIServiceAccountRotationListItemSchema,
HpIloRotationListItemSchema,
SupabaseApiKeyRotationListItemSchema,
SalesforceOauthCredentialsRotationListItemSchema,
diff --cc backend/src/ee/services/secret-rotation-v2/fireworks-api-key/fireworks-api-key-rotation-fns.ts
index 0000000000,97f49e1500..d0ee0167a9
mode 000000,100644..100644
--- a/backend/src/ee/services/secret-rotation-v2/fireworks-api-key/fireworks-api-key-rotation-fns.ts
+++ b/backend/src/ee/services/secret-rotation-v2/fireworks-api-key/fireworks-api-key-rotation-fns.ts
@@@ -1,0 -1,173 +1,173 @@@
+ import { AxiosError } from "axios";
+
+ import {
+ TRotationFactory,
+ TRotationFactoryGetSecretsPayload,
+ TRotationFactoryIssueCredentials,
+ TRotationFactoryRevokeCredentials,
+ TRotationFactoryRotateCredentials
+ } from "@app/ee/services/secret-rotation-v2/secret-rotation-v2-types";
+ import { request } from "@app/lib/config/request";
+ import { BadRequestError } from "@app/lib/errors";
+ import { logger } from "@app/lib/logger";
+ import { FIREWORKS_API_BASE_URL } from "@app/services/app-connection/fireworks/fireworks-connection-fns";
+
+ import {
+ TFireworksApiKeyRotationGeneratedCredential,
+ TFireworksApiKeyRotationGeneratedCredentials,
+ TFireworksApiKeyRotationWithConnection
+ } from "./fireworks-api-key-rotation-types";
+
+ type TFireworksCreateApiKeyResponse = {
+ keyId: string;
+ key: string;
+ };
+
+ const $createApiKey = async (
+ apiKey: string,
+ accountId: string,
+ userId: string,
+ displayName: string
+ ): Promise<{ keyId: string; apiKey: string }> => {
+ try {
+ const { data } = await request.post<TFireworksCreateApiKeyResponse>(
+ `${FIREWORKS_API_BASE_URL}/v1/accounts/${encodeURIComponent(accountId)}/users/${encodeURIComponent(userId)}/apiKeys`,
+ { apiKey: { displayName } },
+ {
+ headers: {
+ Authorization: `Bearer ${apiKey}`,
+ "Content-Type": "application/json"
+ }
+ }
+ );
+
+ if (!data?.key) {
+ throw new Error("Invalid response from Fireworks: missing API key data.");
+ }
+
+ return {
+ keyId: data.keyId,
+ apiKey: data.key
+ };
+ } catch (error: unknown) {
+ if (error instanceof BadRequestError) throw error;
+ throw new BadRequestError({
+ message: `Failed to create Fireworks API key: ${error instanceof AxiosError ? error.message : "Unknown error"}`
+ });
+ }
+ };
+
+ const $checkApiKey = async (generatedApiKey: string, accountId: string): Promise<void> => {
+ try {
+ await request.get(`${FIREWORKS_API_BASE_URL}/v1/accounts/${encodeURIComponent(accountId)}`, {
+ headers: {
+ Authorization: `Bearer ${generatedApiKey}`
+ }
+ });
+ } catch (error: unknown) {
+ throw new BadRequestError({
+ message: `Fireworks API key verification failed: ${error instanceof AxiosError ? error.message : "Unknown error"}`
+ });
+ }
+ };
+
+ const $deleteApiKey = async (authKey: string, accountId: string, userId: string, keyId: string): Promise<void> => {
+ try {
+ await request.post(
+ `${FIREWORKS_API_BASE_URL}/v1/accounts/${encodeURIComponent(accountId)}/users/${encodeURIComponent(userId)}/apiKeys:delete`,
+ { keyId },
+ {
+ headers: {
+ Authorization: `Bearer ${authKey}`,
+ "Content-Type": "application/json"
+ }
+ }
+ );
+ } catch (error: unknown) {
+ if (error instanceof AxiosError && error.response?.status === 404) return;
+ throw new BadRequestError({
+ message: `Failed to delete Fireworks API key: ${error instanceof AxiosError ? error.message : "Unknown error"}`
+ });
+ }
+ };
+
+ export const fireworksApiKeyRotationFactory: TRotationFactory<
+ TFireworksApiKeyRotationWithConnection,
+ TFireworksApiKeyRotationGeneratedCredentials
+ > = (secretRotation) => {
+ const {
+ id: rotationId,
+ connection,
+ parameters: { serviceAccountUserId },
+ secretsMapping
+ } = secretRotation;
+
+ const { apiKey, accountId } = connection.credentials;
+
+ const generateDisplayName = () => `Infisical-rotation-${Date.now()}`;
+
+ const issueCredentials: TRotationFactoryIssueCredentials<TFireworksApiKeyRotationGeneratedCredentials> = async (
+ callback
+ ) => {
+ const credentials = await $createApiKey(apiKey, accountId, serviceAccountUserId, generateDisplayName());
+ return callback(credentials);
+ };
+
+ const revokeCredentials: TRotationFactoryRevokeCredentials<TFireworksApiKeyRotationGeneratedCredentials> = async (
+ generatedCredentials,
+ callback
+ ) => {
+ if (!generatedCredentials?.length) return callback();
+
+ const results = await Promise.allSettled(
+ generatedCredentials.map((credential) => $deleteApiKey(apiKey, accountId, serviceAccountUserId, credential.keyId))
+ );
+
- results.forEach((result, index) => {
++ results.forEach((result) => {
+ if (result.status === "rejected") {
+ logger.error(
+ result.reason,
+ `fireworksApiKeyRotation: failed to revoke API key during cleanup [rotationId=${rotationId}]`
+ );
+ }
+ });
+
+ return callback();
+ };
+
+ const rotateCredentials: TRotationFactoryRotateCredentials<TFireworksApiKeyRotationGeneratedCredentials> = async (
+ credentialsToRevoke,
+ callback
+ ) => {
+ const credentials = await $createApiKey(apiKey, accountId, serviceAccountUserId, generateDisplayName());
+
+ if (credentialsToRevoke?.keyId) {
+ try {
+ await $deleteApiKey(apiKey, accountId, serviceAccountUserId, credentialsToRevoke.keyId);
+ } catch (revokeError) {
+ logger.error(
+ revokeError,
+ `fireworksApiKeyRotation: failed to revoke previous API key after rotation [rotationId=${rotationId}] [keyId=${credentialsToRevoke.keyId}]`
+ );
+ }
+ }
+
+ return callback(credentials);
+ };
+
+ const checkActiveCredentials = async ({ apiKey: generatedKey }: TFireworksApiKeyRotationGeneratedCredential) => {
+ await $checkApiKey(generatedKey, accountId);
+ };
+
+ const getSecretsPayload: TRotationFactoryGetSecretsPayload<TFireworksApiKeyRotationGeneratedCredentials> = (
+ generatedCredentials
+ ) => [{ key: secretsMapping.apiKey, value: generatedCredentials.apiKey }];
+
+ return {
+ issueCredentials,
+ revokeCredentials,
+ rotateCredentials,
+ getSecretsPayload,
+ checkActiveCredentials
+ };
+ };
diff --cc backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-enums.ts
index fcd98d2bd9,e6412ffe1f..58b8b9eb37
--- a/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-enums.ts
+++ b/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-enums.ts
@@@ -15,7 -15,7 +15,8 @@@ export enum SecretRotation
DbtServiceToken = "dbt-service-token",
WindowsLocalAccount = "windows-local-account",
OpenRouterApiKey = "open-router-api-key",
+ LiteLLMApiKey = "litellm-api-key",
+ OpenAIServiceAccount = "openai-service-account",
HpIloLocalAccount = "hp-ilo-local-account",
SupabaseApiKey = "supabase-api-key",
SalesforceOauthCredentials = "salesforce-oauth-credentials",
diff --cc backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-fns.ts
index bc935e723b,4316b064fe..cebf16adc3
--- a/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-fns.ts
+++ b/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-fns.ts
@@@ -16,9 -16,9 +16,10 @@@ import
TDatadogApplicationKeySecretRotation
} from "./datadog-application-key-secret";
import { DBT_SERVICE_TOKEN_ROTATION_LIST_OPTION } from "./dbt-service-token";
+ import { FIREWORKS_API_KEY_ROTATION_LIST_OPTION } from "./fireworks-api-key";
import { HP_ILO_ROTATION_LIST_OPTION, THpIloRotation } from "./hp-ilo-rotation";
import { LDAP_PASSWORD_ROTATION_LIST_OPTION, TLdapPasswordRotation } from "./ldap-password";
+import { LITELLM_API_KEY_ROTATION_LIST_OPTION } from "./litellm-api-key";
import { MONGODB_CREDENTIALS_ROTATION_LIST_OPTION } from "./mongodb-credentials";
import { MSSQL_CREDENTIALS_ROTATION_LIST_OPTION } from "./mssql-credentials";
import { MYSQL_CREDENTIALS_ROTATION_LIST_OPTION } from "./mysql-credentials";
@@@ -66,7 -67,7 +68,8 @@@ const SECRET_ROTATION_LIST_OPTIONS: Rec
[SecretRotation.DbtServiceToken]: DBT_SERVICE_TOKEN_ROTATION_LIST_OPTION,
[SecretRotation.WindowsLocalAccount]: WINDOWS_LOCAL_ACCOUNT_ROTATION_LIST_OPTION,
[SecretRotation.OpenRouterApiKey]: OPEN_ROUTER_API_KEY_ROTATION_LIST_OPTION,
+ [SecretRotation.LiteLLMApiKey]: LITELLM_API_KEY_ROTATION_LIST_OPTION,
+ [SecretRotation.OpenAIServiceAccount]: OPENAI_SERVICE_ACCOUNT_ROTATION_LIST_OPTION,
[SecretRotation.HpIloLocalAccount]: HP_ILO_ROTATION_LIST_OPTION,
[SecretRotation.SupabaseApiKey]: SUPABASE_API_KEY_ROTATION_LIST_OPTION,
[SecretRotation.SalesforceOauthCredentials]: SALESFORCE_OAUTH_CREDENTIALS_ROTATION_LIST_OPTION,
diff --cc backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-maps.ts
index c6692af19c,705a0d4914..16d9a4d421
--- a/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-maps.ts
+++ b/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-maps.ts
@@@ -18,7 -18,7 +18,8 @@@ export const SECRET_ROTATION_NAME_MAP:
[SecretRotation.DbtServiceToken]: "DBT Service Token",
[SecretRotation.WindowsLocalAccount]: "Windows Local Account",
[SecretRotation.OpenRouterApiKey]: "OpenRouter API Key",
+ [SecretRotation.LiteLLMApiKey]: "LiteLLM API Key",
+ [SecretRotation.OpenAIServiceAccount]: "OpenAI Service Account",
[SecretRotation.HpIloLocalAccount]: "HP iLO Local Account",
[SecretRotation.SupabaseApiKey]: "Supabase API Key",
[SecretRotation.SalesforceOauthCredentials]: "Salesforce OAuth Credentials",
@@@ -43,7 -44,7 +45,8 @@@ export const SECRET_ROTATION_CONNECTION
[SecretRotation.DbtServiceToken]: AppConnection.Dbt,
[SecretRotation.WindowsLocalAccount]: AppConnection.SMB,
[SecretRotation.OpenRouterApiKey]: AppConnection.OpenRouter,
+ [SecretRotation.LiteLLMApiKey]: AppConnection.LiteLLM,
+ [SecretRotation.OpenAIServiceAccount]: AppConnection.OpenAI,
[SecretRotation.HpIloLocalAccount]: AppConnection.SSH,
[SecretRotation.SupabaseApiKey]: AppConnection.Supabase,
[SecretRotation.SalesforceOauthCredentials]: AppConnection.Salesforce,
diff --cc backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-service.ts
index ed7c55f58d,b0feecfbcf..2c3dd4b511
--- a/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-service.ts
+++ b/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-service.ts
@@@ -199,7 -200,7 +201,8 @@@ const SECRET_ROTATION_FACTORY_MAP: Reco
[SecretRotation.DbtServiceToken]: dbtServiceTokenRotationFactory as TRotationFactoryImplementation,
[SecretRotation.WindowsLocalAccount]: windowsLocalAccountRotationFactory as TRotationFactoryImplementation,
[SecretRotation.OpenRouterApiKey]: openRouterApiKeyRotationFactory as TRotationFactoryImplementation,
+ [SecretRotation.LiteLLMApiKey]: litellmApiKeyRotationFactory as TRotationFactoryImplementation,
+ [SecretRotation.OpenAIServiceAccount]: openAIServiceAccountRotationFactory as TRotationFactoryImplementation,
[SecretRotation.HpIloLocalAccount]: hpIloRotationFactory as TRotationFactoryImplementation,
[SecretRotation.SupabaseApiKey]: supabaseApiKeyRotationFactory as TRotationFactoryImplementation,
[SecretRotation.SalesforceOauthCredentials]:
diff --cc backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-types.ts
index 0d8fd5789a,df632dd473..b73f2a21de
--- a/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-types.ts
+++ b/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-types.ts
@@@ -178,7 -185,7 +192,8 @@@ export type TSecretRotationV2
| TDbtServiceTokenRotation
| TWindowsLocalAccountRotation
| TOpenRouterApiKeyRotation
+ | TLiteLLMApiKeyRotation
+ | TOpenAIServiceAccountRotation
| THpIloRotation
| TSupabaseApiKeyRotation
| TSalesforceOauthCredentialsRotation
@@@ -202,7 -210,7 +218,8 @@@ export type TSecretRotationV2WithConnec
| TDbtServiceTokenRotationWithConnection
| TWindowsLocalAccountRotationWithConnection
| TOpenRouterApiKeyRotationWithConnection
+ | TLiteLLMApiKeyRotationWithConnection
+ | TOpenAIServiceAccountRotationWithConnection
| THpIloRotationWithConnection
| TSupabaseApiKeyRotationWithConnection
| TSalesforceOauthCredentialsRotationWithConnection
@@@ -222,7 -231,7 +240,8 @@@ export type TSecretRotationV2GeneratedC
| TDbtServiceTokenRotationGeneratedCredentials
| TWindowsLocalAccountRotationGeneratedCredentials
| TOpenRouterApiKeyRotationGeneratedCredentials
+ | TLiteLLMApiKeyRotationGeneratedCredentials
+ | TOpenAIServiceAccountRotationGeneratedCredentials
| THpIloRotationGeneratedCredentials
| TSupabaseApiKeyRotationGeneratedCredentials
| TSalesforceOauthCredentialsRotationGeneratedCredentials
@@@ -246,7 -256,7 +266,8 @@@ export type TSecretRotationV2Input
| TDbtServiceTokenRotationInput
| TWindowsLocalAccountRotationInput
| TOpenRouterApiKeyRotationInput
+ | TLiteLLMApiKeyRotationInput
+ | TOpenAIServiceAccountRotationInput
| THpIloRotationInput
| TSupabaseApiKeyRotationInput
| TSalesforceOauthCredentialsRotationInput
@@@ -270,7 -281,7 +292,8 @@@ export type TSecretRotationV2ListItem
| TDbtServiceTokenRotationListItem
| TWindowsLocalAccountRotationListItem
| TOpenRouterApiKeyRotationListItem
+ | TLiteLLMApiKeyRotationListItem
+ | TOpenAIServiceAccountRotationListItem
| THpIloRotationListItem
| TSupabaseApiKeyRotationListItem
| TSalesforceOauthCredentialsRotationListItem
diff --cc backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-union-schema.ts
index 56f955cb9a,46680dca43..75c9360080
--- a/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-union-schema.ts
+++ b/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-union-schema.ts
@@@ -41,7 -42,7 +43,8 @@@ export const SecretRotationV2Schema = z
DbtServiceTokenRotationSchema,
WindowsLocalAccountRotationSchema,
OpenRouterApiKeyRotationSchema,
+ LiteLLMApiKeyRotationSchema,
+ OpenAIServiceAccountRotationSchema,
HpIloRotationSchema,
SupabaseApiKeyRotationSchema,
SalesforceOauthCredentialsRotationSchema,
diff --cc backend/src/lib/api-docs/constants.ts
index e1a29b61ab,88d55b8c29..dba63feac4
--- a/backend/src/lib/api-docs/constants.ts
+++ b/backend/src/lib/api-docs/constants.ts
@@@ -2938,10 -2941,10 +2941,14 @@@ export const AppConnections =
ANTHROPIC: {
apiKey: "The Anthropic API key used to authenticate with the Anthropic API."
},
+ LITELLM: {
+ apiKey: "The LiteLLM API key used to authenticate with the LiteLLM instance.",
+ instanceUrl: "The base URL of your LiteLLM instance (e.g. https://litellm.example.com)."
+ },
+ FIREWORKS: {
+ apiKey: "The Fireworks API key used to authenticate with the Fireworks API.",
+ accountId: "The Fireworks account ID used to identify the Fireworks account."
+ },
CLOUD66: {
accessToken: "The Personal Access Token used to authenticate with the Cloud 66 API."
},
@@@ -3471,14 -3474,10 +3478,18 @@@ export const SecretRotations =
includeByokInLimit:
"Whether to include BYOK (Bring Your Own Key) usage in the spending limit. When enabled, usage from your own provider keys counts toward this key's limit. See OpenRouter BYOK docs for details."
},
+ LITELLM_API_KEY: {
+ name: "The name for the generated LiteLLM API key. Infisical appends a timestamp to keep each rotated key unique and record its creation time.",
+ userId: "The ID of the LiteLLM user to associate the generated key with.",
+ teamId: "The ID of the LiteLLM team to associate the generated key with.",
+ models: "The list of model names the generated key is allowed to access. An empty list allows all models.",
+ additionalOptions:
+ "A JSON object of additional LiteLLM /key/generate options (e.g. max_budget, tpm_limit, metadata). Reserved fields (key_alias, auto_rotate, rotation_interval, duration, send_invite_email, key_type, user_id, team_id, models) are managed by Infisical or set via dedicated fields and cannot be set here."
+ },
+ OPENAI_SERVICE_ACCOUNT: {
+ projectId: "The ID of the OpenAI project to create service accounts in.",
+ name: "The name for the generated OpenAI service account."
+ },
SUPABASE_API_KEY: {
projectRef: "The reference ID of the Supabase project to rotate the API key for.",
keyType: "The type of the API key to rotate (e.g. publishable, secret)."
@@@ -3553,9 -3555,9 +3567,12 @@@
OPEN_ROUTER_API_KEY: {
apiKey: "The name of the secret that the rotated OpenRouter API key will be mapped to."
},
+ LITELLM_API_KEY: {
+ apiKey: "The name of the secret that the rotated LiteLLM API key will be mapped to."
+ },
+ OPENAI_SERVICE_ACCOUNT: {
+ apiKey: "The name of the secret that the rotated OpenAI service account API key will be mapped to."
+ },
SUPABASE_API_KEY: {
apiKey: "The name of the secret that the rotated Supabase API key will be mapped to."
},
diff --cc backend/src/server/routes/v1/app-connection-routers/app-connection-router.ts
index df0e55024a,91e85cbba9..b22645071b
--- a/backend/src/server/routes/v1/app-connection-routers/app-connection-router.ts
+++ b/backend/src/server/routes/v1/app-connection-routers/app-connection-router.ts
@@@ -313,7 -315,7 +319,8 @@@ const SanitizedAppConnectionSchema = z.
...SanitizedConvexConnectionSchema.options,
...SanitizedRundeckConnectionSchema.options,
...SanitizedQoveryConnectionSchema.options,
- ...SanitizedLiteLLMConnectionSchema.options
++ ...SanitizedLiteLLMConnectionSchema.options,
+ ...SanitizedFireworksConnectionSchema.options
]);
const AppConnectionOptionsSchema = z.discriminatedUnion("app", [
@@@ -392,7 -395,7 +400,8 @@@
ConvexConnectionListItemSchema,
RundeckConnectionListItemSchema,
QoveryConnectionListItemSchema,
- LiteLLMConnectionListItemSchema
++ LiteLLMConnectionListItemSchema,
+ FireworksConnectionListItemSchema
]);
export const registerAppConnectionRouter = async (server: FastifyZodProvider) => {
diff --cc backend/src/server/routes/v1/app-connection-routers/index.ts
index 1e4e1f55d7,bcdef1335d..06a3a2ebe2
--- a/backend/src/server/routes/v1/app-connection-routers/index.ts
+++ b/backend/src/server/routes/v1/app-connection-routers/index.ts
@@@ -156,5 -158,5 +159,6 @@@ export const APP_CONNECTION_REGISTER_RO
[AppConnection.Rundeck]: registerRundeckConnectionRouter,
[AppConnection.HasuraCloud]: registerHasuraCloudConnectionRouter,
[AppConnection.Qovery]: registerQoveryConnectionRouter,
- [AppConnection.LiteLLM]: registerLiteLLMConnectionRouter
++ [AppConnection.LiteLLM]: registerLiteLLMConnectionRouter,
+ [AppConnection.Fireworks]: registerFireworksConnectionRouter
};
diff --cc backend/src/services/app-connection/app-connection-enums.ts
index 8870e32496,39085242d9..aade305f09
--- a/backend/src/services/app-connection/app-connection-enums.ts
+++ b/backend/src/services/app-connection/app-connection-enums.ts
@@@ -74,7 -75,7 +75,8 @@@ export enum AppConnection
HasuraCloud = "hasura-cloud",
Qovery = "qovery",
Cloud66 = "cloud-66",
- LiteLLM = "litellm"
++ LiteLLM = "litellm",
+ Fireworks = "fireworks"
}
export enum AWSRegion {
diff --cc backend/src/services/app-connection/app-connection-fns.ts
index 43edd1bac8,a2952308ba..abeda2af23
--- a/backend/src/services/app-connection/app-connection-fns.ts
+++ b/backend/src/services/app-connection/app-connection-fns.ts
@@@ -384,7 -390,7 +391,8 @@@ export const listAppConnectionOptions
getConvexConnectionListItem(),
getRundeckConnectionListItem(),
getQoveryConnectionListItem(),
- getLiteLLMConnectionListItem()
++ getLiteLLMConnectionListItem(),
+ getFireworksConnectionListItem()
]
.filter((option) => {
switch (projectType) {
@@@ -631,7 -638,7 +640,8 @@@ export const validateAppConnectionCrede
[AppConnection.Convex]: validateConvexConnectionCredentials as TAppConnectionCredentialsValidator,
[AppConnection.Rundeck]: validateRundeckConnectionCredentials as TAppConnectionCredentialsValidator,
[AppConnection.Qovery]: validateQoveryConnectionCredentials as TAppConnectionCredentialsValidator,
- [AppConnection.LiteLLM]: validateLiteLLMConnectionCredentials as TAppConnectionCredentialsValidator
++ [AppConnection.LiteLLM]: validateLiteLLMConnectionCredentials as TAppConnectionCredentialsValidator,
+ [AppConnection.Fireworks]: validateFireworksConnectionCredentials as TAppConnectionCredentialsValidator
};
return VALIDATE_APP_CONNECTION_CREDENTIALS_MAP[appConnection.app](appConnection, gatewayService, gatewayV2Service);
@@@ -726,8 -733,9 +736,10 @@@ export const getAppConnectionMethodNam
case ChecklyConnectionMethod.ApiKey:
case OctopusDeployConnectionMethod.ApiKey:
case OpenRouterConnectionMethod.ApiKey:
+ case OpenAIConnectionMethod.ApiKey:
case AnthropicConnectionMethod.ApiKey:
+ case LiteLLMConnectionMethod.ApiKey:
+ case FireworksConnectionMethod.ApiKey:
case DevinConnectionMethod.ApiKey:
case DigiCertConnectionMethod.ApiKey:
case DatadogConnectionMethod.ApiKey:
@@@ -886,7 -895,7 +899,8 @@@ export const TRANSITION_CONNECTION_CRED
[AppConnection.Convex]: platformManagedCredentialsNotSupported,
[AppConnection.Rundeck]: platformManagedCredentialsNotSupported,
[AppConnection.Qovery]: platformManagedCredentialsNotSupported,
- [AppConnection.LiteLLM]: platformManagedCredentialsNotSupported
++ [AppConnection.LiteLLM]: platformManagedCredentialsNotSupported,
+ [AppConnection.Fireworks]: platformManagedCredentialsNotSupported
};
export const enterpriseAppCheck = async (
diff --cc backend/src/services/app-connection/app-connection-maps.ts
index a4957ca6d3,4ab529146d..c473013de0
--- a/backend/src/services/app-connection/app-connection-maps.ts
+++ b/backend/src/services/app-connection/app-connection-maps.ts
@@@ -76,7 -77,7 +77,8 @@@ export const APP_CONNECTION_NAME_MAP: R
[AppConnection.HasuraCloud]: "Hasura Cloud",
[AppConnection.Qovery]: "Qovery",
[AppConnection.Cloud66]: "Cloud 66",
- [AppConnection.LiteLLM]: "LiteLLM"
++ [AppConnection.LiteLLM]: "LiteLLM",
+ [AppConnection.Fireworks]: "Fireworks"
};
export const APP_CONNECTION_PLAN_MAP: Record<AppConnection, AppConnectionPlanType> = {
@@@ -155,5 -157,5 +158,6 @@@
[AppConnection.HasuraCloud]: AppConnectionPlanType.Regular,
[AppConnection.Qovery]: AppConnectionPlanType.Regular,
[AppConnection.Cloud66]: AppConnectionPlanType.Regular,
- [AppConnection.LiteLLM]: AppConnectionPlanType.Regular
++ [AppConnection.LiteLLM]: AppConnectionPlanType.Regular,
+ [AppConnection.Fireworks]: AppConnectionPlanType.Regular
};
diff --cc backend/src/services/app-connection/app-connection-service.ts
index d452a29610,b2a41f17ff..67637652c5
--- a/backend/src/services/app-connection/app-connection-service.ts
+++ b/backend/src/services/app-connection/app-connection-service.ts
@@@ -284,7 -287,7 +289,8 @@@ const VALIDATE_APP_CONNECTION_CREDENTIA
[AppConnection.Convex]: ValidateConvexConnectionCredentialsSchema,
[AppConnection.Rundeck]: ValidateRundeckConnectionCredentialsSchema,
[AppConnection.Qovery]: ValidateQoveryConnectionCredentialsSchema,
- [AppConnection.LiteLLM]: ValidateLiteLLMConnectionCredentialsSchema
++ [AppConnection.LiteLLM]: ValidateLiteLLMConnectionCredentialsSchema,
+ [AppConnection.Fireworks]: ValidateFireworksConnectionCredentialsSchema
};
export const appConnectionServiceFactory = ({
@@@ -1384,6 -1388,6 +1391,7 @@@
digicert: digicertConnectionService(connectAppConnectionById),
travisCI: travisCIConnectionService(connectAppConnectionById),
snowflake: snowflakeConnectionService(connectAppConnectionById),
- litellm: liteLLMConnectionService(connectAppConnectionById)
++ litellm: liteLLMConnectionService(connectAppConnectionById),
+ fireworks: fireworksConnectionService(connectAppConnectionById)
};
};
diff --cc backend/src/services/app-connection/app-connection-types.ts
index 5974c05064,ca9da16e36..2b95cc8c05
--- a/backend/src/services/app-connection/app-connection-types.ts
+++ b/backend/src/services/app-connection/app-connection-types.ts
@@@ -528,7 -535,7 +541,8 @@@ export type TAppConnection = { id: stri
| TRundeckConnection
| THasuraCloudConnection
| TQoveryConnection
+ | TLiteLLMConnection
+ | TFireworksConnection
);
export type TAppConnectionRaw = NonNullable<Awaited<ReturnType<TAppConnectionDALFactory["findById"]>>>;
@@@ -615,7 -623,7 +630,8 @@@ export type TAppConnectionInput = { id
| TRundeckConnectionInput
| THasuraCloudConnectionInput
| TQoveryConnectionInput
+ | TLiteLLMConnectionInput
+ | TFireworksConnectionInput
);
export type TSqlConnectionInput =
@@@ -734,7 -743,7 +751,8 @@@ export type TAppConnectionConfig
| TRundeckConnectionConfig
| THasuraCloudConnectionConfig
| TQoveryConnectionConfig
- | TLiteLLMConnectionConfig;
++ | TLiteLLMConnectionConfig
+ | TFireworksConnectionConfig;
export type TValidateAppConnectionCredentialsSchema =
| TValidateAwsConnectionCredentialsSchema
@@@ -812,7 -822,7 +831,8 @@@
| TValidateRundeckConnectionCredentialsSchema
| TValidateHasuraCloudConnectionCredentialsSchema
| TValidateQoveryConnectionCredentialsSchema
- | TValidateLiteLLMConnectionCredentialsSchema;
++ | TValidateLiteLLMConnectionCredentialsSchema
+ | TValidateFireworksConnectionCredentialsSchema;
export type TListAwsConnectionKmsKeys = {
connectionId: string;
diff --cc docs/docs.json
index a07ec6a06b,6021bc6414..eb59659524
--- a/docs/docs.json
+++ b/docs/docs.json
@@@ -494,8 -495,8 +496,9 @@@
"documentation/platform/secret-rotation/databricks-service-principal-secret",
"documentation/platform/secret-rotation/datadog-application-key-secret",
"documentation/platform/secret-rotation/dbt-service-token",
+ "documentation/platform/secret-rotation/fireworks-api-key",
"documentation/platform/secret-rotation/ldap-password",
+ "documentation/platform/secret-rotation/litellm-api-key",
"documentation/platform/secret-rotation/mongodb-credentials",
"documentation/platform/secret-rotation/mssql-credentials",
"documentation/platform/secret-rotation/mysql-credentials",
diff --cc docs/snippets/AppConnectionsBrowser.jsx
index 1329bee335,11caf42d1e..f5b66c2f41
--- a/docs/snippets/AppConnectionsBrowser.jsx
+++ b/docs/snippets/AppConnectionsBrowser.jsx
@@@ -605,13 -613,13 +613,20 @@@ export const AppConnectionsBrowser = (
description: "Learn how to connect Hasura Cloud to pull secrets from Infisical.",
category: "Platform",
},
+ {
+ name: "LiteLLM",
+ slug: "litellm",
+ path: "/integrations/app-connections/litellm",
+ description: "Learn how to connect LiteLLM to pull secrets from Infisical.",
+ category: "AI & LLM",
+ },
+ {
+ name: "OpenAI",
+ slug: "openai",
+ path: "/integrations/app-connections/openai",
+ description: "Learn how to connect OpenAI to manage and rotate API keys with Infisical.",
+ category: "AI & LLM",
+ },
].sort(function (a, b) {
return a.name.toLowerCase().localeCompare(b.name.toLowerCase());
});
diff --cc docs/snippets/RotationsBrowser.jsx
index dbc1a5db5e,12ab362e9c..6377689cae
--- a/docs/snippets/RotationsBrowser.jsx
+++ b/docs/snippets/RotationsBrowser.jsx
@@@ -187,14 -196,15 +196,23 @@@ export const RotationsBrowser = () =>
category: "Monitoring",
rotationType: "Dual-Phase",
},
+ {
+ name: "LiteLLM API Key",
+ slug: "litellm-api-key",
+ path: "/documentation/platform/secret-rotation/litellm-api-key",
+ description: "Learn how to automatically rotate LiteLLM API keys.",
+ category: "AI & LLM",
+ rotationType: "Dual-Phase",
+ },
+ {
+ name: "OpenAI API Key",
+ slug: "openai-api-key",
+ path: "/documentation/platform/secret-rotation/openai-service-account",
+ description:
+ "Learn how to automatically rotate OpenAI API keys.",
+ category: "AI & LLM",
+ rotationType: "Dual-Phase",
+ },
].sort(function (a, b) {
return a.name.toLowerCase().localeCompare(b.name.toLowerCase());
});
diff --cc frontend/src/components/secret-rotations-v2/ViewSecretRotationV2GeneratedCredentials/ViewSecretRotationV2GeneratedCredentials.tsx
index 6c63d653dd,9ac0ae7d40..b71e5e393e
--- a/frontend/src/components/secret-rotations-v2/ViewSecretRotationV2GeneratedCredentials/ViewSecretRotationV2GeneratedCredentials.tsx
+++ b/frontend/src/components/secret-rotations-v2/ViewSecretRotationV2GeneratedCredentials/ViewSecretRotationV2GeneratedCredentials.tsx
@@@ -26,9 -26,10 +26,11 @@@ import { ViewSqlCredentialsRotationGene
import { ViewAwsIamUserSecretRotationGeneratedCredentials } from "./ViewAwsIamUserSecretRotationGeneratedCredentials";
import { ViewDatadogApplicationKeySecretRotationGeneratedCredentials } from "./ViewDatadogApplicationKeySecretRotationGeneratedCredentials";
import { ViewDbtServiceTokenRotationGeneratedCredentials } from "./ViewDbtSeviceTokenRotationGeneratedCredentials";
+ import { ViewFireworksApiKeyRotationGeneratedCredentials } from "./ViewFireworksApiKeyRotationGeneratedCredentials";
import { ViewHpIloRotationGeneratedCredentials } from "./ViewHpIloRotationGeneratedCredentials";
+import { ViewLiteLLMApiKeyRotationGeneratedCredentials } from "./ViewLiteLLMApiKeyRotationGeneratedCredentials";
import { ViewOktaClientSecretRotationGeneratedCredentials } from "./ViewOktaClientSecretRotationGeneratedCredentials";
+ import { ViewOpenAIServiceAccountRotationGeneratedCredentials } from "./ViewOpenAIServiceAccountRotationGeneratedCredentials";
import { ViewOpenRouterApiKeyRotationGeneratedCredentials } from "./ViewOpenRouterApiKeyRotationGeneratedCredentials";
import { ViewRedisCredentialsRotationGeneratedCredentials } from "./ViewRedisCredentialsRotationGeneratedCredentials";
import { ViewSalesforceOauthCredentialsRotationGeneratedCredentials } from "./ViewSalesforceOauthCredentialsRotationGeneratedCredentials";
@@@ -162,13 -163,13 +164,20 @@@ const Content = ({ secretRotation }: Co
/>
);
break;
+ case SecretRotation.LiteLLMApiKey:
+ Component = (
+ <ViewLiteLLMApiKeyRotationGeneratedCredentials
+ generatedCredentialsResponse={generatedCredentialsResponse}
+ />
+ );
+ break;
+ case SecretRotation.OpenAIServiceAccount:
+ Component = (
+ <ViewOpenAIServiceAccountRotationGeneratedCredentials
+ generatedCredentialsResponse={generatedCredentialsResponse}
+ />
+ );
+ break;
case SecretRotation.HpIloLocalAccount:
Component = (
<ViewHpIloRotationGeneratedCredentials
diff --cc frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ParametersFields/SecretRotationV2ParametersFields.tsx
index b98212c9a7,25dad1e2e8..7927e39604
--- a/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ParametersFields/SecretRotationV2ParametersFields.tsx
+++ b/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ParametersFields/SecretRotationV2ParametersFields.tsx
@@@ -10,11 -10,12 +10,13 @@@ import { ConvexAccessKeyRotationParamet
import { DatabricksServicePrincipalSecretRotationParametersFields } from "./DatabricksServicePrincipalSecretRotationParametersFields";
import { DatadogApplicationKeySecretRotationParametersFields } from "./DatadogApplicationKeySecretRotationParametersFields";
import { DbtServiceTokenRotationParametersFields } from "./DbtServiceTokenRotationParametersFields";
+ import { FireworksApiKeyRotationParametersFields } from "./FireworksApiKeyRotationParametersFields";
import { HpIloRotationParametersFields } from "./HpIloRotationParametersFields";
import { LdapPasswordRotationParametersFields } from "./LdapPasswordRotationParametersFields";
+import { LiteLLMApiKeyRotationParametersFields } from "./LiteLLMApiKeyRotationParametersFields";
import { MongoRotationParametersFields } from "./MongoRotationParametersFields";
import { OktaClientSecretRotationParametersFields } from "./OktaClientSecretRotationParametersFields";
+ import { OpenAIServiceAccountRotationParametersFields } from "./OpenAIServiceAccountRotationParametersFields";
import { OpenRouterApiKeyRotationParametersFields } from "./OpenRouterApiKeyRotationParametersFields";
import { RedisCredentialsRotationParametersFields } from "./RedisCredentialsRotationParametersFields";
import { SalesforceOauthCredentialsRotationParametersFields } from "./SalesforceOauthCredentialsRotationParametersFields";
@@@ -41,7 -42,7 +43,8 @@@ const COMPONENT_MAP: Record<SecretRotat
[SecretRotation.DbtServiceToken]: DbtServiceTokenRotationParametersFields,
[SecretRotation.WindowsLocalAccount]: WindowsLocalAccountRotationParametersFields,
[SecretRotation.OpenRouterApiKey]: OpenRouterApiKeyRotationParametersFields,
+ [SecretRotation.LiteLLMApiKey]: LiteLLMApiKeyRotationParametersFields,
+ [SecretRotation.OpenAIServiceAccount]: OpenAIServiceAccountRotationParametersFields,
[SecretRotation.HpIloLocalAccount]: HpIloRotationParametersFields,
[SecretRotation.SupabaseApiKey]: SupabaseApiKeyRotationParametersFields,
[SecretRotation.SalesforceOauthCredentials]: SalesforceOauthCredentialsRotationParametersFields,
diff --cc frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ReviewFields/SecretRotationReviewFields.tsx
index 7445e5f17c,4bb4857d03..f571a4ae75
--- a/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ReviewFields/SecretRotationReviewFields.tsx
+++ b/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ReviewFields/SecretRotationReviewFields.tsx
@@@ -13,10 -13,11 +13,12 @@@ import { ConvexAccessKeyRotationReviewF
import { DatabricksServicePrincipalSecretRotationReviewFields } from "./DatabricksServicePrincipalSecretRotationReviewFields";
import { DatadogApplicationKeySecretRotationReviewFields } from "./DatadogApplicationKeySecretRotationReviewFields";
import { DbtServiceTokenRotationReviewFields } from "./DbtServiceTokenRotationReviewFields";
+ import { FireworksApiKeyRotationReviewFields } from "./FireworksApiKeyRotationReviewFields";
import { HpIloRotationReviewFields } from "./HpIloRotationReviewFields";
import { LdapPasswordRotationReviewFields } from "./LdapPasswordRotationReviewFields";
+import { LiteLLMApiKeyRotationReviewFields } from "./LiteLLMApiKeyRotationReviewFields";
import { OktaClientSecretRotationReviewFields } from "./OktaClientSecretRotationReviewFields";
+ import { OpenAIServiceAccountRotationReviewFields } from "./OpenAIServiceAccountRotationReviewFields";
import { OpenRouterApiKeyRotationReviewFields } from "./OpenRouterApiKeyRotationReviewFields";
import { RedisCredentialsRotationReviewFields } from "./RedisCredentialsRotationReviewFields";
import { SalesforceOauthCredentialsRotationReviewFields } from "./SalesforceOauthCredentialsRotationReviewFields";
@@@ -43,7 -44,7 +45,8 @@@ const COMPONENT_MAP: Record<SecretRotat
[SecretRotation.DbtServiceToken]: DbtServiceTokenRotationReviewFields,
[SecretRotation.WindowsLocalAccount]: WindowsLocalAccountRotationReviewFields,
[SecretRotation.OpenRouterApiKey]: OpenRouterApiKeyRotationReviewFields,
+ [SecretRotation.LiteLLMApiKey]: LiteLLMApiKeyRotationReviewFields,
+ [SecretRotation.OpenAIServiceAccount]: OpenAIServiceAccountRotationReviewFields,
[SecretRotation.HpIloLocalAccount]: HpIloRotationReviewFields,
[SecretRotation.SupabaseApiKey]: SupabaseApiKeyRotationReviewFields,
[SecretRotation.SalesforceOauthCredentials]: SalesforceOauthCredentialsRotationReviewFields,
diff --cc frontend/src/components/secret-rotations-v2/forms/SecretRotationV2SecretsMappingFields/SecretRotationV2SecretsMappingFields.tsx
index 3a0ec726ec,747e411ef3..b9dfb92d48
--- a/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2SecretsMappingFields/SecretRotationV2SecretsMappingFields.tsx
+++ b/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2SecretsMappingFields/SecretRotationV2SecretsMappingFields.tsx
@@@ -10,10 -10,11 +10,12 @@@ import { ConvexAccessKeyRotationSecrets
import { DatabricksServicePrincipalSecretRotationSecretsMappingFields } from "./DatabricksServicePrincipalSecretRotationSecretsMappingFields";
import { DatadogApplicationKeySecretRotationSecretsMappingFields } from "./DatadogApplicationKeySecretRotationSecretsMappingFields";
import { DbtServiceTokenRotationSecretsMappingFields } from "./DbtServiceTokenRotationSecretsMappingFields";
+ import { FireworksApiKeyRotationSecretsMappingFields } from "./FireworksApiKeyRotationSecretsMappingFields";
import { HpIloRotationSecretsMappingFields } from "./HpIloRotationSecretsMappingFields";
import { LdapPasswordRotationSecretsMappingFields } from "./LdapPasswordRotationSecretsMappingFields";
+import { LiteLLMApiKeyRotationSecretsMappingFields } from "./LiteLLMApiKeyRotationSecretsMappingFields";
import { OktaClientSecretRotationSecretsMappingFields } from "./OktaClientSecretRotationSecretsMappingFields";
+ import { OpenAIServiceAccountRotationSecretsMappingFields } from "./OpenAIServiceAccountRotationSecretsMappingFields";
import { OpenRouterApiKeyRotationSecretsMappingFields } from "./OpenRouterApiKeyRotationSecretsMappingFields";
import { RedisCredentialsRotationSecretsMappingFields } from "./RedisCredentialsRotationSecretsMappingFields";
import { SalesforceOauthCredentialsRotationSecretsMappingFields } from "./SalesforceOauthCredentialsRotationSecretsMappingFields";
@@@ -40,7 -41,7 +42,8 @@@ const COMPONENT_MAP: Record<SecretRotat
[SecretRotation.DbtServiceToken]: DbtServiceTokenRotationSecretsMappingFields,
[SecretRotation.WindowsLocalAccount]: WindowsLocalAccountRotationSecretsMappingFields,
[SecretRotation.OpenRouterApiKey]: OpenRouterApiKeyRotationSecretsMappingFields,
+ [SecretRotation.LiteLLMApiKey]: LiteLLMApiKeyRotationSecretsMappingFields,
+ [SecretRotation.OpenAIServiceAccount]: OpenAIServiceAccountRotationSecretsMappingFields,
[SecretRotation.HpIloLocalAccount]: HpIloRotationSecretsMappingFields,
[SecretRotation.SupabaseApiKey]: SupabaseApiKeyRotationSecretsMappingFields,
[SecretRotation.SalesforceOauthCredentials]:
diff --cc frontend/src/components/secret-rotations-v2/forms/schemas/index.ts
index 5eb8d13e34,191a4c5fdf..7695ebc66f
--- a/frontend/src/components/secret-rotations-v2/forms/schemas/index.ts
+++ b/frontend/src/components/secret-rotations-v2/forms/schemas/index.ts
@@@ -18,10 -18,11 +18,12 @@@ import { WindowsLocalAccountRotationMet
import { ConvexAccessKeyRotationSchema } from "./convex-access-key-rotation-schema";
import { DatadogApplicationKeySecretRotationSchema } from "./datadog-application-key-secret-rotation-schema";
import { DbtServiceTokenRotationSchema } from "./dbt-service-token-rotation-schema";
+ import { FireworksApiKeyRotationSchema } from "./fireworks-api-key-rotation-schema";
import { HpIloRotationSchema } from "./hp-ilo-rotation-schema";
+import { LiteLLMApiKeyRotationSchema } from "./litellm-api-key-rotation-schema";
import { OktaClientSecretRotationSchema } from "./okta-client-secret-rotation-schema";
import { OpenRouterApiKeyRotationSchema } from "./open-router-api-key-rotation-schema";
+ import { OpenAIServiceAccountRotationSchema } from "./openai-service-account-rotation-schema";
import { OracleDBCredentialsRotationSchema } from "./oracledb-credentials-rotation-schema";
import { RedisCredentialsRotationSchema } from "./redis-credentials-rotation-schema";
import { SalesforceOauthCredentialsRotationSchema } from "./salesforce-oauth-credentials-rotation-schema";
@@@ -49,7 -50,7 +51,8 @@@ export const SecretRotationV2FormSchem
DbtServiceTokenRotationSchema,
WindowsLocalAccountRotationSchema,
OpenRouterApiKeyRotationSchema,
+ LiteLLMApiKeyRotationSchema,
+ OpenAIServiceAccountRotationSchema,
HpIloRotationSchema,
SupabaseApiKeyRotationSchema,
SalesforceOauthCredentialsRotationSchema,
diff --cc frontend/src/helpers/appConnections.ts
index 1ef71dfb1f,83b0172470..7e4ac18e69
--- a/frontend/src/helpers/appConnections.ts
+++ b/frontend/src/helpers/appConnections.ts
@@@ -476,12 -483,12 +484,18 @@@ export const APP_CONNECTION_MAP: Record
category: "AI",
description: "Manage Anthropic API access."
},
+ [AppConnection.LiteLLM]: {
+ name: "LiteLLM",
+ image: "LiteLLM.png",
+ category: "AI",
+ description: "Manage LiteLLM API access."
+ },
+ [AppConnection.Fireworks]: {
+ name: "Fireworks",
+ image: "Fireworks.png",
+ category: "AI",
+ description: "Manage Fireworks API access."
+ },
[AppConnection.HasuraCloud]: {
name: "Hasura Cloud",
image: "Hasura.svg",
@@@ -673,8 -680,9 +687,10 @@@ export const getAppConnectionMethodDeta
case RenderConnectionMethod.ApiKey:
case ChecklyConnectionMethod.ApiKey:
case OpenRouterConnectionMethod.ApiKey:
+ case OpenAIConnectionMethod.ApiKey:
case AnthropicConnectionMethod.ApiKey:
+ case LiteLLMConnectionMethod.ApiKey:
+ case FireworksConnectionMethod.ApiKey:
case DevinConnectionMethod.ApiKey:
case DigiCertConnectionMethod.ApiKey:
case GoDaddyConnectionMethod.ApiKey:
diff --cc frontend/src/helpers/secretRotationsV2.ts
index 1e14ee8cf4,c0d241bb5b..839c167a45
--- a/frontend/src/helpers/secretRotationsV2.ts
+++ b/frontend/src/helpers/secretRotationsV2.ts
@@@ -85,11 -85,11 +85,16 @@@ export const SECRET_ROTATION_MAP: Recor
image: "OpenRouter.png",
size: 50
},
+ [SecretRotation.LiteLLMApiKey]: {
+ name: "LiteLLM API Key",
+ image: "LiteLLM.png",
+ size: 50
+ },
+ [SecretRotation.OpenAIServiceAccount]: {
+ name: "OpenAI Service Account",
+ image: "OpenAI.png",
+ size: 50
+ },
[SecretRotation.HpIloLocalAccount]: {
name: "HP iLO Local Account",
image: "SSH.png",
@@@ -134,7 -139,7 +144,8 @@@ export const SECRET_ROTATION_CONNECTION
[SecretRotation.DbtServiceToken]: AppConnection.Dbt,
[SecretRotation.WindowsLocalAccount]: AppConnection.SMB,
[SecretRotation.OpenRouterApiKey]: AppConnection.OpenRouter,
+ [SecretRotation.LiteLLMApiKey]: AppConnection.LiteLLM,
+ [SecretRotation.OpenAIServiceAccount]: AppConnection.OpenAI,
[SecretRotation.HpIloLocalAccount]: AppConnection.SSH,
[SecretRotation.SupabaseApiKey]: AppConnection.Supabase,
[SecretRotation.SalesforceOauthCredentials]: AppConnection.Salesforce,
@@@ -160,7 -166,7 +172,8 @@@ export const IS_ROTATION_DUAL_CREDENTIA
[SecretRotation.DbtServiceToken]: true,
[SecretRotation.WindowsLocalAccount]: false,
[SecretRotation.OpenRouterApiKey]: true,
+ [SecretRotation.LiteLLMApiKey]: true,
+ [SecretRotation.OpenAIServiceAccount]: true,
[SecretRotation.HpIloLocalAccount]: false,
[SecretRotation.SupabaseApiKey]: true,
[SecretRotation.SalesforceOauthCredentials]: true,
diff --cc frontend/src/hooks/api/appConnections/enums.ts
index fb4420327b,5139bacbfa..e63000329e
--- a/frontend/src/hooks/api/appConnections/enums.ts
+++ b/frontend/src/hooks/api/appConnections/enums.ts
@@@ -74,5 -75,5 +75,6 @@@ export enum AppConnection
HasuraCloud = "hasura-cloud",
Qovery = "qovery",
Cloud66 = "cloud-66",
- LiteLLM = "litellm"
++ LiteLLM = "litellm",
+ Fireworks = "fireworks"
}
diff --cc frontend/src/hooks/api/appConnections/types/app-options.ts
index dcd10c21c8,6ae1aed87f..02ba74b4cf
--- a/frontend/src/hooks/api/appConnections/types/app-options.ts
+++ b/frontend/src/hooks/api/appConnections/types/app-options.ts
@@@ -259,9 -263,9 +263,12 @@@ export type TAnthropicConnectionOption
app: AppConnection.Anthropic;
};
+export type TLiteLLMConnectionOption = TAppConnectionOptionBase & {
+ app: AppConnection.LiteLLM;
+};
+ export type TFireworksConnectionOption = TAppConnectionOptionBase & {
+ app: AppConnection.Fireworks;
+ };
export type TOvhConnectionOption = TAppConnectionOptionBase & {
app: AppConnection.OVH;
@@@ -394,7 -399,7 +402,8 @@@ export type TAppConnectionOption
| TRundeckConnectionOption
| THasuraCloudConnectionOption
| TQoveryConnectionOption
- | TLiteLLMConnectionOption;
++ | TLiteLLMConnectionOption
+ | TFireworksConnectionOption;
export type TAppConnectionOptionMap = {
[AppConnection.AWS]: TAwsConnectionOption;
@@@ -472,5 -478,5 +482,6 @@@
[AppConnection.Rundeck]: TRundeckConnectionOption;
[AppConnection.HasuraCloud]: THasuraCloudConnectionOption;
[AppConnection.Qovery]: TQoveryConnectionOption;
+ [AppConnection.LiteLLM]: TLiteLLMConnectionOption;
+ [AppConnection.Fireworks]: TFireworksConnectionOption;
};
diff --cc frontend/src/hooks/api/appConnections/types/index.ts
index 41849c532a,bc5997706f..e10ad41139
--- a/frontend/src/hooks/api/appConnections/types/index.ts
+++ b/frontend/src/hooks/api/appConnections/types/index.ts
@@@ -227,7 -230,7 +232,8 @@@ export type TAppConnection
| TRundeckConnection
| THasuraCloudConnection
| TQoveryConnection
- | TLiteLLMConnection;
++ | TLiteLLMConnection
+ | TFireworksConnection;
export type TAvailableAppConnection = Pick<TAppConnection, "name" | "id" | "projectId">;
diff --cc frontend/src/hooks/api/secretRotationsV2/enums.ts
index 625e4a552d,33cacf318a..86de187c58
--- a/frontend/src/hooks/api/secretRotationsV2/enums.ts
+++ b/frontend/src/hooks/api/secretRotationsV2/enums.ts
@@@ -15,7 -15,7 +15,8 @@@ export enum SecretRotation
DbtServiceToken = "dbt-service-token",
WindowsLocalAccount = "windows-local-account",
OpenRouterApiKey = "open-router-api-key",
+ LiteLLMApiKey = "litellm-api-key",
+ OpenAIServiceAccount = "openai-service-account",
HpIloLocalAccount = "hp-ilo-local-account",
SupabaseApiKey = "supabase-api-key",
SalesforceOauthCredentials = "salesforce-oauth-credentials",
diff --cc frontend/src/hooks/api/secretRotationsV2/types/index.ts
index 9d83362f16,753f5e314b..cb12686b90
--- a/frontend/src/hooks/api/secretRotationsV2/types/index.ts
+++ b/frontend/src/hooks/api/secretRotationsV2/types/index.ts
@@@ -127,7 -132,7 +137,8 @@@ export type TSecretRotationV2 =
| TDbtServiceTokenRotation
| TWindowsLocalAccountRotation
| TOpenRouterApiKeyRotation
+ | TLiteLLMApiKeyRotation
+ | TOpenAIServiceAccountRotation
| THpIloRotation
| TSupabaseApiKeyRotation
| TSalesforceOauthCredentialsRotation
@@@ -151,7 -157,7 +163,8 @@@ export type TSecretRotationV2Option
| TDbtServiceTokenRotationOption
| TWindowsLocalAccountRotationOption
| TOpenRouterApiKeyRotationOption
+ | TLiteLLMApiKeyRotationOption
+ | TOpenAIServiceAccountRotationOption
| THpIloRotationOption
| TSupabaseApiKeyRotationOption
| TSalesforceOauthCredentialsRotationOption
@@@ -179,7 -186,7 +193,8 @@@ export type TViewSecretRotationGenerate
| TDbtServiceTokenRotationGeneratedCredentialsResponse
| TWindowsLocalAccountRotationGeneratedCredentialsResponse
| TOpenRouterApiKeyRotationGeneratedCredentialsResponse
+ | TLiteLLMApiKeyRotationGeneratedCredentialsResponse
+ | TOpenAIServiceAccountRotationGeneratedCredentialsResponse
| THpIloRotationGeneratedCredentialsResponse
| TSupabaseApiKeyRotationGeneratedCredentialsResponse
| TSalesforceOauthCredentialsRotationGeneratedCredentialsResponse
@@@ -255,7 -263,7 +271,8 @@@ export type TSecretRotationOptionMap =
[SecretRotation.DbtServiceToken]: TDbtServiceTokenRotationOption;
[SecretRotation.WindowsLocalAccount]: TWindowsLocalAccountRotationOption;
[SecretRotation.OpenRouterApiKey]: TOpenRouterApiKeyRotationOption;
+ [SecretRotation.LiteLLMApiKey]: TLiteLLMApiKeyRotationOption;
+ [SecretRotation.OpenAIServiceAccount]: TOpenAIServiceAccountRotationOption;
[SecretRotation.HpIloLocalAccount]: THpIloRotationOption;
[SecretRotation.SupabaseApiKey]: TSupabaseApiKeyRotationOption;
[SecretRotation.SalesforceOauthCredentials]: TSalesforceOauthCredentialsRotationOption;
@@@ -280,7 -289,7 +298,8 @@@ export type TSecretRotationGeneratedCre
[SecretRotation.DbtServiceToken]: TDbtServiceTokenRotationGeneratedCredentialsResponse;
[SecretRotation.WindowsLocalAccount]: TWindowsLocalAccountRotationGeneratedCredentialsResponse;
[SecretRotation.OpenRouterApiKey]: TOpenRouterApiKeyRotationGeneratedCredentialsResponse;
+ [SecretRotation.LiteLLMApiKey]: TLiteLLMApiKeyRotationGeneratedCredentialsResponse;
+ [SecretRotation.OpenAIServiceAccount]: TOpenAIServiceAccountRotationGeneratedCredentialsResponse;
[SecretRotation.HpIloLocalAccount]: THpIloRotationGeneratedCredentialsResponse;
[SecretRotation.SupabaseApiKey]: TSupabaseApiKeyRotationGeneratedCredentialsResponse;
[SecretRotation.SalesforceOauthCredentials]: TSalesforceOauthCredentialsRotationGeneratedCredentialsResponse;
diff --cc frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionForm.tsx
index 790ffc77a3,5c43e55816..2943ba2363
--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionForm.tsx
+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionForm.tsx
@@@ -298,10 -299,12 +300,14 @@@ const CreateForm = ({ app, onComplete,
return <SmbConnectionForm onSubmit={onSubmit} />;
case AppConnection.OpenRouter:
return <OpenRouterConnectionForm onSubmit={onSubmit} />;
+ case AppConnection.OpenAI:
+ return <OpenAIConnectionForm onSubmit={onSubmit} />;
case AppConnection.Anthropic:
return <AnthropicConnectionForm onSubmit={onSubmit} />;
+ case AppConnection.LiteLLM:
+ return <LiteLLMConnectionForm onSubmit={onSubmit} />;
+ case AppConnection.Fireworks:
+ return <FireworksConnectionForm onSubmit={onSubmit} />;
case AppConnection.Devin:
return <DevinConnectionForm onSubmit={onSubmit} />;
case AppConnection.CircleCI:
@@@ -559,10 -562,12 +565,14 @@@ const UpdateForm = ({ appConnection, on
return <SmbConnectionForm onSubmit={onSubmit} appConnection={appConnection} />;
case AppConnection.OpenRouter:
return <OpenRouterConnectionForm onSubmit={onSubmit} appConnection={appConnection} />;
+ case AppConnection.OpenAI:
+ return <OpenAIConnectionForm onSubmit={onSubmit} appConnection={appConnection} />;
case AppConnection.Anthropic:
return <AnthropicConnectionForm onSubmit={onSubmit} appConnection={appConnection} />;
+ case AppConnection.LiteLLM:
+ return <LiteLLMConnectionForm onSubmit={onSubmit} appConnection={appConnection} />;
+ case AppConnection.Fireworks:
+ return <FireworksConnectionForm onSubmit={onSubmit} appConnection={appConnection} />;
case AppConnection.Devin:
return <DevinConnectionForm onSubmit={onSubmit} appConnection={appConnection} />;
case AppConnection.CircleCI: