Repository navigation
Conversation
The git and LFS routes log the cause of a key store failure, or of a registered key that does not parse, at most once a minute for each kind. The REST token paths answered a fixed text for both, and logged nothing, so an operator whose clients use only the REST API had no log line for a failed key store. KeyFailureLog is now exported from githttp, and its Report method holds the classification: an unknown issuer and a request that ended are not logged. The REST middleware and the fork source token check report their Verify errors to a limiter of their own, so the REST routes write at most one more line for each kind per minute. The answers do not change. Change-Id: Icbea51ba4d51bd0cc502140babf06d660a11b773 Signed-off-by: Thomas Kosiewski <tk@coder.com>
Change-Id: Ic7c9c5e5d5b7370b8cba9cc0d89c1524cb5b5f1f Signed-off-by: Thomas Kosiewski <tk@coder.com>
|
@codex review |
|
@codex security review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security ReviewSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
…ure log Change-Id: I5ba79a158bc70fd3f8ef1a8135dae5cfb6a90b59 Signed-off-by: Thomas Kosiewski <tk@coder.com>
|
@codex review |
|
@codex security review |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security ReviewSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
Why
Follow-up to #865. That PR made the git and LFS routes log the cause of a key store failure, and of a registered key that does not parse, at most once a minute for each kind. The REST token paths answer a fixed text for both failures, and they logged nothing. An operator whose clients use only the REST API had no log line for a failed key store.
What changed
githttp.KeyFailureLogis exported. ItsReportmethod holds the rule for what to log: the key store failed, or a registered key does not parse. It does not log an unknown issuer or a request that ended while the keys were read.requireAuth) and the fork source token check report theirVerifyerror toReport. The REST routes have a limiter of their own, so for each kind they write at most one line per minute, in addition to the line of the git and LFS routes.docs/how-to/deploy-production.mdsays so in its twoverify tokenrows.Scope
Verification
requireAuth. The first two write one line with the cause, and the third writes none.Reportcall is removed from the code.internal/auth, theinternal/apitests on SQLite and theinternal/githttptests on the local backend pass.golangci-lint, the docs gate and both fingerprint gates pass.Generated with
xum• Model:anthropic:claude-sonnet-5-5• Thinking:xhigh