You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(errors): [#2917] remove source locations from the configuration, TLS and UDP server errors - #3001
Closes#2917. Sub-issue SI-5 of EPIC #2912 ("Remove source locations from errors").
Removes the source locations from the configuration, TLS and UDP server errors, so a startup error shown to an operator no longer ends in a packages/...rs:line path.
configuration: the source of UnableToProcessExplicitConfigFile, UnableToLoadFromEnvironmentVariable, UnableToLoadFromConfigFile and ConfigError is a plain Box<dyn std::error::Error + Send + Sync>, and From<figment::Error> no longer captures the caller location. The path and the figment diagnostic stay in the message. The torrust-located-error dependency is removed. The breaking change for the 4.0.0 release is recorded under "Semver bumps owed" in the publish plan (First publish of the unpublished workspace crates #2583).
axum-server: BadTlsConfig holds a plain source and MissingTlsConfig lost its unused location field. The torrust-located-error dependency is removed.
udp-server: Internal lost its location, AuthRequired is a unit variant, and ErrorKind::TrackerAuthentication carries the error's message.
Evidence (in the issue folder): red tests that fail on a source path (committed first), green tests, and the real tracker binary started before and after with a bad configuration file and with an invalid PEM file. Both messages still name the file, key or TLS failure and hold no path.
Notes: UnableToLoadFromEnvironmentVariable and UnableToLoadFromConfigFile are never built, so they have no red test. configuration and axum-server each add a local copy of the path-check helper; SI-8 (#2996) cannot move them (torrust-tracker-test-helpers depends on configuration, and axum-server has no such dev-dependency), so they are recorded as copies 8 and 9 in the SI-8 spec and the EPIC row, to be cross-linked. tracker-client still uses torrust-located-error (SI-6).
The reason will be displayed to describe this comment to others. Learn more.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Removes caller/source location paths (e.g., packages/...rs:line) from startup-facing error messages in configuration, axum-server TLS, and udp-server, while keeping useful diagnostics (file names, keys, and underlying messages) intact.
Changes:
Replaces torrust-located-error / location-capturing sources with plain boxed sources (Box<dyn Error + Send + Sync>) and drops #[track_caller] where it leaked paths into messages.
Simplifies udp-server errors by removing location fields, turning AuthRequired into a unit variant, and mapping tracker-auth errors to the human error message instead of a source location.
Adds regression tests and manual verification evidence ensuring messages don’t contain workspace/registry paths or file.rs:line suffixes; removes torrust-located-error deps from affected crates.
File
Description
packages/udp-server/src/handlers/error.rs
Updates tests to construct internal errors without caller locations.
packages/udp-server/src/event.rs
Updates error classification to use message strings vs locations; adjusts tests accordingly.
packages/udp-server/src/error.rs
Removes location-bearing error variants and adds display regression tests.
packages/configuration/src/lib.rs
Switches to boxed sources, removes caller capture from figment conversion, adds “no source path” tests.
The reason will be displayed to describe this comment to others. Learn more.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
No actionable comments were generated in the recent review.
Walkthrough
Configuration, TLS, and UDP errors no longer capture caller source locations. Configuration and TLS errors use boxed standard error sources. Tests and verification records check error messages without source paths. The change also removes two dependencies and records the configuration breaking change.
Configuration error sources now use boxed standard errors. Figment conversion no longer captures caller location. Tests check that diagnostics remain available without source paths. Dependency, release, issue, helper-copy count, and verification records are updated.
TLS error sources and diagnostics packages/axum-server/src/tls.rs, packages/axum-server/Cargo.toml, packages/axum-server/README.md, docs/issues/open/2917-2912-si-5-startup-and-udp-server-errors/*
TLS errors no longer store caller locations. PEM-loading failures use boxed standard errors. Tests and startup records check error output without source paths.
UDP error mapping and verification packages/udp-server/src/error.rs, packages/udp-server/src/event.rs, packages/udp-server/src/handlers/error.rs, docs/issues/open/2917-2912-si-5-startup-and-udp-server-errors/*, docs/pr-reviews/pr-3001-review/PR-REVIEW.md
UDP error variants no longer store locations. Authentication error mapping uses the error display text. Tests, recorded results, and the review audit reflect the updated error shapes.
torrust/torrust-tracker#2912 — This PR implements the configuration, axum-server, and udp-server portion of the epic’s source-location removal goal.
torrust/torrust-tracker#2583 — This PR records the configuration error changes as a breaking change for version 4.0.0.
torrust/torrust-tracker#2918 — This PR removes the dependency from configuration and axum-server, which are among the workspace uses covered by the issue.
torrust/torrust-tracker#2996 — This PR updates the documented helper-copy counts to include the retained helpers in configuration and axum-server.
Path filters excluded changed files. This rating applies only to the assessed changes.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the change: source locations are removed from the configuration, TLS, and UDP server errors. The changeset matches this. It removes location fields from configuration, axum-server (TLS…
Linked Issues check
Directly linked issue #2917 is open. Its requirements are coding requirements, plus one release-record step that is documentation. The reviewed head (baf2db8) keeps the code conclusions from the previ…
Out of Scope Changes check
Code and manifest changes map directly to #2917 scope items: - packages/configuration/src/lib.rs and Cargo.toml. - packages/axum-server/src/tls.rs, Cargo.toml and README.md. - `packages/udp-…
Full details: Title check
Explanation
The title names the change: source locations are removed from the configuration, TLS, and UDP server errors. The changeset matches this. It removes location fields from configuration, axum-server (TLS), and udp-server errors, and removes the torrust-located-error dependency. The title is specific and uses the conventional commit form. It mentions the issue number #2917. The title does not mention the dependency removal, but that is a supporting detail.
Full details: Linked Issues check
Explanation
Directly linked issue #2917 is open. Its requirements are coding requirements, plus one release-record step that is documentation. The reviewed head (baf2db8) keeps the code conclusions from the previous review.
[#2917, configuration]: The four Error sources are plain Box<dyn Error + Send + Sync> (lib.rs, summary). From<figment::Error> no longer uses track_caller or DynError. Explicit-file processing keeps the path and boxes the underlying error. torrust-located-error is removed from packages/configuration/Cargo.toml. Tests check that messages contain the Figment or explicit-file diagnostic and no source path.
[#2917, axum-server]: Error::BadTlsConfig holds a boxed plain source. Error::MissingTlsConfig holds only cert and key. torrust-located-error is removed from packages/axum-server/Cargo.toml. The README no longer lists LocatedError/DynError. Tests check that both messages contain no source-path fragments.
[#2917, udp-server]: Error::Internal holds only message. Error::AuthRequired is a unit variant. event.rs and the handlers/error.rs test helper use the new shapes. ErrorKind::TrackerAuthentication carries the error message. Display tests check the new strings.
[#2917, release record]: The 4.0.0 breaking change is recorded in the docs/issues/open/2583-... publish-plan record.
Red and green test evidence is recorded under the issue folder. This assessment did not run the tests. The red-then-green order is taken from the PR description and evidence files, not from a commit-history inspection.
Unverified: Cargo.lock is excluded from review (rule !**/*.lock). The lockfile entry for torrust-located-error was not inspected. The manifest removal is the stated requirement, so this does not change the verdict.
Full details: Out of Scope Changes check
Explanation
Code and manifest changes map directly to #2917 scope items:
packages/configuration/src/lib.rs and Cargo.toml.
packages/axum-server/src/tls.rs, Cargo.toml and README.md.
packages/udp-server/src/error.rs, event.rs and handlers/error.rs.
The matching test changes support these items.
Documentation changes fall into three groups:
Issue-process records for #2917 (ISSUE.md, evidence files, manual verification notes). These support #2917.
The #2583 publish-plan record. Its 4.0.0 breaking-change note for #2917 supports #2917. It also mentions the Configuration::application field added by SI-20. That mention is unrelated to #2917. It is a documentation-only note and does not change code. It is minor.
Edits to the SI-8 (#2996) specification and the EPIC #2912 table. These record the extra assert_names_no_source_path copies in configuration and axum-server. The PR description discloses them. They are a consequence of this change, so they are related. They are planning text for another issue.
docs/pr-reviews/pr-3001-review/PR-REVIEW.md is an audit record of review findings for this PR. It does not implement a #2917 objective and does not change code behaviour. Maintainers may prefer to keep it out of this PR. It is not an unrelated code change.
No unrelated code change was found in the summary.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: 77b6aeb9-4163-4f75-a62e-5ae4ad70495b
Commits
Reviewing files that changed from the base of the PR and between 54517b6 and baf2db8.
Files selected for processing: 1
docs/pr-reviews/pr-3001-review/PR-REVIEW.md
Files skipped from review as they are similar to previous changes: 1
docs/pr-reviews/pr-3001-review/PR-REVIEW.md
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Reviewed at 7a304b4198dad2580c97a974f5eab00fe0346b95. Recomputed from the bytes at this head, against the merge base ea1ff9fcd; git merge-tree against developff3600f10 merges without conflict, and none of the 20 develop commits since the merge base touches a file this PR changes.
Process: a bug fix under the fix-bug skill (red tests first, a real-binary reproduction and recheck in issue-local evidence), with open-pull-request for the body and history and process-pr-review for the audit record. The red commit comes first, and every file:line:col in the red and startup captures recomputes against the commit it was taken at. The audit record passes the validator's logic offline (6 rows, 4 log entries, 0 failures).
The change against its claim: the four configuration sources and BadTlsConfig are plain boxed errors; From<figment::Error> no longer captures the caller; MissingTlsConfig, Internal and AuthRequired lost location; TrackerAuthentication carries the error's message; both crates drop torrust-located-error and the lockfile follows. No production code in the three crates captures a location any more, and each new or tightened test fails with its fix reverted, as the red captures show.
Consistency: three documents around the change now disagree with it (F1, F2, F4), and the evidence does not name the build its recheck ran on (F3).
Hygiene: Conventional subjects with [#2917], author = committer, no bodies; every commit carries one attribution footer, which no rule in the tree governs; git diff --check is clean; the PR-branch commit-id check prints nothing; the only closing keyword is Closes #2917, in the body.
Findings: F1 to F4 Minor, F5 to F7 Nit; none blocks.
Checked, no finding: boxed thiserror sources (same form as src/app.rs); no Arc or Location left behind; no consumer relied on the removed fields; UnableToLoadFromEnvironmentVariable and UnableToLoadFromConfigFile are never built; the six review threads match the audit and are resolved.
Checks
On the loop's compute node at this head, against the merge base ea1ff9fcd (receipt server-gates-kranich-1344): the repository's pre-commit gate and lint roster exit 0 (80 s wall), and the audit validator passes on this PR's record (6 rows, 4 log entries, 0 failures). In the per-PR target directory, with every workspace crate recompiled at this head, cargo test --workspace passes 4487 tests with 0 failed and 5 ignored across 131 binaries (160 s wall), cargo clippy --workspace --all-targets --all-features -- -D warnings is clean (39 s wall), and cargo deny check exits 5 with the same license rejections and the same five advisories as recent runs on develop (identical error set). Checked against the bytes at posting: packages/axum-server/README.md lines 39-40 still list LocatedError / DynError from torrust-located-error, while neither the package's Cargo.toml nor its sources name that crate any more, as F4 says. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "Package Coverage Regression: completed/success; Package Coverage (torrust-tracker-axum-server): completed/success; Package Coverage (torrust-tracker-udp-server): completed/success; Package Coverage (torrust-tracker-configuration): completed/success; Discover Package Coverage: completed/success; Generate Coverage Report: completed/success; Test (Docker) (release): in_progress/pending; Build on macos-latest (nightly): queued/pending; Build on windows-latest (nightly): completed/success; Build on ubuntu-latest (nightly): completed/success; Build on macos-latest (stable): completed/success; Build on windows-latest (stable): completed/success; Build on ubuntu-latest (stable): completed/success; Docs Lint: completed/success; Docker E2E: completed/skipped; Unit (nightly): in_progress/pending; Layer Boundary Bans: completed/success; Unit (stable): in_progress/pending; Workspace Packaging: completed/success; Documented Clippy Allows: completed/success; Shipped Features: completed/success; CodeRabbit: completed/success; Greptile Review: completed/success". At posting, develop is ff3600f10.
ACK 7a304b4 — the error-type changes, their red-to-green tests, the evidence locations and the audit record were recomputed at this head with no blocking finding
The reason will be displayed to describe this comment to others. Learn more.
Reviewed at 9415dd22ef303b06dd99008419a490d8b05fd23d. Recomputed from the bytes at this head, against the new merge base f73a359f8 (develop); git merge-tree against developf73a359f8 merges without conflict.
Process: the only new commit of the PR is a merge of develop. It was required, because a trial merge of baf2db8f6 with f73a359f8 conflicts on Cargo.lock. The merge carries the PR across exactly: the same 23 files, a byte-identical net patch for every file but the lockfile, and a lockfile whose net change is again the two torrust-located-error lines (the crate stays only under torrust-tracker-client-lib). The message says so. The validator's logic passes offline (21 rows, 13 log entries, 0 failures). But the five threads opened after the last audit commit have no reply, no row and no resolution: the four findings of review 6024983512 and a bot thread that repeats F21 (F22). That holds the verdict at COMMENT.
Consistency: develop brought the EPIC #2993 specifications into this tree. Its line 86 says Error::ConfigError is built by LocatedError, which this PR ends. Its owner refreshed the inventory after SI-4 merged, so that refresh can follow this merge too. Its line 176 flags SI-5's AC2 against secret values (A10), which the SI-A spec assigns to SI-A (F23). F18, F19, F20 and F21 stand unchanged on their threads.
Hygiene: the merge's subject is Conventional with [#2917], author = committer, and its body explains the lockfile resolution correctly; it carries one attribution footer, which no rule in the tree governs. git diff --check is clean, the PR-branch commit-id check prints nothing, and the only closing keyword is Closes #2917. The PR description is unchanged.
Findings: F22 Minor, F23 Suggestion; F20 Minor, F18 and F21 Nit, and F19 Suggestion remain open. F22 holds the verdict under the audit rule.
Checked, no finding: no source or test file changed. The dependency update makes this the first head where the PR's code builds against the new versions, so the gate's build, test, clippy and deny runs here are new evidence rather than inherited.
Checks
On the loop's compute node at this head, against the merge base f73a359f8 (receipt server-gates-kranich-1372): the repository's pre-commit gate and lint roster exit 0 (75 s wall), and the audit validator passes on this PR's record (21 rows, 13 log entries, 0 failures). Because this head merges develop with the dependency update of #3003, the PR's code was measured again here: in the per-PR target directory with every workspace crate recompiled, cargo test --workspace --no-fail-fast passes 4487 tests with 0 failed and 5 ignored across 131 binaries (241 s wall), cargo clippy --workspace --all-targets --all-features -- -D warnings is clean (33 s wall), and cargo deny check exits 5 with exactly the error set develop now has (no RUSTSEC-2026-0592 since url 2.5.9). Checked against the bytes at posting: docs/pr-reviews/pr-3001-review/PR-REVIEW.md is byte-identical to its state at baf2db8f6, so the threads opened on round 3 have no rows yet, as F22 says. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "Package Coverage (torrust-tracker-axum-server): queued/pending; Package Coverage (torrust-tracker-configuration): queued/pending; Package Coverage (torrust-tracker-udp-server): queued/pending; Test (Docker) (release): in_progress/pending; Docs Lint: in_progress/pending; Build on windows-latest (nightly): in_progress/pending; Build on ubuntu-latest (stable): in_progress/pending; Build on macos-latest (stable): queued/pending; Build on windows-latest (stable): in_progress/pending; Build on ubuntu-latest (nightly): in_progress/pending; Build on macos-latest (nightly): queued/pending; Docker E2E: completed/skipped; Generate Coverage Report: in_progress/pending; Discover Package Coverage: completed/success; Unit (stable): in_progress/pending; Shipped Features: completed/success; Documented Clippy Allows: completed/success; Layer Boundary Bans: in_progress/pending; Unit (nightly): in_progress/pending; Workspace Packaging: completed/success; CodeRabbit: completed/skipped; Greptile Review: completed/success". At posting, develop is f73a359f8.
The reason will be displayed to describe this comment to others. Learn more.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
The reason will be displayed to describe this comment to others. Learn more.
Reviewed at d09d2c2530a9d6308ceced5180737016d697e8ac. Recomputed from the bytes at this head, against the merge base f73a359f8; git merge-tree against develop6bc417424 merges without conflict, and the one develop commit since the merge base touches only its own new files.
Process: all 29 threads opened before the last audit commit (16:48:07Z). Each has a row, a reply from the author on its own thread and a resolution. The validator's logic passes offline (29 rows, 16 log entries, 0 failures). Rows F22 to F28 record the seven threads open at the last review: their replies sit on their own threads, the threads are resolved, each row's check reproduces, and the three id-citing replies now name subjects. Row F29 records the README thread: its reply sits on that thread, the thread is resolved, the bot rates it Low, and grep -n "Tsl" on the README finds nothing.
What moved, against its claims: rows F18, F20 and F21 cite the commits that fixed them; row F21 says 15:53; an appended correction names the 15:58 stamp and the two in-place edits. The SI-5 spec says the 15:53 line supersedes the 11:21 claim and names SI-A as the owner of AC2's secret-value case. The README names TlsConfig, the v3 type tls.rs imports, instead of the legacy TslConfig that the commit body correctly calls the v2 type. All my earlier findings are fixed except a few slips in the new rows (F25).
Hygiene: the five new subjects are Conventional with [#2917], author = committer; each carries one attribution footer, which no rule in the tree governs. git diff --check is clean, the PR-branch commit-id check prints nothing, and the only closing keyword is Closes #2917. The PR description is unchanged.
Findings: F25 Nit; none blocks.
Checked, no finding: no code, manifest or lockfile changed since 9415dd22e, whose workspace runs stand.
Checks
On the loop's compute node at this head, against the merge base f73a359f8 (receipt server-gates-kranich-1387): the repository's pre-commit gate and lint roster exit 0 (160 s wall), and the audit validator passes on this PR's record (29 rows, 16 log entries, 0 failures). The PR's code is unchanged since 9415dd22e, where the workspace tests (4487 passed, 0 failed, 5 ignored across 131 binaries), clippy and deny ran as reported in round 4; the commits since change documentation only. Checked against the bytes at posting: packages/axum-server/README.md now names TlsConfig twice and TslConfig nowhere, so the README thread's fix is on the branch. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "CodeRabbit: completed/skipped; Greptile Review: completed/success". At posting, develop is 6bc417424.
- Concern: da2ce7 (Suggestion, recorded as Nit) asked that the 15:53 progress-log line say that it corrects the 11:21 claim and name the commit that recorded the SI-8 copies.
The reason will be displayed to describe this comment to others. Learn more.
[Nit][F25] Small slips in the new rows
Rows F26 and F28 read Suggestion in the table (lines 73 and 75), but their Concern lines (this line and 437) say "Suggestion, recorded as Nit".
Row F24 verifies with gh-bot api … (line 387), a command the repository does not document; the skills use gh. Its resolution reference (line 388) names this record's commit, although the fix was the edit of three replies. process-pr-review asks an off-tree fix to cite the durable URL of the response that states it (here r4668815930).
The SI-5 spec's 16:40 progress line (line 190) and its last-updated-utc (line 12) sit in a commit dated 16:37:16Z. This is the same ahead-of-time stamp the appended correction names for the 15:58 entry.
ACK d09d2c2 — every review thread's row, reply and resolution, the audit validator logic and the fixes of the last two reviews were recomputed at this head with no blocking finding
…inst develop
Recheck of the EPIC torrust#2993, SI-A (torrust#2999) and SI-B (torrust#3000) specifications
against develop 6bc4174 before the first sub-issue starts. Nothing in
the inventory was fixed. Corrects the REST client description, the A2,
A6 and A9 rows, two rows of section B and the SI-5 relation; adds the
missed cases; records the maintainer's answers of 2026-11-23 (start SI-A
after torrust#3001, marker ***, ?token= teachers in SI-A, health-check API in
SI-B, CI tools out of scope, one session at a time).
Co-Authored-By: Claude Fable 5.2 <[email protected]>
josecelano-bot
added a commit
to josecelano-bot/torrust-tracker
that referenced
this pull request
Nov 23, 2026
…as merged
SI-5 of EPIC torrust#2912 (torrust#3001) merged while the recheck PR was being
opened. Record it and refresh the line numbers it moved in
packages/configuration/src/lib.rs and packages/udp-server/src/error.rs.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…cs against develop
e1bcbe7 docs(pr-reviews): [#2993] record review round 7 of PR 3014 (josecelano-bot)
09efe4a docs(issues): [#3000] tell the UDP parse-error reply and event texts apart (josecelano-bot)
ec4d906 docs(pr-reviews): [#2993] record review round 6 of PR 3014 (josecelano-bot)
8cd01f5 docs(issues): [#2999] name A12 once in the SI-A ownership sentence (josecelano-bot)
e06a496 docs(issues): say how the CI tools use their database URL constants (josecelano-bot)
4cfef8c docs(pr-reviews): [#2993] record review round 5 of PR 3014 (josecelano-bot)
eaf8300 docs(issues): [#2993] name the PR behind the spec-only checkpoint of SI-A and SI-B (josecelano-bot)
6baab17 docs(issues): redact the example database passwords in the CI-tools draft (josecelano-bot)
c358729 docs(pr-reviews): [#2993] record review round 4 of PR 3014 (josecelano-bot)
06eb491 docs(issues): [#3000] add the UDP health-check failure texts (josecelano-bot)
1f00028 docs(pr-reviews): [#2993] record the F10 reply and the validator run in the PR 3014 audit (josecelano-bot)
dc8ac44 docs(pr-reviews): [#2993] call the workflow-run times upper bounds on the push times (josecelano-bot)
b49144c docs(pr-reviews): [#2993] record review round 3 of PR 3014 (josecelano-bot)
d7c45ec docs(issues): take the CI-tools draft update time from the clock (josecelano-bot)
5e2bb05 docs(issues): say what the M3 baseline records in the CI-tools draft (josecelano-bot)
8ce3ce3 docs(pr-reviews): [#2993] record review round 2 of PR 3014 (josecelano-bot)
3629511 docs(issues): make the CI-tools draft scenarios runnable and say where markers enter (josecelano-bot)
15263e2 docs(issues): [#3000] limit the driver-text criterion to the servers that reach the database (josecelano-bot)
6dcacdb docs(issues): [#2999] cover the POST path rejection, malformed key segments and the client GET exceptions (josecelano-bot)
12c44a8 docs(pr-reviews): [#2993] record review round 1 of PR 3014 (josecelano-bot)
42fbf8a docs(issues): add the test loop and per-site log scenarios to the CI-tools draft (josecelano-bot)
c6e9aee docs(issues): [#3000] split the health-check reply statuses and add its verification (josecelano-bot)
62039f2 docs(issues): [#2993] update the specs now that #3001 has merged (josecelano-bot)
3a85e9f docs(issues): draft a spec to keep secrets out of the CI tools' logs (josecelano-bot)
881bd6f docs(issues): [#2993] recheck the EPIC and sub-issue specs against develop (josecelano-bot)
Pull request description:
Related to #2993. Related to #2999. Related to #3000.
## Summary
Spec-only. Before the first sub-issue of EPIC #2993 starts, the coordinator rechecked the EPIC, SI-A (#2999) and SI-B (#3000) specifications against `develop` `6bc417424` (about 150 commits after the inventory commit `bcca9764c`). Nothing in the inventory is fixed yet, but some statements were wrong and some cases were missing. The maintainer answered the open questions on 2026-11-23; this PR records the answers and the corrections.
## Corrections
- The REST client already sends the token in the `Authorization: Bearer` header on every request; it also adds `?token=` on GET requests. The EPIC said it had no header form. SI-A item 6 is now "remove the query token and call `without_url` at every `reqwest` wrap site".
- `invalid_auth_key_response` lives in `v1/context/auth_key/responses.rs`, not `v1/responses.rs`.
- A9: `docs/containers.md` also teaches `?token=` at lines 650 and 719.
- The EPIC Subissues row, scope and AC now say SI-A covers A1 to A10 and A12, and three servers (with the health-check API), as the SI-A spec already said.
- Section B: the scrape database prefix and the UDP internal text (which still carries a location until #3001 merges).
- Bookkeeping in both sub-issue specs: the spec-only PR checkbox (#2994 merged) and the progress log.
## Added
- SI-A: a third `InvalidKey { key }` site in `rest-api-runtime-adapter`; the peer key in the URL of `delete_auth_key` and the other `reqwest` wrap sites; the fifth key text; the extractor that drops the parse error kind; the other places that teach `?token=` (three skills, rustdoc, a contrib README); types with a derived `Debug` that hold a key; the tests that pin today's texts.
- SI-B: the client texts section B missed, as input for the ADR's table, and the health-check API in scope.
- Maintainer decisions of 2026-11-23: SI-A starts after #3001 merges; marker `***` (the `****` of #3004 stays); one session at a time, Claude Fable 5.2 at high effort.
- A draft spec, `docs/issues/drafts/ci-tools-keep-secrets-out-of-logs/ISSUE.md`, for the CI tools that log configuration and environment values. The maintainer put them out of the EPIC's scope. The draft waits for his review before a GitHub issue is created.
## After #3001 merged
SI-5 of EPIC #2912 (#3001) merged while this PR was being opened. The branch was rebased onto `develop` once, before any review, and a third commit records the merge and refreshes the line numbers #3001 moved (`packages/configuration/src/lib.rs`, `packages/udp-server/src/error.rs`).
## Files
- `docs/issues/open/2993-secrets-and-client-error-text/EPIC.md`
- `docs/issues/open/2999-2993-si-a-keep-secrets-out-of-errors-and-logs/ISSUE.md`
- `docs/issues/open/3000-2993-si-b-client-error-text-policy/ISSUE.md`
- `docs/issues/drafts/ci-tools-keep-secrets-out-of-logs/ISSUE.md` (new)
## Validation
- `linter markdown` and `linter cspell` pass; the pre-commit hook passed on both commits.
- Every corrected line number and quoted text was read on `develop` `6bc417424`. Nothing was run on a tracker; the reproductions belong to the sub-issues.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
* **Documentation**
* Updated planning documents for handling secrets in logs and errors, including REST and health-check API cases. These documents do not describe product behavior changes.
* Expanded scope, acceptance criteria, test plans, and verification steps, and updated related work and progress records.
* Added a review record covering findings, resolutions, and review history.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
ACKs for top commit:
josecelano:
Waiving two merge-readiness checks for e1bcbe7: (1) Copilot's latest review is on ec4d906. The commits after it change 2 lines of the SI-B spec and add to the review audit record. (2) No ACK from da2ce7. This is a spec-only PR.
Tree-SHA512: 4f513d7a56a3453b5c2ed3776166a77ad47b8f6927ab7ebb5a1c2c16fb233a69a79a203e8cd475036993ecdefe9c27a84b1d330a33d7eeafc988acb276ef91dc
Issue #2917 (SI-5 of EPIC #2912) closed with PR #3001. The spec moves to
docs/issues/closed/ with status done, the checkpoints are ticked and the
EPIC row is marked DONE.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ssues/closed
5740f8d docs(issues): [#2917] point the archived SI-5 spec at the parent EPIC in open/ (josecelano-bot)
bc0e271 chore(issues): archive closed issue #2917 spec to docs/issues/closed (josecelano-bot)
Pull request description:
Related to #2912.
## Why
Issue #2917 (SI-5 of EPIC #2912) was closed by PR #3001, so its spec leaves `docs/issues/open/`, as the `cleanup-completed-issues` skill describes.
## What this changes
Moves the spec folder `docs/issues/open/2917-2912-si-5-startup-and-udp-server-errors/` to `docs/issues/closed/`, sets `status: done`, updates `spec-path` and `last-updated-utc`, ticks the remaining checkpoints with a progress-log line, and marks the SI-5 row of the EPIC #2912 table DONE with the new path.
## Validation
Issue #2917 is `CLOSED` on GitHub. A search for the old folder name finds only the immutable review audit of PR #3001. The pre-commit and pre-push hooks passed.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
* **Documentation**
* Updated the issue record to show it as complete and archived, with progress checkpoints and acceptance verification marked done.
* Updated the related EPIC to reflect SI-5’s completed status and link to its archived specification.
* Updated the verification evidence to reference the archived issue location.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
ACKs for top commit:
josecelano:
ACK 5740f8d
Tree-SHA512: e2cb6ac4a0c51c868dc2c48a078ce8f503786b5560a61d860ce86636621adc6762af5ecceb8f6ace90ea7c73955c53b55acd3009785f66cb3360556649e7661b
…tral PR review without a mandatory Copilot review
389c2d2 docs(issues): [#3037] add the EPIC #2003 subissue row for #3037 (josecelano-bot)
03c655e docs(issues): add issue specification for #3037 (josecelano-bot)
Pull request description:
Related to #3037
## Summary
Spec-only PR for #3037 (sub-issue of EPIC #2003): make the pull-request review process reviewer-neutral, so no skill, tool default or document makes a Copilot review (or any named reviewer's review) a condition for readiness. The maintainer approved the specification on 2026-11-24 and placed this issue before #2977.
The specification records the maintainer's six decisions:
1. This issue removes Copilot as a condition and says only a maintainer requests a review; #2977 keeps the 60-minute deadline and the hand-over report.
2. No named reviewer is required; ready = checks pass, every review received so far addressed, ACK rule unchanged. AI agents never trigger a review; reviewers that review by themselves after a push are processed like any other.
3. The `wait-for-pr-review` poller watches every account except the pull request's author by default.
4. New audit records name the reviewer by GitHub login (`Reviewer` column); existing records stay valid.
5. For now, readiness ignores check runs that do not come from a workflow (for example `CodeRabbit`).
6. `.github/agents/` (#2904) and the `process-copilot-suggestions` redirect are not edited.
## Files
- `docs/issues/open/3037-2003-reviewer-neutral-pr-review/ISSUE.md`: the specification.
- `docs/issues/open/2003-overhaul-guardrails-and-automation/EPIC.md`: row 25 and a progress-log line.
- `project-words.txt`: `coderabbitai`.
## Validation
- `linter all` exits `0`; the pre-commit hook passed on both commits.
- Reviewer behaviour in the Background section was read with the GitHub API on PRs #3001 to #3032 on 2026-11-24.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
ACKs for top commit:
josecelano:
ACK 389c2d2
Tree-SHA512: 976356ec6f57614ad105397aea4ac4191506bb2ee7134b15cb2c4eb6f4b28268238d06c3938d155c9db68876f146f54b1fa905ea830dc992017ca09f6107fd98
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2917. Sub-issue SI-5 of EPIC #2912 ("Remove source locations from errors").
Removes the source locations from the configuration, TLS and UDP server errors, so a startup error shown to an operator no longer ends in a
packages/...rs:linepath.configuration: thesourceofUnableToProcessExplicitConfigFile,UnableToLoadFromEnvironmentVariable,UnableToLoadFromConfigFileandConfigErroris a plainBox<dyn std::error::Error + Send + Sync>, andFrom<figment::Error>no longer captures the caller location. The path and the figment diagnostic stay in the message. Thetorrust-located-errordependency is removed. The breaking change for the 4.0.0 release is recorded under "Semver bumps owed" in the publish plan (First publish of the unpublished workspace crates #2583).axum-server:BadTlsConfigholds a plain source andMissingTlsConfiglost its unusedlocationfield. Thetorrust-located-errordependency is removed.udp-server:Internallost itslocation,AuthRequiredis a unit variant, andErrorKind::TrackerAuthenticationcarries the error's message.Evidence (in the issue folder): red tests that fail on a source path (committed first), green tests, and the real tracker binary started before and after with a bad configuration file and with an invalid PEM file. Both messages still name the file, key or TLS failure and hold no path.
Notes:
UnableToLoadFromEnvironmentVariableandUnableToLoadFromConfigFileare never built, so they have no red test.configurationandaxum-servereach add a local copy of the path-check helper; SI-8 (#2996) cannot move them (torrust-tracker-test-helpersdepends onconfiguration, andaxum-serverhas no such dev-dependency), so they are recorded as copies 8 and 9 in the SI-8 spec and the EPIC row, to be cross-linked.tracker-clientstill usestorrust-located-error(SI-6).🤖 Generated with Claude Code
Summary by CodeRabbit