Skip to content

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

901 B
Raw Blame
import { SecretRotation } from "@app/ee/services/secret-rotation-v2/secret-rotation-v2-enums";
import {
  CreateSnowflakeUserKeyPairRotationSchema,
  SnowflakeUserKeyPairRotationGeneratedCredentialsSchema,
  SnowflakeUserKeyPairRotationSchema,
  UpdateSnowflakeUserKeyPairRotationSchema
} from "@app/ee/services/secret-rotation-v2/snowflake-user-key-pair";

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

export const registerSnowflakeUserKeyPairRotationRouter = async (server: FastifyZodProvider) =>
  registerSecretRotationEndpoints({
    type: SecretRotation.SnowflakeUserKeyPair,
    server,
    responseSchema: SnowflakeUserKeyPairRotationSchema,
    createSchema: CreateSnowflakeUserKeyPairRotationSchema,
    updateSchema: UpdateSnowflakeUserKeyPairRotationSchema,
    generatedCredentialsSchema: SnowflakeUserKeyPairRotationGeneratedCredentialsSchema
  });