When a request arrives without an API key, auth fails and the failure hook triggers spend tracking. _is_master_key was called with api_key=None, causing secrets.compare_digest to raise TypeError. Add a None guard for api_key matching the existing guard for _master_key. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| test_cloudzero_endpoints.py | ||
| test_spend_management_endpoints.py | ||
| test_spend_query_optimization.py | ||
| test_spend_tracking_utils.py | ||