-
Notifications
You must be signed in to change notification settings - Fork 9.8k
docs: security notice #10555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+68
−0
Merged
docs: security notice #10555
Changes from 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
f641722
docs-security-notice
mendonk 0d36b16
Apply suggestions from code review
mendonk 865f05f
Merge branch 'main' into docs-security-page
mendonk c2d4792
code-review
mendonk 670ffe6
link-to-security-bulletin
mendonk bac6d07
Merge branch 'main' into docs-security-page
mendonk 1f66964
Apply suggestions from code review
mendonk c6af75c
Merge branch 'main' into docs-security-page
mendonk 40f9585
Merge branch 'main' into docs-security-page
mendonk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| --- | ||
| title: Security | ||
| slug: /security | ||
| --- | ||
|
|
||
| The Langflow UI is an IDE and code execution platform, which means that Langflow is inherently capable of executing arbitrary, | ||
| developer-provided code. | ||
| By design, the Langflow UI includes a code editor allowing developers to author and execute arbitrary Python with full access to the host | ||
| Langflow backend process, filesystem, and network. | ||
| In addition, various components wrap and make use of code execution, in some cases using AI models to generate the code to be executed based | ||
| on user input. | ||
|
|
||
| Langflow does not enforce isolation between users within a single Langflow process, nor does it restrict access to the local disk or network resources. Flow visibility and user access controls are designed for usability, not security enforcement. Users can access underlying database connections and system resources directly. For multi-tenant deployments, Langflow relies on infrastructure-level security rather than application-level isolation, which means it's your responsibility to enforce tenant isolation. | ||
|
mendonk marked this conversation as resolved.
Outdated
|
||
|
|
||
| ## Secure Langflow during local development | ||
|
|
||
| Langflow is a code execution platform with full access to your local system. | ||
| You are responsible for ensuring the safety of flows you execute. | ||
| When Langflow will execute untrusted or LLM-generated code, consider using isolated or containerized execution environments. For more information, see [Containerize a Langflow application](/develop-application). | ||
|
mendonk marked this conversation as resolved.
Outdated
|
||
|
|
||
| ## Secure first-party deployments | ||
|
|
||
| When you are serving APIs backed by flows that you or your organization authored, you are responsible for ensuring Langflow-based APIs provide security to your end users. | ||
|
|
||
| Use a secure API gateway to provide authentication and authorization, ensure user data is appropriately isolated, and sanitize inputs and outputs against XSS and injection attacks. | ||
|
mendonk marked this conversation as resolved.
Outdated
|
||
|
|
||
| For more information on setting up a reverse proxy, see [Deploy Langflow with Nginx and SSL](/deployment-nginx-ssl). | ||
| For more information on authentication configuration, see [API keys and authentication](/api-keys-and-authentication). | ||
|
|
||
| ## Secure third-party deployments | ||
|
|
||
| When you are providing Langflow as a service to third parties, you must assume that any code executed by Langflow is potentially malicious. | ||
|
mendonk marked this conversation as resolved.
Outdated
|
||
|
|
||
| Langflow provides no isolation between tenants, so it's your responsibility to enforce isolation at the infrastructure level. | ||
|
|
||
| You must ensure process-level isolation to prevent tenants from sharing a single Langflow process, disk-level isolation to prevent shared access to writable persistent storage, network-level isolation to prevent access to private networks, and database-level isolation to prevent access to or modification of shared database resources. | ||
|
mendonk marked this conversation as resolved.
Outdated
|
||
|
|
||
| Authentication and authorization should be provided and enforced outside of the Langflow container. | ||
|
mendonk marked this conversation as resolved.
Outdated
|
||
| For shared services such as databases, enforce access limitations externally through credentials and security policies. | ||
|
mendonk marked this conversation as resolved.
Outdated
|
||
|
|
||
| For more information, see [Best practices for Langflow on Kubernetes](/deployment-prod-best-practices). | ||
|
|
||
| ## Security bulletin | ||
|
|
||
| For the most up-to-date information about security vulnerabilities, fixes, and CVEs, see the [Langflow Security Policy](https://github.com/langflow-ai/langflow/blob/main/SECURITY.md) and [GitHub Security Advisories](https://github.com/langflow-ai/langflow/security/advisories). | ||
|
mendonk marked this conversation as resolved.
Outdated
|
||
|
|
||
| If you discover a security vulnerability in Langflow, please report it responsibly through the [GitHub Security tab](https://github.com/langflow-ai/langflow/security). Do not publicly disclose vulnerabilities until they have been assessed and resolved. | ||
|
mendonk marked this conversation as resolved.
Outdated
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.