Skip to content

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

901 B
Raw Blame
import {
  CreateGcpServiceAccountKeyRotationSchema,
  GcpServiceAccountKeyRotationGeneratedCredentialsSchema,
  GcpServiceAccountKeyRotationSchema,
  UpdateGcpServiceAccountKeyRotationSchema
} from "@app/ee/services/secret-rotation-v2/gcp-service-account-key";
import { SecretRotation } from "@app/ee/services/secret-rotation-v2/secret-rotation-v2-enums";

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

export const registerGcpServiceAccountKeyRotationRouter = async (server: FastifyZodProvider) =>
  registerSecretRotationEndpoints({
    type: SecretRotation.GcpServiceAccountKey,
    server,
    responseSchema: GcpServiceAccountKeyRotationSchema,
    createSchema: CreateGcpServiceAccountKeyRotationSchema,
    updateSchema: UpdateGcpServiceAccountKeyRotationSchema,
    generatedCredentialsSchema: GcpServiceAccountKeyRotationGeneratedCredentialsSchema
  });