Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix: remove the rename to access key to avoid breaking existent app connections
adilson0bb9549cf53a
diff --git a/backend/src/services/app-connection/app-connection-fns.ts b/backend/src/services/app-connection/app-connection-fns.tsindex 04126a077d..c221cd26b1 100644--- a/backend/src/services/app-connection/app-connection-fns.ts+++ b/backend/src/services/app-connection/app-connection-fns.ts@@ -745,9 +745,8 @@ export const getAppConnectionMethodName = (method: TAppConnection["method"]) =>case DigiCertConnectionMethod.ApiKey:case GoDaddyConnectionMethod.ApiKey:case TriggerDevConnectionMethod.ApiKey:+ case DatadogConnectionMethod.ApiKey:return "API Key";- case DatadogConnectionMethod.ApplicationKey:- return "Application Keys";case ChefConnectionMethod.UserKey:return "User Key";case QoveryConnectionMethod.AccessToken:diff --git a/backend/src/services/app-connection/datadog/datadog-connection-enums.ts b/backend/src/services/app-connection/datadog/datadog-connection-enums.tsindex 33469c1b48..d956d6ed15 100644--- a/backend/src/services/app-connection/datadog/datadog-connection-enums.ts+++ b/backend/src/services/app-connection/datadog/datadog-connection-enums.ts@@ -1,4 +1,4 @@export enum DatadogConnectionMethod {Token = "token",- ApplicationKey = "application-key"+ ApiKey = "api-key"}diff --git a/backend/src/services/app-connection/datadog/datadog-connection-fns.ts b/backend/src/services/app-connection/datadog/datadog-connection-fns.tsindex a2890ad10e..44256b2691 100644--- a/backend/src/services/app-connection/datadog/datadog-connection-fns.ts+++ b/backend/src/services/app-connection/datadog/datadog-connection-fns.ts@@ -40,7 +40,7 @@ export const getDatadogConnectionListItem = () => {app: AppConnection.Datadog as const,methods: Object.values(DatadogConnectionMethod) as [DatadogConnectionMethod.Token,- DatadogConnectionMethod.ApplicationKey+ DatadogConnectionMethod.ApiKey]};};diff --git a/backend/src/services/app-connection/datadog/datadog-connection-schemas.ts b/backend/src/services/app-connection/datadog/datadog-connection-schemas.tsindex 841c2c71de..de5bd9f217 100644--- a/backend/src/services/app-connection/datadog/datadog-connection-schemas.ts+++ b/backend/src/services/app-connection/datadog/datadog-connection-schemas.ts@@ -43,7 +43,7 @@ export const DatadogConnectionSchema = z.discriminatedUnion("method", [credentials: DatadogConnectionTokenCredentialsSchema}),BaseDatadogConnectionSchema.extend({- method: z.literal(DatadogConnectionMethod.ApplicationKey),+ method: z.literal(DatadogConnectionMethod.ApiKey),credentials: DatadogConnectionApiKeyCredentialsSchema})]);@@ -54,7 +54,7 @@ export const SanitizedDatadogConnectionSchema = z.discriminatedUnion("method", [credentials: DatadogConnectionTokenCredentialsSchema.pick({ url: true })}).describe(JSON.stringify({ title: `${APP_CONNECTION_NAME_MAP[AppConnection.Datadog]} (Service Access Token)` })),BaseDatadogConnectionSchema.extend({- method: z.literal(DatadogConnectionMethod.ApplicationKey),+ method: z.literal(DatadogConnectionMethod.ApiKey),credentials: DatadogConnectionApiKeyCredentialsSchema.pick({ url: true })}).describe(JSON.stringify({ title: `${APP_CONNECTION_NAME_MAP[AppConnection.Datadog]} (Application Keys)` }))]);@@ -68,7 +68,7 @@ export const ValidateDatadogConnectionCredentialsSchema = z.discriminatedUnion("}),z.object({method: z- .literal(DatadogConnectionMethod.ApplicationKey)+ .literal(DatadogConnectionMethod.ApiKey).describe(AppConnections.CREATE(AppConnection.Datadog).method),credentials: DatadogConnectionApiKeyCredentialsSchema.describe(AppConnections.CREATE(AppConnection.Datadog).credentialsdiff --git a/frontend/src/helpers/appConnections.ts b/frontend/src/helpers/appConnections.tsindex 6d64a23209..72b5e4d89b 100644--- a/frontend/src/helpers/appConnections.ts+++ b/frontend/src/helpers/appConnections.ts@@ -695,6 +695,7 @@ export const getAppConnectionMethodDetails = (method: TAppConnection["method"])case DigiCertConnectionMethod.ApiKey:case GoDaddyConnectionMethod.ApiKey:case TriggerDevConnectionMethod.ApiKey:+ case DatadogConnectionMethod.ApiKey:return { name: "API Key", icon: faKey };case ChefConnectionMethod.UserKey:return { name: "User Key", icon: faKey };@@ -715,8 +716,6 @@ export const getAppConnectionMethodDetails = (method: TAppConnection["method"])return { name: "API Key", icon: faKey };case DatadogConnectionMethod.Token:return { name: "Service Access Token", icon: faKey };- case DatadogConnectionMethod.ApplicationKey:- return { name: "Application Keys", icon: faKey };case SshConnectionMethod.Password:return { name: "Password", icon: faLock };case SshConnectionMethod.SshKey:diff --git a/frontend/src/hooks/api/appConnections/types/datadog-connection.ts b/frontend/src/hooks/api/appConnections/types/datadog-connection.tsindex df1a9dbff2..d872430289 100644--- a/frontend/src/hooks/api/appConnections/types/datadog-connection.ts+++ b/frontend/src/hooks/api/appConnections/types/datadog-connection.ts@@ -3,7 +3,7 @@ import { TRootAppConnection } from "@app/hooks/api/appConnections/types/root-conexport enum DatadogConnectionMethod {Token = "token",- ApplicationKey = "application-key"+ ApiKey = "api-key"}export type TDatadogConnection = TRootAppConnection & { app: AppConnection.Datadog } & (@@ -15,7 +15,7 @@ export type TDatadogConnection = TRootAppConnection & { app: AppConnection.Datad};}| {- method: DatadogConnectionMethod.ApplicationKey;+ method: DatadogConnectionMethod.ApiKey;credentials: {url: string;apiKey: string;