Skip to content

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

Merge branch 'main' into daniel/dbt-rotation

Daniel Hougaard5a71a1036c35
diff --cc backend/src/ee/routes/v2/secret-rotation-v2-routers/index.ts
index e49d4f2744,0bed511bc3..df7432d43d
--- a/backend/src/ee/routes/v2/secret-rotation-v2-routers/index.ts
+++ b/backend/src/ee/routes/v2/secret-rotation-v2-routers/index.ts
@@@ -34,5 -34,5 +35,6 @@@ export const SECRET_ROTATION_REGISTER_R
[SecretRotation.MongoDBCredentials]: registerMongoDBCredentialsRotationRouter,
[SecretRotation.DatabricksServicePrincipalSecret]: registerDatabricksServicePrincipalSecretRotationRouter,
[SecretRotation.UnixLinuxLocalAccount]: registerUnixLinuxLocalAccountRotationRouter,
- [SecretRotation.DbtServiceToken]: registerDbtServiceTokenRotationRouter
++ [SecretRotation.DbtServiceToken]: registerDbtServiceTokenRotationRouter,
+ [SecretRotation.OpenRouterApiKey]: registerOpenRouterApiKeyRotationRouter
};
diff --cc backend/src/ee/routes/v2/secret-rotation-v2-routers/secret-rotation-v2-router.ts
index 88b8099d8a,97dd228ffc..e382a4c41f
--- 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
@@@ -35,7 -35,7 +36,8 @@@ const SecretRotationV2OptionsSchema = z
MongoDBCredentialsRotationListItemSchema,
DatabricksServicePrincipalSecretRotationListItemSchema,
UnixLinuxLocalAccountRotationListItemSchema,
- DbtServiceTokenRotationListItemSchema
++ DbtServiceTokenRotationListItemSchema,
+ OpenRouterApiKeyRotationListItemSchema
]);
export const registerSecretRotationV2Router = async (server: FastifyZodProvider) => {
diff --cc backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-enums.ts
index 607723c58d,143882cfb3..176073be26
--- 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
@@@ -12,7 -12,7 +12,8 @@@ export enum SecretRotation
MongoDBCredentials = "mongodb-credentials",
DatabricksServicePrincipalSecret = "databricks-service-principal-secret",
UnixLinuxLocalAccount = "unix-linux-local-account",
- DbtServiceToken = "dbt-service-token"
++ DbtServiceToken = "dbt-service-token",
+ OpenRouterApiKey = "open-router-api-key"
}
export enum SecretRotationStatus {
diff --cc backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-fns.ts
index 7ac305c8ee,1e82dea27e..70b16648c6
--- 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
@@@ -48,7 -48,7 +49,8 @@@ const SECRET_ROTATION_LIST_OPTIONS: Rec
[SecretRotation.MongoDBCredentials]: MONGODB_CREDENTIALS_ROTATION_LIST_OPTION,
[SecretRotation.DatabricksServicePrincipalSecret]: DATABRICKS_SERVICE_PRINCIPAL_SECRET_ROTATION_LIST_OPTION,
[SecretRotation.UnixLinuxLocalAccount]: UNIX_LINUX_LOCAL_ACCOUNT_ROTATION_LIST_OPTION,
- [SecretRotation.DbtServiceToken]: DBT_SERVICE_TOKEN_ROTATION_LIST_OPTION
++ [SecretRotation.DbtServiceToken]: DBT_SERVICE_TOKEN_ROTATION_LIST_OPTION,
+ [SecretRotation.OpenRouterApiKey]: OPEN_ROUTER_API_KEY_ROTATION_LIST_OPTION
};
export const listSecretRotationOptions = () => {
diff --cc backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-maps.ts
index 112e2c858c,f9140ba670..8a58be251b
--- 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
@@@ -15,7 -15,7 +15,8 @@@ export const SECRET_ROTATION_NAME_MAP:
[SecretRotation.MongoDBCredentials]: "MongoDB Credentials",
[SecretRotation.DatabricksServicePrincipalSecret]: "Databricks Service Principal Secret",
[SecretRotation.UnixLinuxLocalAccount]: "Unix/Linux Local Account",
- [SecretRotation.DbtServiceToken]: "DBT Service Token"
++ [SecretRotation.DbtServiceToken]: "DBT Service Token",
+ [SecretRotation.OpenRouterApiKey]: "OpenRouter API Key"
};
export const SECRET_ROTATION_CONNECTION_MAP: Record<SecretRotation, AppConnection> = {
@@@ -32,5 -32,5 +33,6 @@@
[SecretRotation.MongoDBCredentials]: AppConnection.MongoDB,
[SecretRotation.DatabricksServicePrincipalSecret]: AppConnection.Databricks,
[SecretRotation.UnixLinuxLocalAccount]: AppConnection.SSH,
- [SecretRotation.DbtServiceToken]: AppConnection.Dbt
++ [SecretRotation.DbtServiceToken]: AppConnection.Dbt,
+ [SecretRotation.OpenRouterApiKey]: AppConnection.OpenRouter
};
diff --cc backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-service.ts
index 026a15360d,3be8ec2cde..9097ae90f0
--- 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
@@@ -85,9 -85,9 +85,10 @@@ import { TSecretVersionV2TagDALFactory
import { TGatewayV2ServiceFactory } from "../gateway-v2/gateway-v2-service";
import { awsIamUserSecretRotationFactory } from "./aws-iam-user-secret/aws-iam-user-secret-rotation-fns";
+import { dbtServiceTokenRotationFactory } from "./dbt-service-token/dbt-service-token-rotation-fns";
import { mongodbCredentialsRotationFactory } from "./mongodb-credentials/mongodb-credentials-rotation-fns";
import { oktaClientSecretRotationFactory } from "./okta-client-secret/okta-client-secret-rotation-fns";
+ import { openRouterApiKeyRotationFactory } from "./open-router-api-key/open-router-api-key-rotation-fns";
import { redisCredentialsRotationFactory } from "./redis-credentials/redis-credentials-rotation-fns";
import { TSecretRotationV2DALFactory } from "./secret-rotation-v2-dal";
import { unixLinuxLocalAccountRotationFactory } from "./unix-linux-local-account-rotation/unix-linux-local-account-rotation-fns";
@@@ -148,7 -148,7 +149,8 @@@ const SECRET_ROTATION_FACTORY_MAP: Reco
[SecretRotation.DatabricksServicePrincipalSecret]:
databricksServicePrincipalSecretRotationFactory as TRotationFactoryImplementation,
[SecretRotation.UnixLinuxLocalAccount]: unixLinuxLocalAccountRotationFactory as TRotationFactoryImplementation,
- [SecretRotation.DbtServiceToken]: dbtServiceTokenRotationFactory as TRotationFactoryImplementation
++ [SecretRotation.DbtServiceToken]: dbtServiceTokenRotationFactory as TRotationFactoryImplementation,
+ [SecretRotation.OpenRouterApiKey]: openRouterApiKeyRotationFactory as TRotationFactoryImplementation
};
export const secretRotationV2ServiceFactory = ({
diff --cc backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-types.ts
index 384bb06574,c32bd7a62c..df04e4f94f
--- 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
@@@ -117,7 -117,7 +124,8 @@@ export type TSecretRotationV2
| TMongoDBCredentialsRotation
| TDatabricksServicePrincipalSecretRotation
| TUnixLinuxLocalAccountRotation
- | TDbtServiceTokenRotation;
++ | TDbtServiceTokenRotation
+ | TOpenRouterApiKeyRotation;
export type TSecretRotationV2WithConnection =
| TPostgresCredentialsRotationWithConnection
@@@ -133,7 -133,7 +141,8 @@@
| TMongoDBCredentialsRotationWithConnection
| TDatabricksServicePrincipalSecretRotationWithConnection
| TUnixLinuxLocalAccountRotationWithConnection
- | TDbtServiceTokenRotationWithConnection;
++ | TDbtServiceTokenRotationWithConnection
+ | TOpenRouterApiKeyRotationWithConnection;
export type TSecretRotationV2GeneratedCredentials =
| TSqlCredentialsRotationGeneratedCredentials
@@@ -145,7 -145,7 +154,8 @@@
| TRedisCredentialsRotationGeneratedCredentials
| TDatabricksServicePrincipalSecretRotationGeneratedCredentials
| TUnixLinuxLocalAccountRotationGeneratedCredentials
- | TDbtServiceTokenRotationGeneratedCredentials;
++ | TDbtServiceTokenRotationGeneratedCredentials
+ | TOpenRouterApiKeyRotationGeneratedCredentials;
export type TSecretRotationV2Input =
| TPostgresCredentialsRotationInput
@@@ -161,7 -161,7 +171,8 @@@
| TMongoDBCredentialsRotationInput
| TDatabricksServicePrincipalSecretRotationInput
| TUnixLinuxLocalAccountRotationInput
- | TDbtServiceTokenRotationInput;
++ | TDbtServiceTokenRotationInput
+ | TOpenRouterApiKeyRotationInput;
export type TSecretRotationV2ListItem =
| TPostgresCredentialsRotationListItem
@@@ -177,7 -177,7 +188,8 @@@
| TMongoDBCredentialsRotationListItem
| TDatabricksServicePrincipalSecretRotationListItem
| TUnixLinuxLocalAccountRotationListItem
- | TDbtServiceTokenRotationListItem;
++ | TDbtServiceTokenRotationListItem
+ | TOpenRouterApiKeyRotationListItem;
export type TSecretRotationV2TemporaryParameters =
| TLdapPasswordRotationInput["temporaryParameters"]
diff --cc backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-union-schema.ts
index 238466674e,33931ba644..3b9c5e197a
--- 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
@@@ -30,5 -29,5 +31,6 @@@ export const SecretRotationV2Schema = z
MongoDBCredentialsRotationSchema,
DatabricksServicePrincipalSecretRotationSchema,
UnixLinuxLocalAccountRotationSchema,
- DbtServiceTokenRotationSchema
++ DbtServiceTokenRotationSchema,
+ OpenRouterApiKeyRotationSchema
]);
diff --cc backend/src/lib/api-docs/constants.ts
index ade1bc57c8,2b99dc3131..38c49e96e2
--- a/backend/src/lib/api-docs/constants.ts
+++ b/backend/src/lib/api-docs/constants.ts
@@@ -2626,10 -2626,8 +2626,13 @@@ export const AppConnections =
privateKey: "The private key in PEM format for SSH authentication (required when authMethod is 'ssh-key').",
passphrase: "The passphrase for the private key, if encrypted (optional, only for 'ssh-key' authMethod)."
},
+ DBT: {
+ apiToken: "The API token used to authenticate with DBT.",
+ accountId: "The account ID of your DBT account.",
+ instanceUrl: "The base URL of your DBT instance."
++ },
+ OPEN_ROUTER: {
+ apiKey: "The OpenRouter Provisioning API key used to manage API keys."
}
}
};
@@@ -3017,8 -3020,12 +3025,15 @@@ export const SecretRotations =
servicePrincipalName: "The name of the Databricks Service Principal to rotate the OAuth secret for.",
clientId: "The client ID of the Databricks Service Principal to rotate the OAuth secret for."
},
+ DBT_SERVICE_TOKEN: {
+ permissionGrants: "The permission grants to apply to the service token."
++ },
+ OPEN_ROUTER_API_KEY: {
+ name: "The name for the generated OpenRouter API key.",
+ limit: "The optional spending limit in USD for the generated API key.",
+ limitReset: "The type of limit reset for the API key (daily, weekly, monthly, or null for no reset).",
+ 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."
}
},
SECRETS_MAPPING: {
@@@ -3066,8 -3073,8 +3081,11 @@@
clientId: "The name of the secret that the client ID will be mapped to.",
clientSecret: "The name of the secret that the rotated OAuth client secret will be mapped to."
},
+ DBT_SERVICE_TOKEN: {
+ serviceToken: "The name of the secret that the service token will be mapped to."
++ },
+ OPEN_ROUTER_API_KEY: {
+ apiKey: "The name of the secret that the rotated OpenRouter API key will be mapped to."
}
}
};
diff --cc backend/src/server/routes/v1/app-connection-routers/app-connection-router.ts
index c503adcff9,bd505b1f38..aae6a5102e
--- 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
@@@ -189,7 -197,7 +198,8 @@@ const SanitizedAppConnectionSchema = z.
...SanitizedDNSMadeEasyConnectionSchema.options,
...SanitizedOctopusDeployConnectionSchema.options,
...SanitizedSshConnectionSchema.options,
- ...SanitizedDbtConnectionSchema.options
++ ...SanitizedDbtConnectionSchema.options,
+ ...SanitizedOpenRouterConnectionSchema.options
]);
const AppConnectionOptionsSchema = z.discriminatedUnion("app", [
@@@ -239,7 -248,7 +250,8 @@@
DNSMadeEasyConnectionListItemSchema,
OctopusDeployConnectionListItemSchema,
SshConnectionListItemSchema,
- DbtConnectionListItemSchema
++ DbtConnectionListItemSchema,
+ OpenRouterConnectionListItemSchema
]);
export const registerAppConnectionRouter = async (server: FastifyZodProvider) => {
diff --cc backend/src/server/routes/v1/app-connection-routers/index.ts
index 9ca5e57d87,c9f4ccc72e..ccb4454d99
--- a/backend/src/server/routes/v1/app-connection-routers/index.ts
+++ b/backend/src/server/routes/v1/app-connection-routers/index.ts
@@@ -14,9 -14,9 +14,10 @@@ import { registerAzureKeyVaultConnectio
import { registerBitbucketConnectionRouter } from "./bitbucket-connection-router";
import { registerCamundaConnectionRouter } from "./camunda-connection-router";
import { registerChecklyConnectionRouter } from "./checkly-connection-router";
+ import { registerCircleCIConnectionRouter } from "./circleci-connection-router";
import { registerCloudflareConnectionRouter } from "./cloudflare-connection-router";
import { registerDatabricksConnectionRouter } from "./databricks-connection-router";
+import { registerDbtConnectionRouter } from "./dbt-connection-router";
import { registerDigitalOceanConnectionRouter } from "./digital-ocean-connection-router";
import { registerDNSMadeEasyConnectionRouter } from "./dns-made-easy-connection-router";
import { registerFlyioConnectionRouter } from "./flyio-connection-router";
@@@ -98,5 -99,6 +100,7 @@@ export const APP_CONNECTION_REGISTER_RO
[AppConnection.Chef]: registerChefConnectionRouter,
[AppConnection.OctopusDeploy]: registerOctopusDeployConnectionRouter,
[AppConnection.SSH]: registerSshConnectionRouter,
- [AppConnection.Dbt]: registerDbtConnectionRouter
++ [AppConnection.Dbt]: registerDbtConnectionRouter,
+ [AppConnection.OpenRouter]: registerOpenRouterConnectionRouter,
+ [AppConnection.CircleCI]: registerCircleCIConnectionRouter
};
diff --cc backend/src/services/app-connection/app-connection-enums.ts
index 7700c574ae,d1329b5961..f259ab45a1
--- a/backend/src/services/app-connection/app-connection-enums.ts
+++ b/backend/src/services/app-connection/app-connection-enums.ts
@@@ -45,7 -45,8 +45,9 @@@ export enum AppConnection
Northflank = "northflank",
OctopusDeploy = "octopus-deploy",
SSH = "ssh",
- Dbt = "dbt"
++ Dbt = "dbt",
+ OpenRouter = "open-router",
+ CircleCI = "circleci"
}
export enum AWSRegion {
diff --cc backend/src/services/app-connection/app-connection-fns.ts
index bb400d8c44,d3c717ee21..e80f38c253
--- a/backend/src/services/app-connection/app-connection-fns.ts
+++ b/backend/src/services/app-connection/app-connection-fns.ts
@@@ -236,7 -245,8 +246,9 @@@ export const listAppConnectionOptions
getMongoDBConnectionListItem(),
getChefConnectionListItem(),
getSshConnectionListItem(),
- getDbtConnectionListItem()
++ getDbtConnectionListItem(),
+ getOpenRouterConnectionListItem(),
+ getCircleCIConnectionListItem()
]
.filter((option) => {
switch (projectType) {
@@@ -373,7 -383,8 +385,9 @@@ export const validateAppConnectionCrede
[AppConnection.MongoDB]: validateMongoDBConnectionCredentials as TAppConnectionCredentialsValidator,
[AppConnection.OctopusDeploy]: validateOctopusDeployConnectionCredentials as TAppConnectionCredentialsValidator,
[AppConnection.SSH]: validateSshConnectionCredentials as TAppConnectionCredentialsValidator,
- [AppConnection.Dbt]: validateDbtConnectionCredentials as TAppConnectionCredentialsValidator
++ [AppConnection.Dbt]: validateDbtConnectionCredentials as TAppConnectionCredentialsValidator,
+ [AppConnection.OpenRouter]: validateOpenRouterConnectionCredentials as TAppConnectionCredentialsValidator,
+ [AppConnection.CircleCI]: validateCircleCIConnectionCredentials as TAppConnectionCredentialsValidator
};
return VALIDATE_APP_CONNECTION_CREDENTIALS_MAP[appConnection.app](appConnection, gatewayService, gatewayV2Service);
@@@ -418,7 -429,7 +432,8 @@@ export const getAppConnectionMethodNam
case NorthflankConnectionMethod.ApiToken:
case OktaConnectionMethod.ApiToken:
case LaravelForgeConnectionMethod.ApiToken:
+ case DbtConnectionMethod.ApiToken:
+ case CircleCIConnectionMethod.ApiToken:
return "API Token";
case DNSMadeEasyConnectionMethod.APIKeySecret:
return "API Key & Secret";
@@@ -532,7 -544,8 +548,9 @@@ export const TRANSITION_CONNECTION_CRED
[AppConnection.Chef]: platformManagedCredentialsNotSupported,
[AppConnection.OctopusDeploy]: platformManagedCredentialsNotSupported,
[AppConnection.SSH]: platformManagedCredentialsNotSupported,
- [AppConnection.Dbt]: platformManagedCredentialsNotSupported
++ [AppConnection.Dbt]: platformManagedCredentialsNotSupported,
+ [AppConnection.OpenRouter]: platformManagedCredentialsNotSupported,
+ [AppConnection.CircleCI]: platformManagedCredentialsNotSupported
};
export const enterpriseAppCheck = async (
diff --cc backend/src/services/app-connection/app-connection-maps.ts
index 9d4db066db,cf0a18e6ab..96f2d94730
--- a/backend/src/services/app-connection/app-connection-maps.ts
+++ b/backend/src/services/app-connection/app-connection-maps.ts
@@@ -47,7 -47,8 +47,9 @@@ export const APP_CONNECTION_NAME_MAP: R
[AppConnection.Northflank]: "Northflank",
[AppConnection.OctopusDeploy]: "Octopus Deploy",
[AppConnection.SSH]: "SSH",
- [AppConnection.Dbt]: "DBT"
++ [AppConnection.Dbt]: "DBT",
+ [AppConnection.OpenRouter]: "OpenRouter",
+ [AppConnection.CircleCI]: "CircleCI"
};
export const APP_CONNECTION_PLAN_MAP: Record<AppConnection, AppConnectionPlanType> = {
@@@ -97,5 -98,6 +99,7 @@@
[AppConnection.Northflank]: AppConnectionPlanType.Regular,
[AppConnection.OctopusDeploy]: AppConnectionPlanType.Regular,
[AppConnection.SSH]: AppConnectionPlanType.Regular,
- [AppConnection.Dbt]: AppConnectionPlanType.Regular
++ [AppConnection.Dbt]: AppConnectionPlanType.Regular,
+ [AppConnection.OpenRouter]: AppConnectionPlanType.Regular,
+ [AppConnection.CircleCI]: AppConnectionPlanType.Regular
};
diff --cc backend/src/services/app-connection/app-connection-service.ts
index 4d40fe6417,74c427cff1..2d621fc23f
--- a/backend/src/services/app-connection/app-connection-service.ts
+++ b/backend/src/services/app-connection/app-connection-service.ts
@@@ -190,7 -192,7 +194,8 @@@ const VALIDATE_APP_CONNECTION_CREDENTIA
[AppConnection.Chef]: ValidateChefConnectionCredentialsSchema,
[AppConnection.OctopusDeploy]: ValidateOctopusDeployConnectionCredentialsSchema,
[AppConnection.SSH]: ValidateSshConnectionCredentialsSchema,
- [AppConnection.Dbt]: ValidateDbtConnectionCredentialsSchema
++ [AppConnection.Dbt]: ValidateDbtConnectionCredentialsSchema,
+ [AppConnection.CircleCI]: ValidateCircleCIConnectionCredentialsSchema
};
export const appConnectionServiceFactory = ({
@@@ -909,6 -911,6 +914,7 @@@
laravelForge: laravelForgeConnectionService(connectAppConnectionById),
chef: chefConnectionService(connectAppConnectionById, licenseService),
octopusDeploy: octopusDeployConnectionService(connectAppConnectionById),
- dbt: dbtConnectionService(connectAppConnectionById)
++ dbt: dbtConnectionService(connectAppConnectionById),
+ circleci: circleciConnectionService(connectAppConnectionById)
};
};
diff --cc backend/src/services/app-connection/app-connection-types.ts
index 67e34439a4,adc6b2432c..0b5c2ee317
--- a/backend/src/services/app-connection/app-connection-types.ts
+++ b/backend/src/services/app-connection/app-connection-types.ts
@@@ -323,7 -329,8 +335,9 @@@ export type TAppConnection = { id: stri
| TChefConnection
| TOctopusDeployConnection
| TSshConnection
+ | TDbtConnection
+ | TOpenRouterConnection
+ | TCircleCIConnection
);
export type TAppConnectionRaw = NonNullable<Awaited<ReturnType<TAppConnectionDALFactory["findById"]>>>;
@@@ -377,7 -384,8 +391,9 @@@ export type TAppConnectionInput = { id
| TChefConnectionInput
| TOctopusDeployConnectionInput
| TSshConnectionInput
+ | TDbtConnectionInput
+ | TOpenRouterConnectionInput
+ | TCircleCIConnectionInput
);
export type TSqlConnectionInput =
@@@ -449,7 -457,8 +465,9 @@@ export type TAppConnectionConfig
| TChefConnectionConfig
| TOctopusDeployConnectionConfig
| TSshConnectionConfig
- | TDbtConnectionConfig;
++ | TDbtConnectionConfig
+ | TOpenRouterConnectionConfig
+ | TCircleCIConnectionConfig;
export type TValidateAppConnectionCredentialsSchema =
| TValidateAwsConnectionCredentialsSchema
@@@ -498,7 -507,8 +516,9 @@@
| TValidateChefConnectionCredentialsSchema
| TValidateOctopusDeployConnectionCredentialsSchema
| TValidateSshConnectionCredentialsSchema
- | TValidateDbtConnectionCredentialsSchema;
++ | TValidateDbtConnectionCredentialsSchema
+ | TValidateOpenRouterConnectionCredentialsSchema
+ | TValidateCircleCIConnectionCredentialsSchema;
export type TListAwsConnectionKmsKeys = {
connectionId: string;
diff --cc frontend/src/components/secret-rotations-v2/ViewSecretRotationV2GeneratedCredentials/ViewSecretRotationV2GeneratedCredentials.tsx
index 9163b6f51a,4f7894f8d4..0837c68e61
--- a/frontend/src/components/secret-rotations-v2/ViewSecretRotationV2GeneratedCredentials/ViewSecretRotationV2GeneratedCredentials.tsx
+++ b/frontend/src/components/secret-rotations-v2/ViewSecretRotationV2GeneratedCredentials/ViewSecretRotationV2GeneratedCredentials.tsx
@@@ -23,8 -23,8 +23,9 @@@ import
import { ViewSqlCredentialsRotationGeneratedCredentials } from "./shared";
import { ViewAwsIamUserSecretRotationGeneratedCredentials } from "./ViewAwsIamUserSecretRotationGeneratedCredentials";
+import { ViewDbtServiceTokenRotationGeneratedCredentials } from "./ViewDbtSeviceTokenRotationGeneratedCredentials";
import { ViewOktaClientSecretRotationGeneratedCredentials } from "./ViewOktaClientSecretRotationGeneratedCredentials";
+ import { ViewOpenRouterApiKeyRotationGeneratedCredentials } from "./ViewOpenRouterApiKeyRotationGeneratedCredentials";
import { ViewRedisCredentialsRotationGeneratedCredentials } from "./ViewRedisCredentialsRotationGeneratedCredentials";
import { ViewUnixLinuxLocalAccountRotationGeneratedCredentials } from "./ViewUnixLinuxLocalAccountRotationGeneratedCredentials";
@@@ -133,13 -133,13 +134,20 @@@ const Content = ({ secretRotation }: Co
/>
);
break;
+ case SecretRotation.DbtServiceToken:
+ Component = (
+ <ViewDbtServiceTokenRotationGeneratedCredentials
+ generatedCredentialsResponse={generatedCredentialsResponse}
+ />
+ );
+ break;
+ case SecretRotation.OpenRouterApiKey:
+ Component = (
+ <ViewOpenRouterApiKeyRotationGeneratedCredentials
+ generatedCredentialsResponse={generatedCredentialsResponse}
+ />
+ );
+ break;
default:
throw new Error("Unhandled View Generated Credential Rotation Type");
}
diff --cc frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ParametersFields/SecretRotationV2ParametersFields.tsx
index 33be2022db,6b9ede0b27..85893206f0
--- a/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ParametersFields/SecretRotationV2ParametersFields.tsx
+++ b/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ParametersFields/SecretRotationV2ParametersFields.tsx
@@@ -30,7 -30,7 +31,8 @@@ const COMPONENT_MAP: Record<SecretRotat
[SecretRotation.DatabricksServicePrincipalSecret]:
DatabricksServicePrincipalSecretRotationParametersFields,
[SecretRotation.UnixLinuxLocalAccount]: UnixLinuxLocalAccountRotationParametersFields,
- [SecretRotation.DbtServiceToken]: DbtServiceTokenRotationParametersFields
++ [SecretRotation.DbtServiceToken]: DbtServiceTokenRotationParametersFields,
+ [SecretRotation.OpenRouterApiKey]: OpenRouterApiKeyRotationParametersFields
};
export const SecretRotationV2ParametersFields = () => {
diff --cc frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ReviewFields/SecretRotationReviewFields.tsx
index 5cc365d49b,f7b164d568..e94bb23fb0
--- a/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ReviewFields/SecretRotationReviewFields.tsx
+++ b/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ReviewFields/SecretRotationReviewFields.tsx
@@@ -10,9 -10,9 +10,10 @@@ import { Auth0ClientSecretRotationRevie
import { AwsIamUserSecretRotationReviewFields } from "./AwsIamUserSecretRotationReviewFields";
import { AzureClientSecretRotationReviewFields } from "./AzureClientSecretRotationReviewFields";
import { DatabricksServicePrincipalSecretRotationReviewFields } from "./DatabricksServicePrincipalSecretRotationReviewFields";
+import { DbtServiceTokenRotationReviewFields } from "./DbtServiceTokenRotationReviewFields";
import { LdapPasswordRotationReviewFields } from "./LdapPasswordRotationReviewFields";
import { OktaClientSecretRotationReviewFields } from "./OktaClientSecretRotationReviewFields";
+ import { OpenRouterApiKeyRotationReviewFields } from "./OpenRouterApiKeyRotationReviewFields";
import { RedisCredentialsRotationReviewFields } from "./RedisCredentialsRotationReviewFields";
import { SqlCredentialsRotationReviewFields } from "./shared";
import { UnixLinuxLocalAccountRotationReviewFields } from "./UnixLinuxLocalAccountRotationReviewFields";
@@@ -32,7 -32,7 +33,8 @@@ const COMPONENT_MAP: Record<SecretRotat
[SecretRotation.DatabricksServicePrincipalSecret]:
DatabricksServicePrincipalSecretRotationReviewFields,
[SecretRotation.UnixLinuxLocalAccount]: UnixLinuxLocalAccountRotationReviewFields,
- [SecretRotation.DbtServiceToken]: DbtServiceTokenRotationReviewFields
++ [SecretRotation.DbtServiceToken]: DbtServiceTokenRotationReviewFields,
+ [SecretRotation.OpenRouterApiKey]: OpenRouterApiKeyRotationReviewFields
};
export const SecretRotationV2ReviewFields = () => {
diff --cc frontend/src/components/secret-rotations-v2/forms/SecretRotationV2SecretsMappingFields/SecretRotationV2SecretsMappingFields.tsx
index 34964d12cc,33f404407a..039c52ff27
--- a/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2SecretsMappingFields/SecretRotationV2SecretsMappingFields.tsx
+++ b/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2SecretsMappingFields/SecretRotationV2SecretsMappingFields.tsx
@@@ -7,9 -7,9 +7,10 @@@ import { Auth0ClientSecretRotationSecre
import { AwsIamUserSecretRotationSecretsMappingFields } from "./AwsIamUserSecretRotationSecretsMappingFields";
import { AzureClientSecretRotationSecretsMappingFields } from "./AzureClientSecretRotationSecretsMappingFields";
import { DatabricksServicePrincipalSecretRotationSecretsMappingFields } from "./DatabricksServicePrincipalSecretRotationSecretsMappingFields";
+import { DbtServiceTokenRotationSecretsMappingFields } from "./DbtServiceTokenRotationSecretsMappingFields";
import { LdapPasswordRotationSecretsMappingFields } from "./LdapPasswordRotationSecretsMappingFields";
import { OktaClientSecretRotationSecretsMappingFields } from "./OktaClientSecretRotationSecretsMappingFields";
+ import { OpenRouterApiKeyRotationSecretsMappingFields } from "./OpenRouterApiKeyRotationSecretsMappingFields";
import { RedisCredentialsRotationSecretsMappingFields } from "./RedisCredentialsRotationSecretsMappingFields";
import { SqlCredentialsRotationSecretsMappingFields } from "./shared";
import { UnixLinuxLocalAccountRotationSecretsMappingFields } from "./UnixLinuxLocalAccountRotationSecretsMappingFields";
@@@ -29,7 -29,7 +30,8 @@@ const COMPONENT_MAP: Record<SecretRotat
[SecretRotation.DatabricksServicePrincipalSecret]:
DatabricksServicePrincipalSecretRotationSecretsMappingFields,
[SecretRotation.UnixLinuxLocalAccount]: UnixLinuxLocalAccountRotationSecretsMappingFields,
- [SecretRotation.DbtServiceToken]: DbtServiceTokenRotationSecretsMappingFields
++ [SecretRotation.DbtServiceToken]: DbtServiceTokenRotationSecretsMappingFields,
+ [SecretRotation.OpenRouterApiKey]: OpenRouterApiKeyRotationSecretsMappingFields
};
export const SecretRotationV2SecretsMappingFields = () => {
diff --cc frontend/src/components/secret-rotations-v2/forms/schemas/index.ts
index 1d06a1bfaa,c40d4e7bb0..f543bb3409
--- a/frontend/src/components/secret-rotations-v2/forms/schemas/index.ts
+++ b/frontend/src/components/secret-rotations-v2/forms/schemas/index.ts
@@@ -13,8 -13,8 +13,9 @@@ import { SecretRotation } from "@app/ho
import { LdapPasswordRotationMethod } from "@app/hooks/api/secretRotationsV2/types/ldap-password-rotation";
import { UnixLinuxLocalAccountRotationMethod } from "@app/hooks/api/secretRotationsV2/types/unix-linux-local-account-rotation";
+import { DbtServiceTokenRotationSchema } from "./dbt-service-token-rotation-schema";
import { OktaClientSecretRotationSchema } from "./okta-client-secret-rotation-schema";
+ import { OpenRouterApiKeyRotationSchema } from "./open-router-api-key-rotation-schema";
import { OracleDBCredentialsRotationSchema } from "./oracledb-credentials-rotation-schema";
import { RedisCredentialsRotationSchema } from "./redis-credentials-rotation-schema";
import { UnixLinuxLocalAccountRotationSchema } from "./unix-linux-local-account-rotation-schema";
@@@ -36,7 -36,7 +37,8 @@@ export const SecretRotationV2FormSchem
MongoDBCredentialsRotationSchema,
DatabricksServicePrincipalSecretRotationSchema,
UnixLinuxLocalAccountRotationSchema,
- DbtServiceTokenRotationSchema
++ DbtServiceTokenRotationSchema,
+ OpenRouterApiKeyRotationSchema
]),
z.object({ id: z.string().optional() })
)
diff --cc frontend/src/helpers/appConnections.ts
index 171d1befe7,77282cf7bc..669a8e74fe
--- a/frontend/src/helpers/appConnections.ts
+++ b/frontend/src/helpers/appConnections.ts
@@@ -142,7 -143,8 +144,9 @@@ export const APP_CONNECTION_MAP: Record
[AppConnection.Chef]: { name: "Chef", image: "Chef.png", enterprise: true },
[AppConnection.OctopusDeploy]: { name: "Octopus Deploy", image: "Octopus Deploy.png" },
[AppConnection.SSH]: { name: "SSH", image: "SSH.png" },
- [AppConnection.Dbt]: { name: "DBT", image: "DBT.png" }
++ [AppConnection.Dbt]: { name: "DBT", image: "DBT.png" },
+ [AppConnection.OpenRouter]: { name: "OpenRouter", image: "OpenRouter.png" },
+ [AppConnection.CircleCI]: { name: "CircleCI", image: "CircleCI.png" }
};
export const getAppConnectionMethodDetails = (method: TAppConnection["method"]) => {
@@@ -182,7 -184,7 +186,8 @@@
case NorthflankConnectionMethod.ApiToken:
case OktaConnectionMethod.ApiToken:
case LaravelForgeConnectionMethod.ApiToken:
+ case DbtConnectionMethod.ApiToken:
+ case CircleCIConnectionMethod.ApiToken:
return { name: "API Token", icon: faKey };
case PostgresConnectionMethod.UsernameAndPassword:
case MsSqlConnectionMethod.UsernameAndPassword:
diff --cc frontend/src/helpers/secretRotationsV2.ts
index 92efb4d20b,e6f15b899a..3f7dc95ff0
--- a/frontend/src/helpers/secretRotationsV2.ts
+++ b/frontend/src/helpers/secretRotationsV2.ts
@@@ -70,10 -70,10 +70,15 @@@ export const SECRET_ROTATION_MAP: Recor
image: "SSH.png",
size: 50
},
+ [SecretRotation.DbtServiceToken]: {
+ name: "DBT Service Token",
+ image: "DBT.png",
+ size: 50
++ },
+ [SecretRotation.OpenRouterApiKey]: {
+ name: "OpenRouter API Key",
+ image: "OpenRouter.png",
+ size: 50
}
};
@@@ -91,7 -91,7 +96,8 @@@ export const SECRET_ROTATION_CONNECTION
[SecretRotation.MongoDBCredentials]: AppConnection.MongoDB,
[SecretRotation.DatabricksServicePrincipalSecret]: AppConnection.Databricks,
[SecretRotation.UnixLinuxLocalAccount]: AppConnection.SSH,
- [SecretRotation.DbtServiceToken]: AppConnection.Dbt
++ [SecretRotation.DbtServiceToken]: AppConnection.Dbt,
+ [SecretRotation.OpenRouterApiKey]: AppConnection.OpenRouter
};
// if a rotation can potentially have downtime due to rotating a single credential set this to false
@@@ -109,7 -109,7 +115,8 @@@ export const IS_ROTATION_DUAL_CREDENTIA
[SecretRotation.MongoDBCredentials]: true,
[SecretRotation.DatabricksServicePrincipalSecret]: true,
[SecretRotation.UnixLinuxLocalAccount]: false,
- [SecretRotation.DbtServiceToken]: true
++ [SecretRotation.DbtServiceToken]: true,
+ [SecretRotation.OpenRouterApiKey]: true
};
export const getRotateAtLocal = ({ hours, minutes }: TSecretRotationV2["rotateAtUtc"]) => {
diff --cc frontend/src/hooks/api/appConnections/enums.ts
index d793fdcb0d,af2a0f85b2..5adeb4b7ff
--- a/frontend/src/hooks/api/appConnections/enums.ts
+++ b/frontend/src/hooks/api/appConnections/enums.ts
@@@ -45,5 -45,6 +45,7 @@@ export enum AppConnection
Chef = "chef",
OctopusDeploy = "octopus-deploy",
SSH = "ssh",
- Dbt = "dbt"
++ Dbt = "dbt",
+ OpenRouter = "open-router",
+ CircleCI = "circleci"
}
diff --cc frontend/src/hooks/api/appConnections/types/app-options.ts
index 6da4766c37,19b94a021d..4cb6b81b59
--- a/frontend/src/hooks/api/appConnections/types/app-options.ts
+++ b/frontend/src/hooks/api/appConnections/types/app-options.ts
@@@ -200,10 -200,14 +200,18 @@@ export type TSshConnectionOption = TApp
app: AppConnection.SSH;
};
+export type TDbtConnectionOption = TAppConnectionOptionBase & {
+ app: AppConnection.Dbt;
+};
+
+ export type TOpenRouterConnectionOption = TAppConnectionOptionBase & {
+ app: AppConnection.OpenRouter;
+ };
+
+ export type TCircleCISyncConnectionOption = TAppConnectionOptionBase & {
+ app: AppConnection.CircleCI;
+ };
+
export type TAppConnectionOption =
| TAwsConnectionOption
| TGitHubConnectionOption
@@@ -300,5 -306,5 +311,6 @@@ export type TAppConnectionOptionMap =
[AppConnection.Chef]: TChefConnectionOption;
[AppConnection.OctopusDeploy]: TOctopusDeployConnectionOption;
[AppConnection.SSH]: TSshConnectionOption;
+ [AppConnection.Dbt]: TDbtConnectionOption;
+ [AppConnection.CircleCI]: TCircleCISyncConnectionOption;
};
diff --cc frontend/src/hooks/api/appConnections/types/index.ts
index 5a4df3f021,ebcf3ad741..5f84bac59e
--- a/frontend/src/hooks/api/appConnections/types/index.ts
+++ b/frontend/src/hooks/api/appConnections/types/index.ts
@@@ -12,9 -12,9 +12,10 @@@ import { TBitbucketConnection } from ".
import { TCamundaConnection } from "./camunda-connection";
import { TChecklyConnection } from "./checkly-connection";
import { TChefConnection } from "./chef-connection";
+ import { TCircleCIConnection } from "./circleci-connection";
import { TCloudflareConnection } from "./cloudflare-connection";
import { TDatabricksConnection } from "./databricks-connection";
+import { TDbtConnection } from "./dbt-connection";
import { TDigitalOceanConnection } from "./digital-ocean";
import { TDNSMadeEasyConnection } from "./dns-made-easy-connection";
import { TFlyioConnection } from "./flyio-connection";
@@@ -60,9 -61,9 +62,10 @@@ export * from "./bitbucket-connection"
export * from "./camunda-connection";
export * from "./checkly-connection";
export * from "./chef-connection";
+ export * from "./circleci-connection";
export * from "./cloudflare-connection";
export * from "./databricks-connection";
+export * from "./dbt-connection";
export * from "./dns-made-easy-connection";
export * from "./flyio-connection";
export * from "./gcp-connection";
@@@ -142,7 -144,8 +146,9 @@@ export type TAppConnection
| TChefConnection
| TDNSMadeEasyConnection
| TSshConnection
- | TDbtConnection;
++ | TDbtConnection
+ | TOpenRouterConnection
+ | TCircleCIConnection;
export type TAvailableAppConnection = Pick<TAppConnection, "name" | "id" | "projectId">;
diff --cc frontend/src/hooks/api/secretRotationsV2/enums.ts
index f2374e987e,3b8b59af28..b69b3b1a36
--- a/frontend/src/hooks/api/secretRotationsV2/enums.ts
+++ b/frontend/src/hooks/api/secretRotationsV2/enums.ts
@@@ -12,7 -12,7 +12,8 @@@ export enum SecretRotation
MongoDBCredentials = "mongodb-credentials",
DatabricksServicePrincipalSecret = "databricks-service-principal-secret",
UnixLinuxLocalAccount = "unix-linux-local-account",
- DbtServiceToken = "dbt-service-token"
++ DbtServiceToken = "dbt-service-token",
+ OpenRouterApiKey = "open-router-api-key"
}
export enum SecretRotationStatus {
diff --cc frontend/src/hooks/api/secretRotationsV2/types/index.ts
index c402f11b08,f64129c57f..dc33f28493
--- a/frontend/src/hooks/api/secretRotationsV2/types/index.ts
+++ b/frontend/src/hooks/api/secretRotationsV2/types/index.ts
@@@ -84,7 -84,7 +89,8 @@@ export type TSecretRotationV2 =
| TMongoDBCredentialsRotation
| TDatabricksServicePrincipalSecretRotation
| TUnixLinuxLocalAccountRotation
+ | TDbtServiceTokenRotation
+ | TOpenRouterApiKeyRotation
) & {
secrets: (SecretV3RawSanitized | null)[];
};
@@@ -100,7 -100,7 +106,8 @@@ export type TSecretRotationV2Option
| TMongoDBCredentialsRotationOption
| TDatabricksServicePrincipalSecretRotationOption
| TUnixLinuxLocalAccountRotationOption
- | TDbtServiceTokenRotationOption;
++ | TDbtServiceTokenRotationOption
+ | TOpenRouterApiKeyRotationOption;
export type TListSecretRotationV2Options = { secretRotationOptions: TSecretRotationV2Option[] };
@@@ -120,7 -120,7 +127,8 @@@ export type TViewSecretRotationGenerate
| TMongoDBCredentialsRotationGeneratedCredentialsResponse
| TDatabricksServicePrincipalSecretRotationGeneratedCredentialsResponse
| TUnixLinuxLocalAccountRotationGeneratedCredentialsResponse
- | TDbtServiceTokenRotationGeneratedCredentialsResponse;
++ | TDbtServiceTokenRotationGeneratedCredentialsResponse
+ | TOpenRouterApiKeyRotationGeneratedCredentialsResponse;
export type TCreateSecretRotationV2DTO = DiscriminativePick<
TSecretRotationV2,
@@@ -177,7 -177,7 +185,8 @@@ export type TSecretRotationOptionMap =
[SecretRotation.MongoDBCredentials]: TMongoDBCredentialsRotationOption;
[SecretRotation.DatabricksServicePrincipalSecret]: TDatabricksServicePrincipalSecretRotationOption;
[SecretRotation.UnixLinuxLocalAccount]: TUnixLinuxLocalAccountRotationOption;
+ [SecretRotation.DbtServiceToken]: TDbtServiceTokenRotationOption;
+ [SecretRotation.OpenRouterApiKey]: TOpenRouterApiKeyRotationOption;
};
export type TSecretRotationGeneratedCredentialsResponseMap = {
@@@ -194,7 -194,7 +203,8 @@@
[SecretRotation.MongoDBCredentials]: TMongoDBCredentialsRotationGeneratedCredentialsResponse;
[SecretRotation.DatabricksServicePrincipalSecret]: TDatabricksServicePrincipalSecretRotationGeneratedCredentialsResponse;
[SecretRotation.UnixLinuxLocalAccount]: TUnixLinuxLocalAccountRotationGeneratedCredentialsResponse;
+ [SecretRotation.DbtServiceToken]: TDbtServiceTokenRotationGeneratedCredentialsResponse;
+ [SecretRotation.OpenRouterApiKey]: TOpenRouterApiKeyRotationGeneratedCredentialsResponse;
};
export type TReconcileUnixLinuxLocalAccountRotationDTO = {
diff --cc frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionForm.tsx
index a0d332d193,4f179803db..425ea20348
--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionForm.tsx
+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionForm.tsx
@@@ -21,9 -21,9 +21,10 @@@ import { BitbucketConnectionForm } fro
import { CamundaConnectionForm } from "./CamundaConnectionForm";
import { ChecklyConnectionForm } from "./ChecklyConnectionForm";
import { ChefConnectionForm } from "./ChefConnectionForm";
+ import { CircleCIConnectionForm } from "./CircleCIConnectionForm";
import { CloudflareConnectionForm } from "./CloudflareConnectionForm";
import { DatabricksConnectionForm } from "./DatabricksConnectionForm";
+import { DbtConnectionForm } from "./DbtConnectionForm";
import { DigitalOceanConnectionForm } from "./DigitalOceanConnectionForm";
import { DNSMadeEasyConnectionForm } from "./DNSMadeEasyConnectionForm";
import { FlyioConnectionForm } from "./FlyioConnectionForm";
@@@ -183,8 -184,10 +185,12 @@@ const CreateForm = ({ app, onComplete,
return <OctopusDeployConnectionForm onSubmit={onSubmit} />;
case AppConnection.SSH:
return <SshConnectionForm onSubmit={onSubmit} />;
+ case AppConnection.Dbt:
+ return <DbtConnectionForm onSubmit={onSubmit} />;
+ case AppConnection.OpenRouter:
+ return <OpenRouterConnectionForm onSubmit={onSubmit} />;
+ case AppConnection.CircleCI:
+ return <CircleCIConnectionForm onSubmit={onSubmit} />;
default:
throw new Error(`Unhandled App ${app}`);
}
@@@ -349,8 -352,10 +355,12 @@@ const UpdateForm = ({ appConnection, on
return <OctopusDeployConnectionForm onSubmit={onSubmit} appConnection={appConnection} />;
case AppConnection.SSH:
return <SshConnectionForm onSubmit={onSubmit} appConnection={appConnection} />;
+ case AppConnection.Dbt:
+ return <DbtConnectionForm onSubmit={onSubmit} appConnection={appConnection} />;
+ case AppConnection.OpenRouter:
+ return <OpenRouterConnectionForm onSubmit={onSubmit} appConnection={appConnection} />;
+ case AppConnection.CircleCI:
+ return <CircleCIConnectionForm onSubmit={onSubmit} appConnection={appConnection} />;
default:
throw new Error(`Unhandled App ${(appConnection as TAppConnection).app}`);
}