version 0.7.0.17#167
Merged
niccottrell merged 33 commits intomongodb:masterfrom Dec 5, 2025
Merged
Conversation
Update connection string errors Remove refreshtime from config.ini setup
Delete unused folders
Contributor
There was a problem hiding this comment.
Pull request overview
This PR upgrades Mongosync Insights to version 0.7.0.17 with major improvements in performance, security, and maintainability. The changes migrate from hardcoded configuration to environment-based config management, implement connection pooling for MongoDB, extract HTML templates from Python code, add comprehensive file validation, and introduce HTTPS support with security headers.
Key changes:
- Replaced config.ini with environment variable-based configuration management
- Implemented MongoDB connection pooling and centralized database access
- Extracted inline HTML templates to separate template files for better maintainability
- Added comprehensive file validation (size, type, MIME) and log sanitization
- Implemented HTTPS/SSL support with security headers and detailed setup documentation
Reviewed changes
Copilot reviewed 18 out of 21 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| templates/*.html | New Jinja2 templates extracted from inline Python strings for separation of concerns |
| templates/README.md | Documentation for template structure and usage |
| requirements.txt | Updated dependencies with comments and removed unused packages |
| mongosync_plot_metadata.py | Refactored to use centralized config, connection pooling, and external templates |
| mongosync_plot_logs.py | Added file validation, optimized log parsing with single-pass streaming, and error handling |
| mongosync_insights.py | Migrated to env-based config, added security headers, HTTPS support, and error handlers |
| connection_validator.py | New module for safe connection string sanitization and validation |
| config.ini | Removed in favor of environment variables |
| app_config.py | New centralized configuration with environment variables and connection pooling |
| VALIDATION.md | New documentation for connection string handling and security |
| README.md | Updated with installation steps, libmagic requirement, and configuration references |
| HTTPS_SETUP.md | New comprehensive HTTPS setup guide |
| CONFIGURATION.md | New environment variables reference and usage examples |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
version 0.7.0.17
Improve log parser performance
Implement UI templates
Remove configuration file and hard coded parameter and replace with configuration management
Implement database connection pool for Live Monitor
Add mongosync log file validations
Update README instructions and requirements
Implement security validations
Sanitize mongosync insights logs
Update error messages
Remove unnecessary libraries
Fix bugs