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
remove validation to avoid race condition
adilson8e990f311813
diff --git a/backend/src/ee/services/secret-rotation-v2/datadog-application-key-secret/datadog-application-key-secret-rotation-fns.ts b/backend/src/ee/services/secret-rotation-v2/datadog-application-key-secret/datadog-application-key-secret-rotation-fns.tsindex d12e721639..4341996523 100644--- a/backend/src/ee/services/secret-rotation-v2/datadog-application-key-secret/datadog-application-key-secret-rotation-fns.ts+++ b/backend/src/ee/services/secret-rotation-v2/datadog-application-key-secret/datadog-application-key-secret-rotation-fns.ts@@ -97,26 +97,6 @@ export const datadogApplicationKeySecretRotationFactory: TRotationFactory<const $issueAndValidateKey = async () => {const created = await $createApplicationKey();- try {- const baseUrl = await getDatadogBaseUrl(connection);- await request.get(`${baseUrl}/api/v2/permissions`, {- headers: { "DD-API-KEY": connection.credentials.apiKey, "DD-APPLICATION-KEY": created.applicationKey }- });- } catch (error) {- try {- await $deleteApplicationKey(created.applicationKeyId);- } catch (cleanupError) {- logger.error(- cleanupError,- `datadogApplicationKeySecretRotation: failed to revoke unvalidated key [rotationId=${rotationId}] [keyId=${created.applicationKeyId}]`- );- }- if (error instanceof BadRequestError) throw error;- throw new BadRequestError({- message: `Failed to validate newly issued Datadog application key: ${getDatadogErrorMessage(error)}`- });- }-return created;};diff --git a/docs/documentation/platform/secret-rotation/datadog-application-key-secret.mdx b/docs/documentation/platform/secret-rotation/datadog-application-key-secret.mdxindex 37e1a15653..e0120417a0 100644--- a/docs/documentation/platform/secret-rotation/datadog-application-key-secret.mdx+++ b/docs/documentation/platform/secret-rotation/datadog-application-key-secret.mdx@@ -13,7 +13,7 @@ description: "Learn how to automatically rotate Datadog Service Account Applicat- Create a [Datadog Connection](/integrations/app-connections/datadog) with an API Key and a Service Account Application Key.- The Application Key used by the connection must have scopes that allow it to list users, and create and delete Application Keys on the target Service Account. For this use case,-you need to set `user_app_keys` under **API and Application Keys** and `service_account_writer`, `user_access_manage` and `user_access_read` under **Access Management**+you need to set `user_app_keys` under **API and Application Keys** and `service_account_write`, `user_access_manage` and `user_access_read` under **Access Management**## Create a Datadog Application Key Rotation in Infisicaldiff --git a/docs/integrations/app-connections/datadog.mdx b/docs/integrations/app-connections/datadog.mdxindex 1c3deb769e..ae31568b21 100644--- a/docs/integrations/app-connections/datadog.mdx+++ b/docs/integrations/app-connections/datadog.mdx@@ -77,7 +77,7 @@ Infisical supports the use of a Datadog [API Key](https://docs.datadoghq.com/accAssign the scopes required for your use case. On **Scope** click on **Edit**, so you can define the scopes you want. If this is left empty, the scope of this key will be the same as the service account.At minimum, the Application Key needs scopes to read users and manage Service Account Application Keys if you plan to use [Datadog Application Key Secret Rotation](/documentation/platform/secret-rotation/datadog-application-key-secret). For this use case,- you need to set `user_app_keys` under **API and Application Keys** and `service_account_writer`, `user_access_manage` and `user_access_read` under **Access Management**+ you need to set `user_app_keys` under **API and Application Keys** and `service_account_write`, `user_access_manage` and `user_access_read` under **Access Management**