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
import { useFormContext } from "react-hook-form";
import { TSecretRotationV2Form } from "@app/components/secret-rotations-v2/forms/schemas";
import { ReviewField } from "@app/components/secret-rotations-v2/forms/shared";
import { SecretRotation } from "@app/hooks/api/secretRotationsV2";
import { SecretRotationReviewSection } from "./shared";
export const DatadogApplicationKeySecretRotationReviewFields = () => {
const { watch } = useFormContext<
TSecretRotationV2Form & {
type: SecretRotation.DatadogApplicationKeySecret;
}
>();
const [parameters, { applicationKeyId, applicationKey }] = watch([
"parameters",
"secretsMapping"
]);
return (
<>
<SecretRotationReviewSection label="Parameters">
<ReviewField label="Service Account ID">{parameters.serviceAccountId}</ReviewField>
</SecretRotationReviewSection>
<SecretRotationReviewSection label="Secrets Mapping">
<ReviewField label="Application Key ID">{applicationKeyId}</ReviewField>
<ReviewField label="Application Key">{applicationKey}</ReviewField>
</SecretRotationReviewSection>
</>
);
};