- Add api_uptime_seconds gauge to API service (5s update interval), matching the pattern used by trading/backtesting/ml-training services - Remove obsolete Web Gateway Uptime and Active WebSocket Connections panels from cockpit (web-gateway is not deployed) - Add API Gateway Uptime (api_uptime_seconds) and API Auth Rate (api_auth_requests_total) panels in their place Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
api
Foxhunt API Service -- unified gRPC gateway with tonic-web for browser access, 6-layer authentication, RBAC, rate limiting, and gRPC proxy routing.
Key Types
TradingServiceProxy-- main gRPC proxy implementationRoleBasedAccessControl-- RBAC authorizationRateLimiter-- 3-tier rate limiting (auth/trading/compute)CircuitBreaker-- upstream service protection
Configuration
JWT_SECRET-- JWT signing secret (min 32 chars)CORS_ORIGINS-- comma-separated allowed origins for gRPC-Web (default: http://localhost:5173)TRADING_SERVICE_URL-- trading service gRPC endpointML_TRAINING_SERVICE_URL-- ML training service gRPC endpoint
Features
mfa(default) -- multi-factor authentication support- Build without:
cargo check -p api --no-default-features --features minimal