Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
14 commits
Select commit Hold shift + click to select a range
6c7345e
test(tracker-core): [#2916] add red tests that tracker-core error tex…
josecelano-bot Nov 21, 2026
fd91340
fix(tracker-core): [#2916] remove source locations from whitelist and…
josecelano-bot Nov 21, 2026
fa34f8d
fix(tracker-core): [#2916] remove source locations from database errors
josecelano-bot Nov 21, 2026
b14fe4c
fix(tracker-core): [#2916] replace LocatedError sources of peer key e…
josecelano-bot Nov 21, 2026
5e5b1ac
docs(axum-http-server): [#2916] show the tracker-core authentication …
josecelano-bot Nov 21, 2026
6644887
docs(issues): [#2916] record the reproduction, red and green runs and…
josecelano-bot Nov 21, 2026
23b1464
docs(tracker-core): [#2916] describe the key verification outcomes an…
josecelano-bot Nov 21, 2026
6cb238e
docs(pr-reviews): [#2916] add the review audit of PR #2991
josecelano-bot Nov 21, 2026
951df21
docs(pr-reviews): [#2916] record the replies and resolved threads of …
josecelano-bot Nov 21, 2026
d7f012b
docs(axum-rest-api-server): [#2916] show the delete-key error reply w…
josecelano-bot Nov 21, 2026
4bc4266
test(tracker-core): [#2916] check only the prefix of the unregistered…
josecelano-bot Nov 21, 2026
b47aa94
docs(issues): [#2916] record the red-run commands and the red runs of…
josecelano-bot Nov 21, 2026
7aab8e8
docs(pr-reviews): [#2916] record round 2 of the review audit of PR #2991
josecelano-bot Nov 21, 2026
5024c26
docs(pr-reviews): [#2916] record the replies and resolved threads of …
josecelano-bot Nov 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"packages/tracker-core/docs/benchmarking/machine/*.txt",
"docs/issues/*/2850-non-negative-number-of-bytes/evidence/*.txt",
"docs/issues/*/2915-2912-si-3-http-tracker-request-errors/evidence/*.txt",
"docs/issues/*/2916-2912-si-4-tracker-core/evidence/*.txt",
".github/labels.json",
"/project-words.txt",
"repomix-output.xml",
Expand Down
83 changes: 49 additions & 34 deletions docs/issues/open/2916-2912-si-4-tracker-core/ISSUE.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
date -u: 2026-11-21 13:41:15
U1 UDP announce, info-hash not whitelisted (listed tracker)
udp_announce.py 17069 3b245504cf5f11bbdbe1201cea6a6bf45aee1bc0
action=3 message='tracker announce error: Tracker core whitelist error: The torrent: 3b245504cf5f11bbdbe1201cea6a6bf45aee1bc0, is not whitelisted'
H1 HTTP announce, info-hash not whitelisted (listed tracker)
GET :17070/announce?info_hash=%3B%24U%04%CF%5F%11%BB%DB%E1%20%1C%EAjk%F4Z%EE%1B%C0&peer_id=-qB00000000000000001&port=17548
d14:failure reason98:Tracker whitelist error: The torrent: 3b245504cf5f11bbdbe1201cea6a6bf45aee1bc0, is not whitelistede
W1 REST whitelist the info-hash
POST :17212/api/v1/whitelist/3b245504cf5f11bbdbe1201cea6a6bf45aee1bc0?token=<token>
{"status":"ok"}
W2 REST whitelist the same info-hash again
POST :17212/api/v1/whitelist/3b245504cf5f11bbdbe1201cea6a6bf45aee1bc0?token=<token>
{"status":"ok"}
W3 REST remove an info-hash that is not whitelisted
DELETE :17212/api/v1/whitelist/9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d?token=<token>
{"status":"ok"}
H2 HTTP announce without key (private tracker)
GET :17080/announce?info_hash=%3B%24U%04%CF%5F%11%BB%DB%E1%20%1C%EAjk%F4Z%EE%1B%C0&peer_id=-qB00000000000000001&port=17548
d14:failure reason56:Tracker authentication error: Missing authentication keye
H3 HTTP announce with an unregistered key (private tracker)
GET :17080/announce/YZSl4lMZupRuOpSRC3krIKR5BPB14nrJ?info_hash=%3B%24U%04%CF%5F%11%BB%DB%E1%20%1C%EAjk%F4Z%EE%1B%C0&peer_id=-qB00000000000000001&port=17548
d14:failure reason82:Tracker authentication error: Failed to read key: YZSl4lMZupRuOpSRC3krIKR5BPB14nrJe
K1 REST add a key valid for 60 s
POST :17213/api/v1/keys?token=<token>
{"key":"YZSl4lMZupRuOpSRC3krIKR5BPB14nrJ","valid_until":1795268536,"expiry_time":"2026-11-21 13:42:16 UTC"}
K2 REST add the same key again
POST :17213/api/v1/keys?token=<token>
Unhandled rejection: Err { reason: "failed to add key: The Sqlite3 query was malformed: error returned from database: (code: 2067) UNIQUE constraint failed: keys.key" }
K3 REST remove a key that does not exist
DELETE :17213/api/v1/key/ZZZZ4lMZupRuOpSRC3krIKR5BPB14nrJ?token=<token>
Unhandled rejection: Err { reason: "failed to delete key: Failed to remove record from Sqlite3 database, error-code: 0" }
K4 REST generate a key valid for 1 s
POST /api/v1/key/1?token=<token>
{"key":"Y1eJWFGXyLqpLd0EmrnV3RQGQo9YfzI6","valid_until":1795268477,"expiry_time":"2026-11-21 13:41:17 UTC"}
H4 HTTP announce with the expired key (private tracker)
GET :17080/announce/Y1eJWFGXyLqpLd0EmrnV3RQGQo9YfzI6?info_hash=%3B%24U%04%CF%5F%11%BB%DB%E1%20%1C%EAjk%F4Z%EE%1B%C0&peer_id=-qB00000000000000001&port=17548
d14:failure reason45:Tracker authentication error: Key has expirede
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
date -u: 2026-11-21 13:26:47
U1 UDP announce, info-hash not whitelisted (listed tracker)
udp_announce.py 17069 3b245504cf5f11bbdbe1201cea6a6bf45aee1bc0
action=3 message='tracker announce error: Tracker core whitelist error: The torrent: 3b245504cf5f11bbdbe1201cea6a6bf45aee1bc0, is not whitelisted, packages/tracker-core/src/whitelist/authorization.rs:61:23'
H1 HTTP announce, info-hash not whitelisted (listed tracker)
GET :17070/announce?info_hash=%3B%24U%04%CF%5F%11%BB%DB%E1%20%1C%EAjk%F4Z%EE%1B%C0&peer_id=-qB00000000000000001&port=17548
d14:failure reason158:Tracker whitelist error: The torrent: 3b245504cf5f11bbdbe1201cea6a6bf45aee1bc0, is not whitelisted, packages/tracker-core/src/whitelist/authorization.rs:61:23e
W1 REST whitelist the info-hash
POST :17212/api/v1/whitelist/3b245504cf5f11bbdbe1201cea6a6bf45aee1bc0?token=<token>
{"status":"ok"}
W2 REST whitelist the same info-hash again
POST :17212/api/v1/whitelist/3b245504cf5f11bbdbe1201cea6a6bf45aee1bc0?token=<token>
{"status":"ok"}
W3 REST remove an info-hash that is not whitelisted
DELETE :17212/api/v1/whitelist/9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d?token=<token>
{"status":"ok"}
H2 HTTP announce without key (private tracker)
GET :17080/announce?info_hash=%3B%24U%04%CF%5F%11%BB%DB%E1%20%1C%EAjk%F4Z%EE%1B%C0&peer_id=-qB00000000000000001&port=17548
d14:failure reason108:Tracker authentication error: Missing authentication key, packages/http-core/src/services/announce.rs:308:27e
H3 HTTP announce with an unregistered key (private tracker)
GET :17080/announce/YZSl4lMZupRuOpSRC3krIKR5BPB14nrJ?info_hash=%3B%24U%04%CF%5F%11%BB%DB%E1%20%1C%EAjk%F4Z%EE%1B%C0&peer_id=-qB00000000000000001&port=17548
d14:failure reason141:Tracker authentication error: Failed to read key: YZSl4lMZupRuOpSRC3krIKR5BPB14nrJ, packages/tracker-core/src/authentication/service.rs:98:27e
K1 REST add a key valid for 60 s
POST :17213/api/v1/keys?token=<token>
{"key":"YZSl4lMZupRuOpSRC3krIKR5BPB14nrJ","valid_until":1795267667,"expiry_time":"2026-11-21 13:27:47 UTC"}
K2 REST add the same key again
POST :17213/api/v1/keys?token=<token>
Unhandled rejection: Err { reason: "failed to add key: The Sqlite3 query was malformed: error returned from database: (code: 2067) UNIQUE constraint failed: keys.key, packages/tracker-core/src/databases/driver/sqlite/auth_key_store.rs:74:22, packages/tracker-core/src/authentication/handler.rs:103:50" }
K3 REST remove a key that does not exist
DELETE :17213/api/v1/key/ZZZZ4lMZupRuOpSRC3krIKR5BPB14nrJ?token=<token>
Unhandled rejection: Err { reason: "failed to delete key: Failed to remove record from Sqlite3 database, error-code: 0, packages/tracker-core/src/databases/driver/sqlite/auth_key_store.rs:108:27" }
K4 REST generate a key valid for 1 s
POST /api/v1/key/1?token=<token>
{"key":"m7FAV1hgRWlU0iLnmOku4ryjW6pg1vtk","valid_until":1795267608,"expiry_time":"2026-11-21 13:26:48 UTC"}
H4 HTTP announce with the expired key (private tracker)
GET :17080/announce/m7FAV1hgRWlU0iLnmOku4ryjW6pg1vtk?info_hash=%3B%24U%04%CF%5F%11%BB%DB%E1%20%1C%EAjk%F4Z%EE%1B%C0&peer_id=-qB00000000000000001&port=17548
d14:failure reason105:Tracker authentication error: Key has expired, packages/tracker-core/src/authentication/key/mod.rs:158:31e
Loading
Loading