Skip to content

Conversation

@Adityav369
Copy link
Collaborator

No description provided.

@jazzberry-ai
Copy link

jazzberry-ai bot commented Dec 9, 2025

Bug Report

Name: .env file always loaded, overriding secret manager values
Severity: High
Example test case: Set SECRET_MANAGER to 'infisical' in morphik.toml, set environment variables in Infisical, and also set the same environment variables in .env. The values from .env will be used instead of Infisical.
Description: The load_local_env(override=True) call in core/config.py is unconditional, causing it to always load environment variables from the .env file, even when a secret manager like Infisical is configured. This overrides the values provided by the secret manager.

Comments? Email us.

@Adityav369 Adityav369 merged commit 535d581 into main Dec 9, 2025
6 of 7 checks passed
@Adityav369 Adityav369 deleted the add_secrets_management branch December 9, 2025 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants