mirror of
https://github.com/langgenius/dify.git
synced 2026-05-10 22:28:55 +08:00
- Cache invalid license statuses with 30s TTL to prevent DoS amplification - Return LicenseStatus enum (not raw str) from get_cached_license_status - Flatten nested try/except into _read_cached_license_status / _fetch_and_cache_license_status helpers - Escalate log levels from debug to warning with exc_info for cache failures - Switch before_request license check from fail-open to fail-closed - Remove dead raise_for_status parameter from BaseRequest.send_request - Gate license expired_at behind is_authenticated; only expose status to unauthenticated callers (CVE-2025-63387) - Remove redundant 'not is_console_api' guard in before_request - Add 8 unit tests for get_cached_license_status |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_account_deletion_sync.py | ||
| test_enterprise_service.py | ||
| test_traceparent_propagation.py | ||