feat(monitor): add API Key authentication for server heartbeat #9
Reference in New Issue
Block a user
Delete Branch "feat/monitor-api-key"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
变更内容
/admin/servers/{id}/api-key接口:生成 API Key/server/heartbeat-v2接口:API Key 认证的心跳上报测试
- Add api_key field to MonitoredServer model - Add migration to create api_key column with unique index - Add /admin/servers/{id}/api-key endpoint for key generation - Add /admin/servers/{id}/api-key DELETE endpoint for revocation - Add /server/heartbeat-v2 endpoint with X-API-Key header authentication - Add TelemetryPayload model with extended fields (load_avg, uptime_seconds) - Add basic unit tests for API key functionalityPull request closed