Skip to content

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

fix: lint

adilsoncdd5c20a357c
diff --git a/backend/src/ee/services/secret-rotation-v2/datadog-api-key/datadog-api-key-rotation-fns.ts b/backend/src/ee/services/secret-rotation-v2/datadog-api-key/datadog-api-key-rotation-fns.ts
index f960033038..0eee25e06b 100644
--- a/backend/src/ee/services/secret-rotation-v2/datadog-api-key/datadog-api-key-rotation-fns.ts
+++ b/backend/src/ee/services/secret-rotation-v2/datadog-api-key/datadog-api-key-rotation-fns.ts
@@ -165,8 +165,7 @@ export const datadogApiKeyRotationFactory: TRotationFactory<
const baseUrl = await getDatadogBaseUrl(connection);
try {
- // Validate the freshly-issued API key against the connection's known-good application key.
- await safeRequest.get(`${baseUrl}/api/v2/validate`, {
+ await safeRequest.get(`${baseUrl}/api/v1/validate`, {
headers: { "DD-API-KEY": apiKey }
});
} catch (error: unknown) {
diff --git a/backend/src/services/app-connection/datadog/datadog-connection-fns.ts b/backend/src/services/app-connection/datadog/datadog-connection-fns.ts
index 44256b2691..81dc395d3e 100644
--- a/backend/src/services/app-connection/datadog/datadog-connection-fns.ts
+++ b/backend/src/services/app-connection/datadog/datadog-connection-fns.ts
@@ -38,10 +38,7 @@ export const getDatadogConnectionListItem = () => {
return {
name: "Datadog" as const,
app: AppConnection.Datadog as const,
- methods: Object.values(DatadogConnectionMethod) as [
- DatadogConnectionMethod.Token,
- DatadogConnectionMethod.ApiKey
- ]
+ methods: Object.values(DatadogConnectionMethod) as [DatadogConnectionMethod.Token, 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.ts
index de5bd9f217..c56f43a890 100644
--- a/backend/src/services/app-connection/datadog/datadog-connection-schemas.ts
+++ b/backend/src/services/app-connection/datadog/datadog-connection-schemas.ts
@@ -67,9 +67,7 @@ export const ValidateDatadogConnectionCredentialsSchema = z.discriminatedUnion("
)
}),
z.object({
- method: z
- .literal(DatadogConnectionMethod.ApiKey)
- .describe(AppConnections.CREATE(AppConnection.Datadog).method),
+ method: z.literal(DatadogConnectionMethod.ApiKey).describe(AppConnections.CREATE(AppConnection.Datadog).method),
credentials: DatadogConnectionApiKeyCredentialsSchema.describe(
AppConnections.CREATE(AppConnection.Datadog).credentials
)