Skip to content

fix: add load dotenv on encryption file#1430

Merged
lucaseduoli merged 8 commits into
release-saas-0.1from
fix/encryption_dotenv
Apr 20, 2026
Merged

fix: add load dotenv on encryption file#1430
lucaseduoli merged 8 commits into
release-saas-0.1from
fix/encryption_dotenv

Conversation

@lucaseduoli
Copy link
Copy Markdown
Collaborator

This pull request introduces an update to the src/utils/encryption.py file to improve environment variable loading. The main change is the addition of logic to ensure environment variables are loaded from both the default .env file and a parent directory, if available.

Environment variable loading:

  • Added dotenv integration to load environment variables from the current directory and the parent directory, ensuring configuration values are accessible in various deployment environments.

@lucaseduoli lucaseduoli requested a review from zzzming April 17, 2026 15:33
@lucaseduoli lucaseduoli self-assigned this Apr 17, 2026
@github-actions github-actions Bot added backend 🔷 Issues related to backend services (OpenSearch, Langflow, APIs) bug 🔴 Something isn't working. labels Apr 17, 2026
Copy link
Copy Markdown
Collaborator

@edwinjosechittilappilly edwinjosechittilappilly left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions Bot added the lgtm label Apr 17, 2026
@github-actions github-actions Bot added bug 🔴 Something isn't working. and removed bug 🔴 Something isn't working. labels Apr 17, 2026
Copy link
Copy Markdown
Collaborator

@edwinjosechittilappilly edwinjosechittilappilly left a comment

Choose a reason for hiding this comment

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

can we check on the Fast api Lifespan or on startevent in fast api.

@github-actions github-actions Bot removed the lgtm label Apr 17, 2026
@github-actions github-actions Bot added bug 🔴 Something isn't working. and removed bug 🔴 Something isn't working. labels Apr 17, 2026
@github-actions github-actions Bot added bug 🔴 Something isn't working. and removed bug 🔴 Something isn't working. labels Apr 17, 2026
Copy link
Copy Markdown
Collaborator

@edwinjosechittilappilly edwinjosechittilappilly left a comment

Choose a reason for hiding this comment

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

On clean up Lets move this to Fast API Lifespan in future.

@github-actions github-actions Bot added the lgtm label Apr 20, 2026
@edwinjosechittilappilly
Copy link
Copy Markdown
Collaborator

@lucaseduoli can we add it to lifespan ?

Copy link
Copy Markdown
Collaborator

@edwinjosechittilappilly edwinjosechittilappilly left a comment

Choose a reason for hiding this comment

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

Lucas on discussion can you explore the adding of loading env to lifepsan or onstart event of fast api for stability. since this is a crucial change.

@github-actions github-actions Bot removed the lgtm label Apr 20, 2026
@github-actions github-actions Bot added bug 🔴 Something isn't working. and removed bug 🔴 Something isn't working. labels Apr 20, 2026
@lucaseduoli
Copy link
Copy Markdown
Collaborator Author

Lucas on discussion can you explore the adding of loading env to lifepsan or onstart event of fast api for stability. since this is a crucial change.

Can't do that, since just by importing the data in main, it causes a lot of files to be imported and to read the env. Importing it on the top level does the trick.

@github-actions github-actions Bot added bug 🔴 Something isn't working. and removed bug 🔴 Something isn't working. labels Apr 20, 2026
@github-actions github-actions Bot added the lgtm label Apr 20, 2026
@lucaseduoli lucaseduoli enabled auto-merge (squash) April 20, 2026 21:37
@lucaseduoli lucaseduoli merged commit 60b425c into release-saas-0.1 Apr 20, 2026
8 checks passed
@github-actions github-actions Bot removed the lgtm label Apr 20, 2026
@github-actions github-actions Bot deleted the fix/encryption_dotenv branch April 20, 2026 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend 🔷 Issues related to backend services (OpenSearch, Langflow, APIs) bug 🔴 Something isn't working.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants