kernelci / kernelci/kernelci-api

Include `username` in API logs

未关闭
#372 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
10
派生
21
PR 合并指标
30 天内没有已合并 PR

描述

In the case of authenticated queries from API, include the username in the API logs for debugging purposes.

For example, API log when a user subscribes to a channel looks like this:
```
kernelci-api | INFO: 172.20.0.1:42984 - "POST /latest/subscribe/node HTTP/1.1" 200 OK
```

That should contain `username` of requesting user:
```
kernelci-api | INFO: 172.20.0.1:42984 - staging.kernelci.org "POST /latest/subscribe/node HTTP/1.1" 200 OK
```

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start at the API request logging path for authenticated queries, using POST /latest/subscribe/node as the concrete entry point. Verify that the completed log includes the requesting username while preserving the existing request details, and exercise that subscription request to confirm the output.

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
api, observability
Issue 类型
功能
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。