Coverage-exclusion evidence on the lab 6 stand (db3340d), failure checks, isolated and LB test runs, clean clone and secrets check; fill REPORT.md from the skeleton template, drop PLAN.md (last versiondb3340d). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1.7 KiB
1.7 KiB
Хранение паролей и токенов
- Команда:
python3 .claude/skills/run-mtusi-messenger/driver.py --port 8080 auth-storage - Дата: 2026-11-15, 06:37:41–06:37:43 UTC; код выхода 0
- Commit:
db3340d(веткаfeat/lab6-final), рабочее дерево без правок кода (изменены толькоQUESTIONS.mdи файлыevidence/) - Стенд: проект compose
mtusi-lab6, две реплики за HAProxy, телеметрия включена, собранmake run_dockerизHEAD; пользователи синтетические, пароль и токен только в памяти драйвера, в вывод не попадают - Спеки:
users, «Хэш в БД»,sessions, «Токена нет в хранилище» (исключения сверки покрытия: схема и дамп по HTTP не видны)
Итог: в users — строки Argon2id с разной солью у одного пароля, в sessions — только SHA-256 токена (32 байта); ни токена (текстом и в hex), ни пароля в pg_dump --data-only нет.
users auth_… and auth_…: same password P (36 characters with ':' and Cyrillic)
password_hash $argon2id$v=19$m=65536,t=3,p=4$… (97 chars)
password_hash $argon2id$v=19$m=65536,t=3,p=4$… (97 chars)
hashes differ: t
session of the first user: token T (43 characters); rows of sessions with token_hash = SHA-256(T): 1, octet_length 32
pg_dump --data-only: 12 COPY blocks; T as text: no, T in hex: no, P as text: no
PASS: only Argon2id strings and SHA-256 of the token are stored