Skip to content

Feature: Adds env var SECRET_KEY_DIR support #7868

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

GarrettGeorge
Copy link
Contributor

@GarrettGeorge GarrettGeorge commented Apr 30, 2025

Currently Langflow's secret key is placed in the same directory as local files such as uploaded files, profile pictures, etc. In order to have these local files shared across instances, many companies like mine, do not want the secret key being saved to the filesystem.

There is some value to saving it to file in case the environment variable LANGFLOW_SECRET_KEY gets unset or changed. However, it simply doesn't need to be in the same place as the aforementioned local files.

This change allows Langflow's deployment to specify LANGFLOW_SECRET_KEY_DIR to set the file path of the secret_key file.

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. enhancement New feature or request labels Apr 30, 2025
@GarrettGeorge GarrettGeorge force-pushed the feature/secret-key-dir-env-var branch from e5396c6 to c0c75c7 Compare April 30, 2025 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant