Self-hosted Langfuse for SOC 2 evidence

A self-hosted Langfuse can supply access, logging, retention and backup evidence for a SOC 2 scope, but the platform does not make you compliant and some controls need the Enterprise license.

On this page

Self-hosted Langfuse for SOC 2 evidence: what the platform covers and what it does not

If your LLM traces fall inside a SOC 2 scope, you need evidence that access is controlled, activity is logged, retention is enforced, and data is encrypted and backed up. Self-hosted Langfuse supplies configurable controls and evidence, not an attestation. No platform makes a system SOC 2 compliant on its own. A SOC 2 examination is performed by an independent CPA firm, and the report describes your organization's system, its controls and, for a Type 2 report, how those controls operated over a period.

The AICPA 2017 Trust Services Criteria define the scope. Security is covered by the common criteria CC1 to CC9, which apply to every SOC 2. The availability, processing integrity, confidentiality and privacy categories are added only when they are in scope. For an LLM trace store, availability and confidentiality are the categories most often considered, because the platform's uptime and the handling of prompts and outputs both matter to customers. Read the criteria themselves (see the AICPA 2017 Trust Services Criteria) and map each one to a named Langfuse setting, a role, a log source or a runbook. Points of focus are guidance, not separate requirements, so document how you address the ones that fit your design.

DeployOpen prepares the systems, configuration and evidence that an auditor will ask for, including the access model, log exports, retention settings, backup test records and change history. DeployOpen does not issue SOC 2 reports, attestations or certifications. Before scoping work, confirm with your auditor which categories are in scope, whether the Langfuse instance is a subservice organization or part of your system, and which evidence periods the examination will cover. Those answers decide how much of the work is design and how much is ongoing operation.

Mapping SOC 2 common criteria to Langfuse capabilities and configuration

This table maps SOC 2 criteria areas to the Langfuse capability that supports each one, the configuration an assessor will expect to see, and whether the feature needs the Enterprise license key. Read it as a starting point for your control matrix, then confirm each row against your own deployment version. The main takeaway is that SSO, core tracing and the open source feature set run on the MIT version, while RBAC, audit logs, retention and masking need the Enterprise key.

Requirement areaLangfuse capabilityConfiguration neededEnterprise license status
SSO and access control (CC6 logical access)SSO through supported identity providers such as Okta, Entra ID, Google and generic OIDCConfigure the provider, enforce SSO for company email domains and set AUTH_DISABLE_USERNAME_PASSWORD=trueNo
Role-based access (CC6 logical access)Project-level RBAC roles limit what each user can view or changeDefine roles per project, map groups from your identity provider and review assignments on a set scheduleYes
Protected prompt labels (CC6 change control)Restricts who can change prompts assigned to protected labelsDecide which labels are protected, such as production, and limit edit rights to named ownersYes
Audit logs (CC7 monitoring)Records administrative and configuration activity in the instanceEnable logging, forward or export records to your SIEM and set who reviews them and how oftenYes
Data retention policies (confidentiality and privacy, where in scope)Retention policies remove trace data after a configured periodSet retention per project to match your data classification and document the period in your policyYes
Server-side data masking (confidentiality and privacy, where in scope)Masks sensitive fields on the server before they are stored or displayedDefine masking rules for known personal data fields and test them with sample tracesYes
Encryption (CC6 logical and physical access)Encryption depends on your PostgreSQL, ClickHouse and blob storage settings, not on a Langfuse licenseEnable TLS for user and service traffic, encrypt data stores at rest and confirm key ownership with your infrastructure teamNo
Backups (availability A1)Langfuse does not back up its data stores for you; backups are taken on PostgreSQL, ClickHouse and blob storageSchedule backups for each store, test restores and record recovery results as evidenceNo

How SSO and role-based access satisfy logical access evidence

