Skip to content

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

978 B
Raw Blame
import {
  CreateDatadogApplicationKeySecretRotationSchema,
  DatadogApplicationKeySecretRotationGeneratedCredentialsSchema,
  DatadogApplicationKeySecretRotationSchema,
  UpdateDatadogApplicationKeySecretRotationSchema
} from "@app/ee/services/secret-rotation-v2/datadog-application-key-secret";
import { SecretRotation } from "@app/ee/services/secret-rotation-v2/secret-rotation-v2-enums";

import { registerSecretRotationEndpoints } from "./secret-rotation-v2-endpoints";

export const registerDatadogApplicationKeySecretRotationRouter = async (server: FastifyZodProvider) =>
  registerSecretRotationEndpoints({
    type: SecretRotation.DatadogApplicationKeySecret,
    server,
    responseSchema: DatadogApplicationKeySecretRotationSchema,
    createSchema: CreateDatadogApplicationKeySecretRotationSchema,
    updateSchema: UpdateDatadogApplicationKeySecretRotationSchema,
    generatedCredentialsSchema: DatadogApplicationKeySecretRotationGeneratedCredentialsSchema
  });