-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Set a custom toml loader for Dynaconf #2087
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
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||
|
/agentic_review |
User description
PR Type
Enhancement, Bug fix
Description
Implement custom TOML loader for enhanced security and controlled merging
Disable default Dynaconf loaders to prevent duplicate file loading
Add comprehensive security validation to block dangerous directives
Enforce .toml file extension and file size limits (100MB max)
Replace list/dict append behavior with overwrite for consistent merging
Apply custom loader consistently across configuration loading points
Diagram Walkthrough
File Walkthrough
custom_merge_loader.py
New secure custom TOML loader with validationpr_agent/custom_merge_loader.py
values
preload, loaders, etc.)
max 50 nesting depth
config_loader.py
Configure custom loader for global settingspr_agent/config_loader.py
functionality
utils.py
Apply custom loader to repo settingspr_agent/git_providers/utils.py
settings
merging
pr_config.py
Add error handling and custom loader to config toolpr_agent/tools/pr_config.py