Restricting a self-hosted Langfuse to internal users: when it matters
If your self-hosted Langfuse is reachable from the internet and only staff should use it, you need to restrict sign-in before anyone else finds the login page. The open-source MIT version includes SSO support, including the ability to enforce SSO for given email domains and to disable password sign-in, so the core restriction does not require an Enterprise license. Langfuse supports Auth.js providers such as Google, GitHub, Azure AD or Entra ID, Okta, Keycloak and generic OIDC, and the authentication documentation on Langfuse authentication and SSO describes the settings involved. Trace data often contains prompts, model responses and user content, so a public login form that accepts local passwords is a real exposure for most organizations, even when the application itself is current.
The exposure matters most when the instance has been deployed on a public address for convenience, when a reverse proxy or load balancer forwards traffic from the internet without an additional gate, or when the team has invited external collaborators or contractors who used personal email addresses. Before you change anything, confirm which sign-in methods are currently enabled, which email domains your staff use, and whether any local accounts were created during testing. Those accounts stay valid after you disable password sign-in unless you remove them, so the inventory is a required step, not a cleanup task for later.
Some controls sit on top of the open-source configuration and require an Enterprise license key. Organization creators, which determine who may create new organizations on the instance, are one example, and the Langfuse license key documentation lists the full set of gated features, including project-level RBAC roles and the SCIM provisioning API. Decide early whether you need those controls, because they change who can administer the instance. Network-level controls such as IP allowlisting or a VPN in front of the instance are also your responsibility to plan and verify, since they sit outside the application. Confirm each of these against your own environment and version before you treat the instance as restricted.
Access controls available and when each fits
This table compares the sign-in and network controls available for a self-hosted Langfuse instance, with the license requirement for each. Read it as a set of layers: identity controls decide who can sign in, and network controls decide who can reach the login page at all. For an instance exposed to the internet, the main takeaway is that the network layer and SSO domain enforcement are the controls to confirm first, because they work without a license key.
| Control | When it fits | License key needed |
|---|---|---|
| Password sign-in | Small test instances or break-glass admin access while SSO is being set up. Turn it off once SSO works for every user. | No |
| SSO with Auth.js providers | Company identity providers such as Google, Microsoft Entra ID, Okta, Keycloak or generic OIDC, so access follows existing offboarding. | No |
| Disable password sign-in | After SSO is verified for all admins, so no account can bypass the identity provider with a local password. | No |
| SSO enforced for email domains | When the instance should accept only company email domains, so external addresses are sent to the identity provider and refused. | No |
| Organization creator allowlisting | When several teams share one instance and only named administrators may create new organizations. | Yes |
| VPN or private network access | When the instance does not need public reach. Users connect through the corporate network, and the login page is not published. | No (depends on your network) |
| IP allowlisting at the load balancer | When users sit on fixed office or partner ranges. Confirm how your load balancer sees client addresses behind proxies. | No (depends on your network) |
| Private load balancer | When the instance must stay reachable only inside your cloud or data center, with internal DNS for users. | No (depends on your network) |
Setting up the lockdown in sequence
The sequence moves from a verified company sign-in to tighter controls, so each change is tested before the next one can lock out the people who administer the instance. Each step ends with a check you can run and record.
Confirm the identity provider and its Auth.js provider
Before touching Langfuse, confirm which identity provider your company uses and whether Langfuse supports it through an Auth.js provider. The supported list includes Google, GitHub, Azure AD or Entra ID, Okta, Auth0, Keycloak, OneLogin, JumpCloud, Authentik, AWS Cognito and generic OIDC. Ask your identity team for the client ID, client secret and issuer or callback values, and confirm the exact callback URL your instance must register. Done when the identity team has written down the provider type, the redirect URL and the group or domain rules that apply to company accounts.
Configure SSO and test a company login
Set the provider credentials in your self-hosted deployment configuration, redeploy, and sign in with a named company account from a browser that has no existing session. An administrator should confirm the user lands in the correct Langfuse organization with the expected role. Keep the existing local administrator session open as a fallback until this login succeeds. Done when a company account signs in and the login is recorded in your identity provider's sign-in log.
Enforce SSO for company email domains
Configure Langfuse to require SSO for your company email domains so that accounts on those domains cannot sign in with a password. Then test the boundary: sign in with a company-domain address that has a password credential and confirm it is refused and routed to SSO. Done when the company-domain password attempt is refused and the SSO path still works for the same account.
Disable password sign-in after an admin SSO login works
Only after an administrator has signed in through SSO in the step above, disable password sign-in for the instance. Keep a documented break-glass procedure in your runbook that states who can re-enable it and where the recovery credentials are stored. Test from an external account that is not in your company domain and confirm that password sign-in is refused and that no sign-up path creates a local account. Done when the external test is refused and an administrator still signs in through SSO.
Restrict organization creation
Review who can create organizations on the instance and limit that right to a named allowlist of administrators. Organization creators are an Enterprise license feature, so confirm your license covers this control before you plan around it. Test by signing in as an ordinary company user and confirm that the option to create an organization is absent or refused. Done when the allowlist is documented and a non-listed user cannot create an organization.
Add network-level controls
Place the instance behind controls that limit which networks can reach the web interface and APIs, such as a VPN, a private load balancer or an allowlist at the edge, as your architecture allows. Confirm that the database, ClickHouse and blob storage endpoints are not reachable from the internet at all. Test from an outside network that the login page is unreachable or refused, then test from an approved internal network that SSO sign-in still completes. Done when the external test fails, the internal test passes and the results are saved with the change record.
Re-test the full lockdown and record the evidence
Run every earlier check again in one pass after the final change: company SSO login, company-domain password refusal, external account refusal, organization creation refusal and the external network test. Ask the security or compliance owner to review the results and keep them with the deployment record. Repeat this pass after each upgrade or configuration change, since those can reset settings. Done when all checks pass in a single run and the evidence is stored where your auditors can find it.
How a sign-in request crosses the trust boundary
The diagram starts with a user on the internet who requests the Langfuse URL. The network control at the company edge decides whether the request reaches Langfuse Web at all, and Langfuse Web hands the user to the company identity provider, where the sign-in happens. Password sign-in is shown as disabled, so the identity provider is the only way in. Check that the returned identity is an allowed domain before a session is granted, and that the access rules you configure here match what the identity provider actually asserts.
Sign-in path from the internet through the network control to the company identity provider.
How SSO enforcement and domain rules decide who gets in
Access to a self-hosted Langfuse instance is decided by two things working together: which identity providers the instance accepts, and which email domains it will let through them. Langfuse supports SSO through Auth.js providers such as Google, GitHub, Azure AD or Entra ID, Okta, Keycloak and generic OIDC, and it can disable password sign-in or enforce SSO for given email domains. For an internal-only instance, the practical decision is to configure one company identity provider, enforce SSO for your company's email domain, and turn off the other sign-in paths so that a valid company login is the only way in. Before you change anything, write down every provider and domain you intend to allow, because the domain rule is what stops a personal account from the same provider from signing in.
Turning off password sign-in changes the position of existing local users and API keys, and this is the part you must confirm before a production change. Accounts created with email and password may stop being able to sign in once that method is disabled, and you need to know whether they are matched to the SSO identity for the same email address or simply locked out. API keys are a separate question, since they authenticate SDK and API calls rather than browser sign-in, so disabling password sign-in should not be assumed to revoke or preserve them. Check the current authentication and SSO documentation for the exact behavior for existing accounts and keys in your Langfuse version, and test the sequence on a non-production copy with a test local user and a test API key.
Run a short test matrix before you enforce anything on the live instance: one company account that should succeed, one personal account on the same provider that should be refused, one account from an unrelated domain, and one local account that existed before the change. Record what each sees on the sign-in page and in the audit trail if your plan includes audit logs. Also confirm the SSO callback URL and the provider's allowed redirect settings, because a mismatch there often looks like an access problem when it is a configuration problem. Keep a rollback path, such as a documented break-glass admin account, so that a misconfigured domain rule does not lock every operator out of the instance.
Security and operational considerations
Restricting sign-in is only as reliable as the identity path behind it. The cards below cover the failure modes that matter most once password sign-in is off and SSO is the front door, from emergency access to the admin surfaces that sit beside the UI.
Keep a break-glass admin path
Once password sign-in is disabled, a broken SSO configuration can lock every administrator out of the instance. Before you turn password sign-in off, decide who holds a recovery route, where its credentials are stored, and how it is tested. Confirm with your Langfuse version how a local administrator can be restored from the database or deployment configuration, and rehearse that path on a staging instance first.
Authentication docsTreat the identity provider as a single point of failure
Every user, including administrators, now depends on the identity provider being reachable and correctly configured. Check its availability, certificate and client secret rotation dates, and redirect URI settings as part of the Langfuse change calendar. Ask whether the identity team has a documented outage procedure that includes Langfuse.
Guard the license key and admin accounts
Enterprise features such as organization creators and the instance management API depend on a license key, so treat that key as a secret with a named owner and a storage location outside personal notes. Keep the number of instance administrators small, use named accounts rather than shared ones, and remove administrator rights when a person changes role.
License key docsLog sign-in events and changes
Restriction controls are only useful if you can see when they are bypassed or misused. Forward authentication logs from the Langfuse web container and the identity provider to your central log store, and alert on repeated failed sign-ins, new administrators and changes to domain or SSO settings. Confirm which audit events your edition records, since some audit logging requires an Enterprise license key.
Review organization creators regularly
Organization creators can establish new organizations inside the instance, which widens who can hold data. Keep the allowlist of creator accounts short, review it on a fixed schedule, and compare it against current staff in your identity provider. Remove accounts for contractors or leavers in the same process that deprovisions their directory access.
Keep admin APIs off the public path
The UI is not the only exposed surface. Confirm which administrative and management API routes your deployment serves, and block them at the load balancer or ingress for anything outside your administrative network. Test from an outside network that these routes do not respond, and repeat the test after each upgrade because routing rules can change between versions.
Questions teams ask before restricting access
Can we restrict a self-hosted Langfuse to internal users ourselves?
Yes, many teams do. The core controls, disabling password sign-in and enforcing SSO for specific email domains, are documented in Langfuse's authentication and SSO guide and are available in the MIT-licensed open source version. The work is manageable for an engineer who already runs the platform, but the risk sits in the details: confirming that every sign-in path is closed, checking who can create organizations, and verifying that the network layer blocks what the application layer does not. If your team has not run an identity integration before, plan extra time for testing with real accounts before you close the old path.
What does the work need from our identity team?
Your identity team needs to supply the identity provider details, the list of email domains that should be allowed, and a decision on who may sign in. Expect them to own the OIDC or SAML client registration, group or attribute mapping if you use it, and the offboarding path, since deprovisioning in the identity provider is what removes access in practice. Ask them to confirm how their provider handles users who already have a local Langfuse password, because those accounts need a plan before password sign-in is disabled. Their time is usually concentrated in the start and in the test sign-ins, not spread across the whole project.
How long does verification take, and where does the effort go?
The duration depends on the number of identity sources, the number of existing local accounts, and how many network paths reach the instance. No timeline is given here because it varies widely between environments. Effort generally concentrates in four places: agreeing the access model, configuring the identity provider and Langfuse together, testing sign-in, lockout and deprovisioning paths, and verifying that the instance cannot be reached through unintended routes. Ask any provider for a written test list that covers SSO sign-in, password sign-in attempts, organization creation, and direct requests that bypass the load balancer.
Which access controls need an Enterprise license key?
Per Langfuse's license key documentation, project-level RBAC roles, organization creators, the org management API with SCIM, and the instance management API require an Enterprise license key on self-hosted deployments. Domain-based SSO enforcement and disabling password sign-in are described in the authentication guide as available in the open source version, so confirm this against the version you run. The Self-Hosted Enterprise plan, which is custom priced, adds a named support engineer, solutions architect access and a support SLA. Ask Langfuse to confirm current feature gating for your exact version before you decide what the restriction design depends on.
Does the organization creator allowlist require a license?
Restricting who can create organizations is a control that matters on a shared instance, because an open sign-up path lets any authenticated user create new organizations and invite others. Langfuse lists organization creators among the features that need an Enterprise license key, so check the current license documentation before designing around it. If you cannot use that feature, the alternative is a tighter SSO domain rule plus a review of who holds admin rights. Confirm the behavior in a test instance before relying on it.
How does DeployOpen scope this work in writing?
DeployOpen agrees scope, deliverables and timelines in writing before work starts, and most engagements are fixed-scope. A written scope for this topic would normally name the instance and its hosting environment, the identity provider and its configuration owner, the access model you approve, whether the license tier is in place, the network controls in scope, and the test cases that count as done. A quote follows from that scope, and DeployOpen does not publish a price list. Ask for the scope document and the test list together, so you can see what you are paying to verify.
What should we ask for in a quote for this work?
Ask the provider to split the quote into the access design, the identity and Langfuse configuration, the network controls, and the verification and handover. Ask which items are one-time and which recur, such as a retest after an upgrade or a review when the identity provider changes. Also ask what the provider needs from your team and who signs off each step. Cost usually rises with the number of identity sources, the amount of existing local account data to migrate, and the number of network paths to close, so ask how each of those is priced.
Limits to confirm in your environment
Restricting sign-in is only as strong as the settings behind it. The items below are the points where a self-hosted Langfuse behavior depends on your identity provider, your release and your hosting platform, so confirm each one on a staging instance before changing production.
Auth.js provider support
Langfuse supports SSO through Auth.js providers such as Google, GitHub, Azure AD or Entra ID, Okta, Keycloak and generic OIDC. Confirm that your identity system is one of these, or that it speaks generic OIDC with the claims Langfuse expects. Check the exact provider configuration keys in the authentication docs for your release, because a mismatch often shows up only at the first sign-in.
Authentication docsDomain enforcement on every path
Confirm whether domain enforcement covers every sign-in path. Test password reset, invitation links, the email sign-in option if enabled, and any API or service account route. A rule that applies only to the login form leaves other doors open, so run each path with an address outside the allowed domain and record the result.
Existing local accounts
Local accounts created before you disable password sign-in may still hold valid credentials. Inventory them, decide which belong to people who should keep access, and confirm how disabling password sign-in affects those accounts. Keep at least one administrator path that works outside SSO in case your identity provider fails, and document how it is protected.
Network controls in your platform
Ask what your hosting platform provides for restricting ingress, such as security groups, load balancer allowlists, private endpoints or a VPN. Confirm that these controls apply to the web container and to any ingestion path the SDKs use. Network restriction and SSO are separate layers, so test both rather than assuming one covers the other.
Version requirements for your release
Confirm which Langfuse release you run and whether the settings you rely on exist in that version. The latest release supplied for this page is v4.63.0, published October 16, 2026. Check the release notes for changes to authentication settings before upgrading, and note that some governance features need an Enterprise license key.
Langfuse releasesAPI key behavior after lockdown
Confirm whether project API keys keep working after you disable password sign-in or enforce SSO. Most SDKs and automated pipelines authenticate with keys, not browser sessions, so a lockdown can break tracing without any visible error in the UI. Test ingestion from a representative SDK after the change, and plan a key rotation schedule that your team owns.
How DeployOpen scopes and delivers internal-only access for Langfuse
DeployOpen treats restricting a self-hosted Langfuse to internal users as a written, fixed-scope change to your identity, sign-in and network setup. We map who should reach the instance, which sign-in paths must close, and how the controls will be tested before anything changes in production.
How we scope
- Inventory every route into the instance, including public DNS, load balancer listeners and any existing shared sign-in pages.
- Agree which email domains and identity provider tenants count as company accounts, and who may create organizations.
- Confirm with the client whether project-level roles or org creator controls need an Enterprise license key before they are relied on.
- Put the scope, deliverables and timeline in writing before work starts, since most engagements are fixed-scope.
How we build
- Configure SSO for the chosen identity provider, restricted to company domains, and disable password sign-in once the path is proven.
- Set network-level controls such as ingress allowlists, private load balancers or VPN access, matched to your infrastructure.
- Review admin and organization creator accounts and remove access that no longer has a business owner.
- Test sign-in as an internal user, an external address and a former employee to confirm each control blocks what it should.
How we hand over
- Deliver a configuration record covering the identity provider settings, domain rules, network rules and admin account list.
- Document the rollback steps for SSO and password sign-in changes so operators can recover from a lockout.
- Walk your operators through how to add a domain, onboard a user and review admin access in the instance.
- Provide the test cases and their results so your security and compliance teams can review the evidence themselves.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, so access controls can be re-checked after Langfuse upgrades.
- Re-run the access tests after identity provider changes, network moves or Langfuse version updates that touch sign-in.
- Ask for a quote that separates one-time configuration from recurring review, testing and upgrade work.