Self-hosted Langfuse supports single sign-on through Auth.js providers, including Entra ID, Okta, Keycloak, Google and generic OIDC. Identity sign-in is handled by your identity provider, so the evidence an auditor reviews sits largely in that provider's configuration. Langfuse's authentication documentation lists the supported providers and the environment settings for each.

  • Provider configuration: Export the OIDC or SAML client settings, redirect URIs and the sign-in policy from the identity provider, and show the Langfuse settings that point at it.
  • Group or assignment rules: Document which users or groups can reach the Langfuse application and who approves changes to those assignments.
  • Generic OIDC coverage: If your provider is not on the named list, confirm that it works through generic OIDC and test the sign-in path before relying on it.
  • Session and token behavior: Confirm session lifetimes and sign-out behavior with the provider's own settings, since Langfuse inherits them.
  • Test evidence: Keep dated screenshots or logs of a successful sign-in and a denied sign-in for a user outside the assigned group.

Before design, check the current provider list and settings in the authentication documentation for your release, and confirm with your auditor which of these artifacts they will sample.

Evidence Langfuse produces for an auditor and how to keep it

A SOC 2 examination tests whether controls operated over a period, so the evidence you keep matters as much as the settings themselves. The cards below list the records a self-hosted Langfuse instance can produce, where they come from and how to retain them through the observation period. The auditor decides whether the evidence is sufficient for each control.

Identity provider configuration exports

Export the SSO configuration in force for the instance, including the provider type (Okta, Entra ID, Keycloak or generic OIDC), the enforced email domains and whether password sign-in is off through AUTH_DISABLE_USERNAME_PASSWORD. Store each export with a date and the change ticket that approved it. Check that the exported settings match what the identity team reports, because an auditor will compare the two.

SSO docs

Role and membership snapshots

Record periodic snapshots of organization and project members with their roles. Project-level RBAC roles need an Enterprise license key, so without one your access evidence rests on the organization structure alone. Take the snapshot at fixed intervals across the observation period, and keep joiner and leaver tickets that explain each change. Compare the snapshot against the HR or identity provider list to show that removed staff lost access.

Audit log exports (Enterprise)

Audit logs are an Enterprise feature, so confirm the license covers them before you commit the control design to them. Export the logs on a schedule to storage your security team controls, and test that a sample export contains the actor, action and timestamp for a known change. Ask the auditor which events they expect to see, since sufficiency depends on the control you describe.

License key docs

Retention policy settings and change records

Keep a dated record of the data retention policy configured for each project, which also requires an Enterprise license key. Retain the change record for every edit, showing who made it and why. Pair these with the configuration export so the auditor can see the retention period that applied at each point in time, not only the current value.

Backup job records and restore tests

Keep logs from each scheduled backup of PostgreSQL, ClickHouse and blob storage, along with the restore tests that proved the copies can be used. A backup run that was never restored is weak evidence, so record the date, scope and outcome of each restore test. Confirm the backup method and retention with your database and storage owners, since Langfuse does not define them for your environment.

Upgrade change records and version pins

Keep a change record for each Langfuse upgrade, with the version before and after, the migration output and the approval. Pin the image or chart version in version control so the running release can be shown for any date. Major upgrades change the data model and need their own record. Use the release history on GitHub to confirm the version you tested and the version you deployed.

Langfuse releases

How Langfuse Web, Worker, PostgreSQL, ClickHouse and blob storage sit inside the SOC 2 boundary

The diagram starts with users and applications outside the boundary. Users sign in through an SSO provider, and applications send OpenTelemetry traces to the Langfuse Web container at the /api/public/otel endpoint. Inside your infrastructure, Web hands work to the Worker, which processes events and writes to PostgreSQL, ClickHouse and S3-compatible blob storage, with Redis or Valkey coordinating the queue. Check each arrow that crosses the boundary for encryption in transit, and confirm that backups cover every store that holds trace data.

Trace data, metadata and user access paths for a self-hosted Langfuse inside a SOC 2 scope.

Configuration sequence for a SOC 2 scoped Langfuse

This sequence turns a self-hosted Langfuse into a system that sits inside a defined SOC 2 boundary, with each control configured, tested and recorded so that the evidence exists when the auditor asks for it. The order matters because licensing, identity and access decisions shape every later step.

  1. Define the system boundary and in-scope categories

    Your compliance lead, with the platform owner, writes down which Langfuse components, data stores, environments and users fall inside the SOC 2 system description, including the web and worker containers, PostgreSQL, ClickHouse, Redis or Valkey and blob storage. The team also decides which Trust Services Categories are in scope. Security is always covered through the common criteria, and the other four categories are added only when they apply. The step is done when the boundary and category choices are approved in writing and can be read against the system description your auditor will evaluate. Confirm the exact framing with your SOC 2 auditor before going further.

  2. Choose the deployment and confirm the license tier

    The platform team selects the deployment pattern, such as Kubernetes with Helm or a Terraform-based deployment, and checks the scaling and resource guidance for each data store. Then the team lists every control it expects to rely on and checks each one against the license key documentation. Several controls, including project-level RBAC roles, data retention policies, audit logs, server-side data masking and the org management API with SCIM, require an Enterprise license key. The step closes with a written tier decision, signed off by the owner of the control set, so the team does not discover a missing feature during the audit period.

  3. Configure SSO and disable password sign-in

    The identity team connects Langfuse to the organization's identity provider using one of the supported Auth.js providers or generic OIDC, and maps users and groups to the expected access levels. Once sign-in through the provider is tested, the team disables username and password sign-in with the AUTH_DISABLE_USERNAME_PASSWORD setting, so that access is governed by the identity provider's joiner, mover and leaver processes. The step is complete when a test user can sign in through SSO, a password login attempt is refused, and the configuration change is recorded in the change log. Confirm the exact provider options your plan supports before you rely on them.

  4. Define RBAC roles and access reviews

    Working from the access model in the system description, the security team defines which people hold administrative, project, read-only and prompt-editing roles, and which groups receive them. If the organization needs project-level RBAC roles, this is the point where the Enterprise license matters. The team documents each role, its owner and the approval path for granting it. The step closes when role assignments match the approved matrix, and a first access review has been run and its results stored. Access reviews repeat on a schedule that the organization sets and writes into its own policy.

  5. Set retention and configure masking where supported

    The data owner decides how long traces, scores and related records are kept, based on the organization's retention policy and any contractual or regulatory duties that apply to the data. Where the Enterprise license is in place, the team configures the retention policy in Langfuse and tests that older data is removed as expected. Where the organization handles personal or sensitive data in prompts, the team configures server-side masking if the license supports it, and documents any gaps that remain. The step is done when the retention settings are documented, one test project shows the expected deletion behavior and the masking approach is recorded in the control narrative.

  6. Set backup schedules and run restore tests

    The platform team sets backup schedules for PostgreSQL, ClickHouse and blob storage, and for any configuration that cannot be rebuilt from code. Backups must cover every store that holds Langfuse data, and retention of the backups themselves should match the retention policy. A backup that has never been restored is not evidence of recoverability, so the team runs a restore into a separate environment and checks that traces, prompts and users come back intact. The step closes with a restore record that shows the date, the operator, the data checked and the outcome, stored with the other evidence.

  7. Pin versions and plan upgrades

    The platform owner pins the Langfuse version, the Helm chart version and the data store versions in configuration, so that changes happen only through the change process. Upgrade notes are read before any version change, especially major upgrades that move the data model or require new ClickHouse, PostgreSQL or Redis versions. Minor and patch updates within a major version are applied through the change process with a rollback plan. The step is complete when the running versions match the pinned list, and each upgrade plan names the test environment, the approver and the rollback steps. Confirm supported version combinations against the upgrade guidance before you schedule a change.

  8. Collect evidence on a fixed cadence

    The compliance lead sets a recurring evidence calendar that covers access reviews, SSO and password-login checks, retention runs, backup and restore tests, version reviews and change records. Each item is stored with a date, an owner and a reference to the control it supports. The team also keeps the system description current when the boundary or configuration changes. The step is done when the first full cycle of evidence is collected, gaps are logged with owners, and the auditor has confirmed the format and period they expect. The work depends on your own controls and your auditor's requirements, so the calendar should be built from those, not from this sequence.

