Skip to content

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

979 B
Raw Blame
import { useOrganization, useServerConfig } from "@app/context";
import { CrossProjectSharingSection } from "@app/pages/project/SettingsPage/components/CrossProjectSharingSection";

import { PointInTimeVersionLimitSection } from "../PointInTimeVersionLimitSection";
import { PreferencesSection } from "../PreferencesSection";
import { SecretDetectionIgnoreValuesSection } from "../SecretDetectionIgnoreValuesSection/SecretDetectionIgnoreValuesSection";
import { SecretValidationRulesSection } from "../SecretValidationRulesSection";

export const PoliciesTab = () => {
  const { config } = useServerConfig();
  const { currentOrg } = useOrganization();

  return (
    <div>
      <PreferencesSection />
      <SecretValidationRulesSection />
      {currentOrg.allowCrossProjectSecretSharing && <CrossProjectSharingSection />}
      <PointInTimeVersionLimitSection />
      {config.paramsFolderSecretDetectionEnabled && <SecretDetectionIgnoreValuesSection />}
    </div>
  );
};