Skip to content
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

feat: Added alembic log path as env var change #4272

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

devinbost
Copy link

For OpenShift, we needed a way to override the default alembic log directory with a path that exists on a non-read-only filesystem (i.e. on a mounted path). This change (if it does what it's intended to do) will enable that.

Intended to fix: #4235

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. enhancement New feature or request labels Oct 24, 2024
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Oct 24, 2024
@ogabrielluiz ogabrielluiz changed the title Added alembic log path as env var change feat: Added alembic log path as env var change Oct 25, 2024
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Oct 25, 2024
@@ -44,6 +44,11 @@ def __init__(self, settings_service: SettingsService):
self.script_location = langflow_dir / "alembic"
self.alembic_cfg_path = langflow_dir / "alembic.ini"
self.engine = self._create_engine()
if self.settings_service.settings.alembic_log_file.startswith("/"):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the cross-platform Path.is_absolute()

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:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Alembic logging to insecure location
2 participants