What Langfuse does not cover for a SOC 2 report

Running Langfuse inside your SOC 2 scope gives you controls and evidence, but it does not produce the examination. The cards below cover the parts that stay with your organization, your auditor and your operating team.

The SOC 2 report and opinion

A SOC 2 report is issued by an independent CPA firm after examining your system description and controls. Langfuse cannot produce that opinion, and a Type 1 report covers control design as of a date while a Type 2 report covers operating effectiveness over a period. Ask your auditor which criteria and period apply, and confirm early which Langfuse evidence they will accept, such as exported audit log records, role assignments and retention settings.

AICPA SOC 2 overview

Policies, risk assessment and personnel

Written security policies, a documented risk assessment and personnel controls such as background checks, onboarding and offboarding sit outside any software product. Auditors will test whether these exist and are followed, for example whether an departing engineer's Langfuse access is removed on the same day as other systems. Your organization must own these documents and their review cycle.

Vendor management for infrastructure

Your self-hosted Langfuse runs on cloud accounts, data centers and managed database or storage services that you contract for. Each of these is a subservice provider whose own controls matter to your report. Collect their SOC reports or equivalent assurance, record the carve-out or inclusion decision with your auditor, and confirm the Langfuse telemetry settings you choose so no unplanned data leaves your environment.

The Enterprise license decision

Project-level RBAC roles, audit logs, data retention policies and server-side data masking require an Enterprise license key on self-hosted Langfuse. Without that key, your access and logging controls may not match what you describe in the system description. Decide whether these controls are in scope before the examination period starts, and record the purchase, license key handling and renewal as part of your vendor and change records.

Langfuse license key docs

Ongoing backups and monitoring

A control that exists on the day of review is not enough for a Type 2 opinion. Backups of PostgreSQL, ClickHouse and blob storage must run on schedule, be restore-tested, and leave a dated record. Monitoring of the Langfuse Web and Worker containers and alerting must be reviewed, and upgrade changes must follow your change management process. Assign owners and build recurring evidence collection for each of these.

What a SOC 2 evidence project for self-hosted Langfuse involves

Is the MIT-licensed Langfuse version enough for a SOC 2 examination?

The MIT version can support a SOC 2 examination, but several controls auditors commonly look for sit behind the Enterprise license key. Langfuse states that all core features and APIs are available in the MIT-licensed open source version without limits. The features that need a key include project-level RBAC roles, protected prompt labels, data retention policies, audit logs, server-side data masking and the org management API with SCIM. Whether the open-source controls satisfy your criteria depends on your system description and risk assessment, which the auditor reviews. Confirm the license split against the Langfuse LICENSE file and your planned controls before you decide.

Which Langfuse controls need the Enterprise license key for SOC 2 evidence?

Map each control your system description relies on to a feature, then check whether that feature needs a key. Per Langfuse's license key documentation, the Enterprise features include:

  • Project-level RBAC roles for separating access by team
  • Audit logs that record administrative actions
  • Data retention policies that enforce how long traces are kept
  • Server-side data masking for sensitive fields
  • Protected prompt labels and the org management API with SCIM for provisioning

SSO through Auth.js providers, including Okta, Entra ID and Keycloak, is documented for self-hosted instances, and password sign-in can be disabled with AUTH_DISABLE_USERNAME_PASSWORD=true. Confirm current feature availability in the license key documentation before you commit to a control design.

How long does the Langfuse configuration work for SOC 2 take?

No duration figure is published in the researched sources for this work, so treat any number as a planning assumption until it is scoped. The effort depends on how many controls need evidence, whether SSO and provisioning must be integrated with your identity provider, how many projects and teams need separate roles, and whether the deployment already exists or must be built in your cloud account or data center. Retention rules, masking patterns and log export also add work because each needs testing against real trace shapes. A written scope should list each control, the owner, the evidence location and the verification step, so the timeline follows from that list.

