Skip to content

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

884 B
Raw Blame
import { FieldGroup } from "@app/components/v3";
import { OrgPermissionSubjects } from "@app/context";
import { OrgPermissionSecretShareAction } from "@app/context/OrgPermissionContext/types";
import { withPermission } from "@app/hoc";

import { OrgSecretShareLimitSection } from "./OrgSecretShareLimitSection";
import { SecretSharingAllowShareToAnyone } from "./SecretSharingAllowShareToAnyone";
import { SecretSharingBrandingSection } from "./SecretSharingBrandingSection";

export const SecretSharingSettingsTab = withPermission(
  () => {
    return (
      <FieldGroup>
        <SecretSharingAllowShareToAnyone />
        <OrgSecretShareLimitSection />
        <SecretSharingBrandingSection />
      </FieldGroup>
    );
  },
  {
    action: OrgPermissionSecretShareAction.ManageSettings,
    subject: OrgPermissionSubjects.SecretShare,
    accessRestrictedMode: "dialog"
  }
);