3x-ui/internal
25f2002654 f6a233220a
perf(auth): look up api tokens by their hash index (#6915)
Every bearer-authenticated request, including each node-sync call, loaded all
enabled api_tokens rows and compared each stored SHA-256 hash in constant time.
Tokens are stored hashed, so the database can compare hashes directly: a
timing leak there reveals only a stored hash, which cannot authenticate. The
lookup is now one indexed seek on idx_api_tokens_token, which AutoMigrate
creates from the model tag on new and existing databases; scope and expiry
are still checked afterwards.
2026-10-24 05:06:49 +02:00
..
amneziawg fix(amneziawg): bound S1-S3 by the receive buffer, reject overlapping H (#6642) 2026-09-26 22:02:49 +02:00
amneziawgnet fix(amneziawg): respect tunnel MTU when writing UDP replies (#6780) 2026-10-12 03:11:09 +02:00
config v3.10.2 2026-10-14 17:18:43 +02:00
crypto/nodetoken fix(nodetoken): stop refusing every node-token key file on Windows 2026-09-27 15:55:42 +02:00
database perf(auth): look up api tokens by their hash index (#6915) 2026-10-24 05:06:49 +02:00
eventbus chore: refresh dependencies, fix Linux tool tasks, modernize Go idioms 2026-07-25 16:08:09 +02:00
logger fix(logger): reuse the open log rotator when InitLogger runs again 2026-09-27 15:32:20 +02:00
mtproto feat(mtproto): expose mtg-multi's per-IP pending-handshake limit 2026-10-14 16:46:20 +02:00
nodee2e chore(nodes): run the master+node scopes in parallel and document both layers 2026-10-05 13:30:18 +02:00
pia chore(build): bump Go toolchain to 1.27.0 2026-08-23 21:57:03 +02:00
sub fix(sub): pass numeric XMUX counts to Clash reuse-settings (#6843) 2026-10-24 04:51:16 +02:00
testpg test(database): give each package its own schema when tests run on PostgreSQL (#6594) 2026-09-26 21:13:42 +02:00
tuic fix(clients): balance renewal form layout and mode guidance (#6672) 2026-10-08 21:59:38 +02:00
tunnelmonitor style: adopt golangci-lint v2 and resolve all findings 2026-06-27 15:42:22 +02:00
util fix(link): read the XHTTP fields a vmess link carries inline (#6808) 2026-10-14 15:34:35 +02:00
web perf(auth): look up api tokens by their hash index (#6915) 2026-10-24 05:06:49 +02:00
xray feat(xray): update xray-core to v26.10.21 and adapt panel 2026-10-22 17:10:11 +02:00