{"record":{"id":"ad55461254083482","repo":"BerriAI/litellm","slug":"v1-rust-control-plane-logs-is-admin-only-proxy-a","errorCode":null,"errorMessage":"/v1/rust_control_plane/logs is admin-only (proxy admin key required).","messagePattern":"/v1/rust_control_plane/logs is admin-only \\(proxy admin key required\\)\\.","errorType":"http","errorClass":"HTTPException","httpStatus":403,"severity":"error","filePath":"litellm/proxy/logging_endpoints/callback_logs_endpoints.py","lineNumber":195,"sourceCode":"        return CallbackLogsResponse(processed=processed, failed=len(failures), failures=failures)\n\n\n@rust_control_plane_router.post(\n    \"/logs\",\n    dependencies=[Depends(user_api_key_auth)],\n)\nasync def ingest_callback_logs(\n    body: CallbackLogsRequest,\n    user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),\n) -> CallbackLogsResponse:\n    \"\"\"\n    Replay a batch of finished logging payloads through the callback fan-out.\n\n    Admin-only: the payloads write spend logs and trigger every callback, so this\n    is a trusted internal route, not a public surface.\n    \"\"\"\n    if user_api_key_dict.user_role != LitellmUserRoles.PROXY_ADMIN:\n        raise HTTPException(\n            status_code=403,\n            detail=\"/v1/rust_control_plane/logs is admin-only (proxy admin key required).\",\n        )\n\n    return await CallbackLogsReplayer().replay_batch(body.records)\n","sourceCodeStart":177,"sourceCodeEnd":201,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/logging_endpoints/callback_logs_endpoints.py#L177-L201","documentation":"Error \"/v1/rust_control_plane/logs is admin-only (proxy admin key required).\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/proxy/logging_endpoints/callback_logs_endpoints.py:195 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Authenticate with a proxy admin key to call this endpoint.","Ask an admin to perform the operation or grant admin access."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}