What does a SOC 2 evidence project cost and what drives the price?

DeployOpen does not publish a price list, and a quote follows from the written scope. The main cost components are planning the control set, deployment and hardening, SSO and access design, configuring Enterprise features if you license them, evidence collection procedures, and testing. Costs rise with the number of controls in scope, the number of identity providers and projects, the size of the ClickHouse and PostgreSQL estate, and the number of auditor requests to answer. Some costs recur, such as upgrades, access reviews and evidence refreshes during the audit period. Ask each bidder to separate one-time setup from recurring support and to state which license costs are your own.

What does the client's team need to provide for the Langfuse SOC 2 work?

The work needs decisions and access from your team before the build starts. Expect to provide:

  • A named owner for the system description and the control list
  • Your identity provider, group structure and an agreed role model for projects
  • Infrastructure access in your cloud account, data center or air-gapped network, plus the existing SOC 2 policies you already operate
  • Retention periods and masking rules agreed with compliance and data owners
  • Access to ticketing, log storage and the people who approve changes

Your compliance team should also confirm which Trust Services Criteria categories are in scope, since the security common criteria apply to every SOC 2 while the other four categories are added only when included.

Can an internal platform team set up Langfuse for SOC 2 on its own?

An internal team can do the work alone if it already runs Kubernetes or VM-based services, manages PostgreSQL and ClickHouse, and has someone who understands SOC 2 control design. The harder parts are usually not the installation. They are writing control descriptions that match what the system actually does, producing repeatable evidence for access reviews and change records, and testing that retention and masking behave as documented. Langfuse documents Docker Compose on a single VM for testing only, and production setups on Kubernetes with Helm or Terraform on AWS, Azure and GCP. Assess your team's capacity against the scope list, and consider a partner for the control design and evidence review if those skills are missing.

What should a quote for Langfuse SOC 2 evidence include?

A useful quote lists the scope in writing before any work starts, along with deliverables and acceptance criteria. Ask for:

  • The control list, with each control mapped to a Langfuse feature and its license requirement
  • The architecture to be built, including Web, Worker, PostgreSQL, ClickHouse, Redis or Valkey and blob storage
  • SSO and provisioning integration, with the identity provider versions named
  • Evidence procedures, retention and backup tests, and a handover to your auditor
  • Upgrade responsibilities, including the major-version migration path to Langfuse v4 and its ClickHouse and PostgreSQL requirements
  • Recurring support terms, and any Langfuse license costs listed separately

DeployOpen prepares systems and evidence for assessments, but independent auditors issue the SOC 2 report.

How DeployOpen scopes, configures and documents Langfuse SOC 2 evidence

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For Langfuse, we start by agreeing which trust services criteria and which systems fall in your SOC 2 boundary, then build and document the controls that produce the evidence your auditor will ask for.

How we scope

  • We agree in writing which Langfuse components, data stores and user groups sit inside your SOC 2 system boundary.
  • We map each planned control, such as SSO, role-based access, retention and backups, to the criteria your auditor expects to see.
  • We confirm early which features need an Enterprise license key, so licensing cost is visible before the build starts.

How we build

  • We deploy Langfuse Web, Langfuse Worker, PostgreSQL, ClickHouse, Redis or Valkey and S3-compatible storage in your environment.
  • We configure SSO with your identity provider and can disable password sign-in so access is governed centrally.
  • We set up audit logging, retention, encryption and backup jobs, then test restores and access reviews against the documented design.

How we hand over

  • We deliver a control narrative and system description that describe how each Langfuse control operates in your environment.
  • We provide evidence procedures showing where logs, access lists, retention settings and backup results are stored and how to export them.
  • We walk your compliance and security teams through the evidence set so they can review it before a Type 1 or Type 2 examination.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after the fixed-scope engagement ends.
  • We plan Langfuse version upgrades with you so control configuration and evidence stay consistent across releases.
  • We can retest controls on a schedule you agree, so gaps are found before your auditor's observation period.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.