kernelci / kernelci/kernelci-api
Include `username` in API logs
- Dominant language
- Python
- Stars
- 10
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Description
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
```
Contributor guide
No contributing guide indexed for this repository
Research direction
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.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, observability
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100