1
0
Fork 1
mirror of https://github.com/thatmattlove/hyperglass.git synced 2026-04-23 00:08:30 +00:00
thatmattlove-hyperglass/hyperglass/api
Wilhelm Schonfeldt 627c502f97
feat: Major IP enrichment refactor and validation fixes
IP Enrichment Changes:
- Remove PeeringDB dependency and file caching infrastructure
- Implement real-time BGP.TOOLS WHOIS API integration (port 43)
- Simplify IPEnrichmentService with bulk query support
- Add comprehensive error handling and logging
- Reduce module from 1,545 to 641 lines (58% reduction)
- Update documentation to reflect BGP.TOOLS-only approach

Validation System Fixes:
- Fix Pydantic v2 model validator signatures across multiple classes
- Use Field(default_factory=...) pattern to prevent premature instantiation
- Resolve KeyError: None in ThemeColors.validate_colors validator
- Fix Credential.validate_credential method signature for 'after' mode
- Ensure proper validation context for all model validators

MikroTik Improvements:
- Add intelligent retry logic for empty BGP route responses
- Retry up to 2 times when execution time < 5 seconds
- Include 2-second delay between retries for device stabilization

Security Enhancements:
- Sanitize connection error messages to remove sensitive network information
- Remove 'Device settings: platform IP:port' from user-facing errors
- Apply sanitization to DeviceTimeout, ScrapeError, AuthError, RestError
- Provide generic fallback messages for empty errors

UI Improvements:
- Hide 'None' group filter when no directive groups exist
- Filter out directives with null/empty names from query type dropdown
- Improve UI cleanliness and user experience

Configuration Updates:
- Clean up structured output configuration comments
- Remove deprecated cache_timeout and refresh settings
- Update model field definitions for consistency
2025-10-09 13:17:47 +02:00
..
__init__.py refactor: remove unused IP enrichment admin API endpoints 2025-10-07 21:29:19 +02:00
error_handlers.py fix import sorting 2024-05-27 16:25:47 -04:00
events.py refactor: remove unused rules and streamline Mikrotik and Huawei directives 2025-10-07 21:41:10 +02:00
fake_output.py fix BGP route validation 2024-06-30 23:33:06 -04:00
middleware.py initial migration to litestar 2024-03-26 23:59:42 -04:00
routes.py feat: Major IP enrichment refactor and validation fixes 2025-10-09 13:17:47 +02:00
state.py initial migration to litestar 2024-03-26 23:59:42 -04:00
tasks.py feat: Add structured traceroute support with comprehensive IP enrichment 2025-09-28 13:48:04 +02:00