feat: accept, store and expose client diagnostics
CI / chart (push) Successful in 3s
CI / test (push) Successful in 2m20s
CI / chart-push (push) Successful in 6s
CI / image (push) Successful in 3m39s

- V11 client_logs table with per-user storage and retention/pruning
- POST/GET/DELETE /logs with batch validation, rate limit and admin access
- redact bearer tokens, Authorization headers and query/JSON secrets twice
- add X-Request-Id to responses and include it in the server log pattern
- report client error entries immediately in the server log
- scripts/logs.sh for source-side retrieval and clearing
- chart knobs CLIENT_LOG_RETENTION_DAYS and CLIENT_LOG_MAX_ROWS_PER_USER
This commit is contained in:
TapTap committed 2026-11-20 13:43:05 +00:00
1 parent 91312faa1c
commit 44b75c4d4d
19 files changed
+981 -5

No files matched your search

@@ -40,6 +40,7 @@ fun Route.apiRoutes(
deezerQuality: Int,
loudnessEnabled: Boolean,
loudnessTargetLufs: Double,
clientLogRetentionDays: Int,
startScan: () -> Boolean,
scanStatus: () -> ScanStatus,
) {
@@ -89,6 +90,7 @@ fun Route.apiRoutes(
deezerQuality = deezerQuality,
loudnessEnabled = loudnessEnabled,
loudnessTargetLufs = loudnessTargetLufs,
clientLogRetentionDays = clientLogRetentionDays,
),
)
}
@@ -151,6 +153,7 @@ fun Route.apiRoutes(
defaultSource = defaultSource,
)
sessionRoutes(users, radioService, gc)
logRoutes(users)
}
}