🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
chore(cloud): allow selection of HIPAA cloud region on sign-in/sign-up page (#9024)
Marc Klingen0cbbf94568b0
diff --git a/web/src/features/auth/components/AuthCloudRegionSwitch.tsx b/web/src/features/auth/components/AuthCloudRegionSwitch.tsxindex a006073e59..e9d75e84e8 100644--- a/web/src/features/auth/components/AuthCloudRegionSwitch.tsx+++ b/web/src/features/auth/components/AuthCloudRegionSwitch.tsx@@ -34,26 +34,23 @@ const regions =flag: "🚧",},]- : env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === "HIPAA"- ? [- {- name: "HIPAA",- hostname: "hipaa.cloud.langfuse.com",- flag: "⚕️",- },- ]- : [- {- name: "US",- hostname: "us.cloud.langfuse.com",- flag: "🇺🇸",- },- {- name: "EU",- hostname: "cloud.langfuse.com",- flag: "🇪🇺",- },- ];+ : [+ {+ name: "US",+ hostname: "us.cloud.langfuse.com",+ flag: "🇺🇸",+ },+ {+ name: "EU",+ hostname: "cloud.langfuse.com",+ flag: "🇪🇺",+ },+ {+ name: "HIPAA",+ hostname: "hipaa.cloud.langfuse.com",+ flag: "⚕️",+ },+ ];export function CloudRegionSwitch({isSignUpPage,@@ -113,6 +110,23 @@ export function CloudRegionSwitch({))}</SelectContent></Select>++ {env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === "HIPAA" && (+ <div className="mt-2 rounded-md bg-muted/50 p-3 text-xs text-muted-foreground">+ <p>+ The Business Associate Agreement (BAA) is only effective on the+ Cloud Pro and Teams plans.{" "}+ <a+ href="https://langfuse.com/security/hipaa"+ target="_blank"+ rel="noopener noreferrer"+ className="text-primary-accent underline hover:text-hover-primary-accent"+ >+ Learn more about HIPAA compliance →+ </a>+ </p>+ </div>+ )}</div></div>);@@ -136,30 +150,42 @@ const DataRegionInfo = () => (</DialogHeader><DialogBody><DialogDescription className="flex flex-col gap-2">- <p>Langfuse Cloud is available in two data regions:</p>+ <p>Langfuse Cloud is available in three data regions:</p><ul className="list-disc pl-5"><li>US: Oregon (AWS us-west-2)</li><li>EU: Ireland (AWS eu-west-1)</li>+ <li>+ HIPAA: Oregon (AWS us-west-2) - HIPAA-compliant region (available+ with Pro and Teams plans)+ </li></ul><p>Regions are strictly separated, and no data is shared acrossregions. Choosing a region close to you can help improve speed andcomply with local data residency laws and privacy regulations.- Contact us to onboard into a HIPAA compliant region.</p><p>- You can have accounts in both regions and data migrations are- available on Team plans.+ You can have accounts in multiple regions. Each region requires a+ separate subscription.</p><p>- For more information, visit{" "}+ Learn more about{" "}+ <a+ href="https://langfuse.com/security/data-regions"+ target="_blank"+ rel="noopener noreferrer"+ className="text-primary-accent underline"+ >+ data regions+ </a>{" "}+ and{" "}<ahref="https://langfuse.com/docs/data-security-privacy"target="_blank"rel="noopener noreferrer"className="text-primary-accent underline">- langfuse.com/security+ data security & privacy</a>.</p>diff --git a/web/src/pages/auth/sign-in.tsx b/web/src/pages/auth/sign-in.tsxindex 380043cc88..441071140e 100644--- a/web/src/pages/auth/sign-in.tsx+++ b/web/src/pages/auth/sign-in.tsx@@ -38,7 +38,6 @@ import { Code } from "lucide-react";import { useRouter } from "next/router";import { captureException } from "@sentry/nextjs";import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";-import { useSupportDrawer } from "@/src/features/support-chat/SupportDrawerProvider";const credentialAuthForm = z.object({email: z.string().email(),@@ -405,7 +404,6 @@ export default function SignIn({runningOnHuggingFaceSpaces,}: PageProps) {const router = useRouter();- const { setOpen: setSupportDrawerOpen } = useSupportDrawer();useHuggingFaceRedirect(runningOnHuggingFaceSpaces);// handle NextAuth error codes: https://next-auth.js.org/configuration/pages#sign-in-page@@ -576,12 +574,12 @@ export default function SignIn({If you are experiencing issues signing in, please force refresh thispage (CMD + SHIFT + R) or clear your browser cache. We are workingon a solution.{" "}- <span+ <a+ href="mailto:[email protected]"className="cursor-pointer whitespace-nowrap text-xs font-medium text-primary-accent hover:text-hover-primary-accent"- onClick={() => setSupportDrawerOpen(true)}>(contact us)- </span>+ </a></div>)}