ЛР 2: закрыть уровень 4
Завершить PostgreSQL, Redis-сессии, миграции, таймауты и диагностику. Зафиксировать собственные тесты и доказательства финального прогона: 43 PASS, 0 FAIL, 0 SKIP; 768 HTTP-запросов без ошибок. Добавить официальный отчёт с запуском, архитектурой, SQL-планами и ограничениями. PR отложен до завершения уровня 5.
This commit is contained in:
@@ -0,0 +1,119 @@
|
||||
# Проверка auth и миграций — 13.10.2026
|
||||
|
||||
**Общий результат: FAIL.** Код приложения, SQL-миграции и основной Compose
|
||||
во время этого прогона не менялись. Сверка SHA-256 защищённых файлов:
|
||||
изменений нет. Добавлены только дополнительные тесты и материалы проверки.
|
||||
|
||||
## Выполненные проверки
|
||||
|
||||
| Проверка | Результат |
|
||||
| --- | --- |
|
||||
| Публичный make check | PASS |
|
||||
| Полная OpenAPI 3.1 / JSON Schema проверка преподавателя | PASS; временный venv с requirements-dev.txt |
|
||||
| Сборка Docker-образов API и migrate | PASS |
|
||||
| Старт отдельного Compose-проекта | PASS |
|
||||
| Миграции на пустом volume | PASS; применены версии 1 и 2 |
|
||||
| Повторный запуск migrate | PASS; применено 0 миграций |
|
||||
| Три Go-теста мигратора | PASS |
|
||||
| Четыре Go-теста KDF | PASS |
|
||||
| Две проверки middleware | FAIL |
|
||||
| Шесть исходных проверок storage без Router | PASS |
|
||||
| Storage/Router: вход и logout | FAIL; panic при входе |
|
||||
| Дополнительный storage-тест реального TTL=2 секунды | PASS; истечение и новый вход через сервис |
|
||||
| Дополнительный компонентный тест AuthHandler + JSON body | FAIL; 201 и запись сессии вместо отказа |
|
||||
| Публичный smoke | FAIL при POST /api/v1/auth/sessions |
|
||||
| Публичный persistence | FAIL при входе; restart hook не был вызван |
|
||||
| Новый HTTP normal | 16 методов: 4 PASS, 12 FAIL; 18 failure-записей с учётом subtests |
|
||||
| Диагностика с подготовленными сессиями | 10 PASS / 4 FAIL; это не успешный сквозной auth acceptance |
|
||||
|
||||
Команды и исходные логи находятся рядом. summary.json содержит результаты по
|
||||
отдельным Go-тестам, описание области проверки и ограничения.
|
||||
|
||||
Новый набор запущен на отдельном Docker-проекте highload-auth-review-8d403a11
|
||||
с собственным PostgreSQL volume и портами. Для дополнительных storage-тестов
|
||||
использованы временные auth_test_* схемы с cleanup. Исходный volume проекта
|
||||
не использовался и не удалялся.
|
||||
|
||||
## Подтверждённые ошибки
|
||||
|
||||
1. **Router не сохраняет AuthHandler.**
|
||||
internal/transport/http/router.go:17–18 принимает authHandler, но не
|
||||
записывает его в Router. В результате CreateSession вызывается на nil
|
||||
receiver и падает в handler/auth.go:29. Клиент получает закрытое соединение,
|
||||
а не контрактный JSON. Это блокирует публичный smoke/persistence и почти
|
||||
все сценарии, которым требуется полноценный вход.
|
||||
|
||||
2. **Неправильный путь logout.**
|
||||
router.go:31 содержит DELETE /api/v1/auth/sessions. Обязательный
|
||||
DELETE /api/v1/auth/sessions/current с действительным токеном даёт 404
|
||||
вместо пустого 204. Это отдельно воспроизведено с подготовленной сессией.
|
||||
|
||||
3. **Middleware пишет две ошибки.**
|
||||
middleware/auth.go:31–33: после первого 401 отсутствует return.
|
||||
Вызов ValidateSession с пустым токеном приводит к повторной записи JSON.
|
||||
Go-тест обнаруживает второй JSON-объект, HTTP-клиент — invalid response JSON.
|
||||
|
||||
4. **Недоступность PostgreSQL не соответствует контракту.**
|
||||
На реально остановленном тестовом PostgreSQL валидный Bearer даёт 500
|
||||
вместо 503 unavailable. health/ready продолжает возвращать 200.
|
||||
health/live остаётся 200, что правильно. При восстановлении БД прежняя
|
||||
сессия снова работает. Дополнительно проверен middleware с ECONNREFUSED.
|
||||
|
||||
5. **Полностью пробельный password принимается.**
|
||||
Регистрация с 12 ASCII-пробелами и с 12 Unicode-пробелами возвращает 201
|
||||
вместо 400 по общей семантике обязательных непробельных строк.
|
||||
Проверка длины в service/user.go:49–52 есть, проверки пробельности нет.
|
||||
|
||||
6. **JSON body при входе игнорируется.**
|
||||
Корректный Basic + тело {} даёт 201 и создаёт строку sessions.
|
||||
Компонентный тест вызывает настоящий AuthHandler с настоящим сервисом/БД,
|
||||
отдельно от сломанного Router. Контракт описывает вход без JSON body.
|
||||
|
||||
7. **Verbose Goose выводит raw SQL.**
|
||||
cmd/migrate/main.go:122 включает WithVerbose(true). На первом запуске
|
||||
лог содержит поля statement с SQL целиком. Предыдущее описание помощника
|
||||
«raw SQL не выводится» было неверным. В текущих миграциях это DDL,
|
||||
credentials в показанных SQL не присутствуют, но описание и режим логирования
|
||||
надо согласовать. Приложение/мигратор ради прохождения этой проверки не менялись.
|
||||
|
||||
## Что работает независимо от сломанного входа
|
||||
|
||||
- Сохранение password KDF, соль, Unicode без усечения, отклонение повреждённых
|
||||
encoded hashes и неправильного пароля.
|
||||
- Хранение SHA-256 opaque токена, сохранение expiry при чтениях и новом пуле.
|
||||
- Отзыв конкретной сессии, неизменность других сессий, отклонение expired token.
|
||||
- Реальный двухсекундный TTL и получение нового токена через AuthService.
|
||||
- Rollback чата после ошибки вставки второго участника.
|
||||
- В диагностике с DB-fixtures: Bearer identity, игнорирование X-User-Id,
|
||||
скрытие чужого чата, sender из сессии и ASC/keyset история.
|
||||
- Полный реальный рестарт API и PostgreSQL сохранил подготовленную сессию,
|
||||
пользователей, сообщения и неизменный expires_at.
|
||||
|
||||
Подготовленные токены вставлялись только в отдельную тестовую БД. Такие probes
|
||||
не заменяют POST /auth/sessions и публичные acceptance-тесты. Поэтому общий
|
||||
результат остаётся FAIL, даже при успешных проверках хранения.
|
||||
|
||||
## Исправления самого тестового стенда
|
||||
|
||||
Первый диагностический рестарт не засчитывается: тестовый override отключал
|
||||
restart-политику и использовал автоматически выбранные host ports. После
|
||||
перезапуска порты изменились, а API завершился при временной недоступности БД.
|
||||
Override исправлен на исходную restart-политику и фиксированные выделенные
|
||||
порты; повторный корректный рестарт прошёл. Основной Compose не менялся.
|
||||
|
||||
Первый запуск дополнительного handler-теста совпал с рестартом PostgreSQL
|
||||
и остановился на setup. Он не считается ошибкой handler. После восстановления
|
||||
тест повторён; подтверждены 201 и создание сессии при JSON body.
|
||||
Лог недостоверного setup сохранён отдельно.
|
||||
|
||||
## Открытые проверки
|
||||
|
||||
Сквозной expiry/logout/persistence через обязательный вход необходимо повторить
|
||||
после исправления Router. Нельзя объявлять полное соответствие по одним
|
||||
компонентным тестам. Redis/Valkey пока отсутствует и не проверялся.
|
||||
EXPLAIN на >=10 000 сообщений и критерии выбранного трека 5 этим прогоном
|
||||
не подтверждаются.
|
||||
|
||||
Следующий порядок исправления: wiring Router и путь logout → return middleware
|
||||
→ body/password validation → 503/readiness → логирование мигратора.
|
||||
Изменения реализации требуют согласия пользователя.
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"exit_code": 1,
|
||||
"results": [
|
||||
{
|
||||
"test": "TestStorageAuthHandlerRejectsJSONBody",
|
||||
"status": "fail"
|
||||
},
|
||||
{
|
||||
"test": "TestStorageShortTTLExpiresAndReLoginWorks",
|
||||
"status": "pass"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{"Time":"2026-10-13T18:02:08.603258+03:00","Action":"start","Package":"highload/student-tests/auth_tests"}
|
||||
{"Time":"2026-10-13T18:02:09.222003+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestStorageAuthHandlerRejectsJSONBody"}
|
||||
{"Time":"2026-10-13T18:02:09.222276+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageAuthHandlerRejectsJSONBody","Output":"=== RUN TestStorageAuthHandlerRejectsJSONBody\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-13T18:02:09.453187+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageAuthHandlerRejectsJSONBody","Output":" auth_handler_test.go:26: login with JSON body must return 400; received 201\n","OutputType":"error"}
|
||||
{"Time":"2026-10-13T18:02:09.455267+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageAuthHandlerRejectsJSONBody","Output":" auth_handler_test.go:33: login with forbidden JSON body created a session\n","OutputType":"error"}
|
||||
{"Time":"2026-10-13T18:02:09.468194+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageAuthHandlerRejectsJSONBody","Output":"--- FAIL: TestStorageAuthHandlerRejectsJSONBody (0.25s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-13T18:02:09.468226+03:00","Action":"fail","Package":"highload/student-tests/auth_tests","Test":"TestStorageAuthHandlerRejectsJSONBody","Elapsed":0.25}
|
||||
{"Time":"2026-10-13T18:02:09.468397+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestStorageShortTTLExpiresAndReLoginWorks"}
|
||||
{"Time":"2026-10-13T18:02:09.468427+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageShortTTLExpiresAndReLoginWorks","Output":"=== RUN TestStorageShortTTLExpiresAndReLoginWorks\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-13T18:02:11.860493+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageShortTTLExpiresAndReLoginWorks","Output":"--- PASS: TestStorageShortTTLExpiresAndReLoginWorks (2.39s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-13T18:02:11.860626+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestStorageShortTTLExpiresAndReLoginWorks","Elapsed":2.39}
|
||||
{"Time":"2026-10-13T18:02:11.860692+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Output":"FAIL\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-13T18:02:11.862871+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Output":"FAIL\thighload/student-tests/auth_tests\t3.259s\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-13T18:02:11.862909+03:00","Action":"fail","Package":"highload/student-tests/auth_tests","Elapsed":3.26}
|
||||
@@ -0,0 +1 @@
|
||||
{"exit_code": 1}
|
||||
@@ -0,0 +1,11 @@
|
||||
services:
|
||||
api:
|
||||
ports: !override
|
||||
- "127.0.0.1:65049:8080"
|
||||
environment:
|
||||
APP_HOST: 0.0.0.0
|
||||
APP_PORT: "8080"
|
||||
SESSION_TTL_SECONDS: "3600"
|
||||
postgres:
|
||||
ports: !override
|
||||
- "127.0.0.1:49253:5432"
|
||||
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"exit_code": 1,
|
||||
"results": [
|
||||
{
|
||||
"test": "TestStoragePasswordIsKDFAndDuplicateCannotOverwrite",
|
||||
"status": "pass"
|
||||
},
|
||||
{
|
||||
"test": "TestStorageSessionHashAndReconnectPreserveDeadline",
|
||||
"status": "pass"
|
||||
},
|
||||
{
|
||||
"test": "TestStorageWrongCredentialsNeverCreateSession",
|
||||
"status": "pass"
|
||||
},
|
||||
{
|
||||
"test": "TestStorageRevocationIsPersistentAndSessionSpecific",
|
||||
"status": "pass"
|
||||
},
|
||||
{
|
||||
"test": "TestStorageExpiredSessionCannotRevive",
|
||||
"status": "pass"
|
||||
},
|
||||
{
|
||||
"test": "TestStorageChatRollbackAfterMemberInsertFailure",
|
||||
"status": "pass"
|
||||
},
|
||||
{
|
||||
"test": "TestStorageHTTPAuthRoutingAndLogout",
|
||||
"status": "fail"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
{"Time":"2026-10-13T17:52:25.249895+03:00","Action":"start","Package":"highload/student-tests/auth_tests"}
|
||||
{"Time":"2026-10-13T17:52:25.979204+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestStoragePasswordIsKDFAndDuplicateCannotOverwrite"}
|
||||
{"Time":"2026-10-13T17:52:25.980312+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStoragePasswordIsKDFAndDuplicateCannotOverwrite","Output":"=== RUN TestStoragePasswordIsKDFAndDuplicateCannotOverwrite\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-13T17:52:26.329176+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStoragePasswordIsKDFAndDuplicateCannotOverwrite","Output":"--- PASS: TestStoragePasswordIsKDFAndDuplicateCannotOverwrite (0.35s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-13T17:52:26.329262+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestStoragePasswordIsKDFAndDuplicateCannotOverwrite","Elapsed":0.35}
|
||||
{"Time":"2026-10-13T17:52:26.329793+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestStorageSessionHashAndReconnectPreserveDeadline"}
|
||||
{"Time":"2026-10-13T17:52:26.329833+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageSessionHashAndReconnectPreserveDeadline","Output":"=== RUN TestStorageSessionHashAndReconnectPreserveDeadline\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-13T17:52:26.544672+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageSessionHashAndReconnectPreserveDeadline","Output":"--- PASS: TestStorageSessionHashAndReconnectPreserveDeadline (0.22s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-13T17:52:26.54471+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestStorageSessionHashAndReconnectPreserveDeadline","Elapsed":0.22}
|
||||
{"Time":"2026-10-13T17:52:26.54473+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestStorageWrongCredentialsNeverCreateSession"}
|
||||
{"Time":"2026-10-13T17:52:26.544747+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageWrongCredentialsNeverCreateSession","Output":"=== RUN TestStorageWrongCredentialsNeverCreateSession\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-13T17:52:26.727115+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageWrongCredentialsNeverCreateSession","Output":"--- PASS: TestStorageWrongCredentialsNeverCreateSession (0.18s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-13T17:52:26.727173+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestStorageWrongCredentialsNeverCreateSession","Elapsed":0.18}
|
||||
{"Time":"2026-10-13T17:52:26.727219+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestStorageRevocationIsPersistentAndSessionSpecific"}
|
||||
{"Time":"2026-10-13T17:52:26.727237+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageRevocationIsPersistentAndSessionSpecific","Output":"=== RUN TestStorageRevocationIsPersistentAndSessionSpecific\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-13T17:52:26.976299+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageRevocationIsPersistentAndSessionSpecific","Output":"--- PASS: TestStorageRevocationIsPersistentAndSessionSpecific (0.25s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-13T17:52:26.976343+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestStorageRevocationIsPersistentAndSessionSpecific","Elapsed":0.25}
|
||||
{"Time":"2026-10-13T17:52:26.976362+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestStorageExpiredSessionCannotRevive"}
|
||||
{"Time":"2026-10-13T17:52:26.97637+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageExpiredSessionCannotRevive","Output":"=== RUN TestStorageExpiredSessionCannotRevive\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-13T17:52:27.168162+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageExpiredSessionCannotRevive","Output":"--- PASS: TestStorageExpiredSessionCannotRevive (0.19s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-13T17:52:27.168218+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestStorageExpiredSessionCannotRevive","Elapsed":0.19}
|
||||
{"Time":"2026-10-13T17:52:27.16823+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestStorageChatRollbackAfterMemberInsertFailure"}
|
||||
{"Time":"2026-10-13T17:52:27.168252+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageChatRollbackAfterMemberInsertFailure","Output":"=== RUN TestStorageChatRollbackAfterMemberInsertFailure\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-13T17:52:27.279158+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageChatRollbackAfterMemberInsertFailure","Output":"--- PASS: TestStorageChatRollbackAfterMemberInsertFailure (0.11s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-13T17:52:27.27919+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestStorageChatRollbackAfterMemberInsertFailure","Elapsed":0.11}
|
||||
{"Time":"2026-10-13T17:52:27.279217+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestStorageHTTPAuthRoutingAndLogout"}
|
||||
{"Time":"2026-10-13T17:52:27.279223+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageHTTPAuthRoutingAndLogout","Output":"=== RUN TestStorageHTTPAuthRoutingAndLogout\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-13T17:52:27.368963+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageHTTPAuthRoutingAndLogout","Output":" transport_test.go:142: auth router panicked; check constructor/handler wiring\n","OutputType":"error"}
|
||||
{"Time":"2026-10-13T17:52:27.37862+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageHTTPAuthRoutingAndLogout","Output":"--- FAIL: TestStorageHTTPAuthRoutingAndLogout (0.10s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-13T17:52:27.378642+03:00","Action":"fail","Package":"highload/student-tests/auth_tests","Test":"TestStorageHTTPAuthRoutingAndLogout","Elapsed":0.1}
|
||||
{"Time":"2026-10-13T17:52:27.378652+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Output":"FAIL\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-13T17:52:27.38163+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Output":"FAIL\thighload/student-tests/auth_tests\t2.131s\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-13T17:52:27.38166+03:00","Action":"fail","Package":"highload/student-tests/auth_tests","Elapsed":2.132}
|
||||
@@ -0,0 +1,12 @@
|
||||
[
|
||||
{
|
||||
"name": "teacher-smoke",
|
||||
"exit_code": 1,
|
||||
"log": "/tmp/highload-auth-review-37affab7/teacher-smoke.log"
|
||||
},
|
||||
{
|
||||
"name": "auth-normal",
|
||||
"exit_code": 1,
|
||||
"log": "/tmp/highload-auth-review-37affab7/auth-normal.log"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env python3
|
||||
import json,subprocess
|
||||
from pathlib import Path
|
||||
s=json.loads(Path('/tmp/highload-auth-review-state.json').read_text())
|
||||
assert s['project'].startswith('highload-auth-review-')
|
||||
Path(s['directory'],'restart_hook_executed').touch()
|
||||
base=['docker','compose','-p',s['project'],'-f',str(Path(s['root'])/'compose.yaml'),'-f',s['override']]
|
||||
raise SystemExit(subprocess.run(base+['restart','api','postgres']).returncode)
|
||||
@@ -0,0 +1,75 @@
|
||||
{
|
||||
"scope": "DIAGNOSTIC ONLY: sessions inserted into isolated test DB, login endpoint NOT validated by these probes",
|
||||
"results": [
|
||||
{
|
||||
"name": "fixture session authenticates user",
|
||||
"status": "PASS",
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"name": "X-User-Id cannot override bearer",
|
||||
"status": "PASS",
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"name": "unknown token is unauthorized",
|
||||
"status": "PASS",
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"name": "missing auth has one JSON error",
|
||||
"status": "FAIL",
|
||||
"detail": "invalid response JSON"
|
||||
},
|
||||
{
|
||||
"name": "expired stored token is unauthorized",
|
||||
"status": "PASS",
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"name": "outsider chat stays hidden",
|
||||
"status": "PASS",
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"name": "sender derives from bearer",
|
||||
"status": "PASS",
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"name": "history ascending with keyset",
|
||||
"status": "PASS",
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"name": "contract logout path returns 204",
|
||||
"status": "FAIL",
|
||||
"detail": "DELETE /api/v1/auth/sessions/current: expected [204], received 404"
|
||||
},
|
||||
{
|
||||
"name": "full restart preserves seeded token/messages/deadline",
|
||||
"status": "PASS",
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"name": "live stays available during PostgreSQL outage",
|
||||
"status": "PASS",
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"name": "ready returns 503 during PostgreSQL outage",
|
||||
"status": "FAIL",
|
||||
"detail": "GET /health/ready: expected [503], received 200"
|
||||
},
|
||||
{
|
||||
"name": "valid bearer returns 503 during PostgreSQL outage",
|
||||
"status": "FAIL",
|
||||
"detail": "GET /api/v1/users/me: expected [503], received 500"
|
||||
},
|
||||
{
|
||||
"name": "session recovers after PostgreSQL outage",
|
||||
"status": "PASS",
|
||||
"detail": null
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
import base64,datetime as dt,hashlib,json,secrets,subprocess,sys,time,uuid
|
||||
from pathlib import Path
|
||||
s=json.loads(Path('/tmp/highload-auth-review-state.json').read_text())
|
||||
root=Path(s['root'])
|
||||
sys.path.insert(0,str(root/'tests'))
|
||||
from client import Client,Failure,check
|
||||
c=Client('http://'+s['api_address'],timeout=5)
|
||||
base=['docker','compose','-p',s['project'],'-f',str(root/'compose.yaml'),'-f',s['override']]
|
||||
assert s['project'].startswith('highload-auth-review-')
|
||||
results=[]
|
||||
def record(name,fn):
|
||||
try:
|
||||
value=fn()
|
||||
results.append({'name':name,'status':'PASS','detail':value})
|
||||
except (Failure,ValueError,OSError,subprocess.SubprocessError) as e:
|
||||
results.append({'name':name,'status':'FAIL','detail':str(e) if isinstance(e,Failure) else type(e).__name__})
|
||||
print(json.dumps(results[-1]),flush=True)
|
||||
def sql(statement):
|
||||
p=subprocess.run(base+['exec','-T','postgres','psql','-U','messenger','-d','messenger','-qAt','-v','ON_ERROR_STOP=1'],input=statement,text=True,capture_output=True,timeout=10)
|
||||
check(p.returncode==0,'diagnostic fixture SQL failed (details suppressed)')
|
||||
return p.stdout.strip()
|
||||
def actor(expired=False):
|
||||
body={'username':'probe_'+uuid.uuid4().hex[:18],'display_name':'Diagnostic','password':'Synthetic:'+uuid.uuid4().hex}
|
||||
user=c.call('POST','/api/v1/users',201,body=body,schema='User')['json']
|
||||
token=secrets.token_urlsafe(32)
|
||||
token_hash=hashlib.sha256(token.encode()).hexdigest()
|
||||
times="now()-interval '2 minutes', now()-interval '1 minute'" if expired else "now(), now()+interval '1 hour'"
|
||||
sql("INSERT INTO sessions(token_hash,user_id,created_at,expires_at) VALUES (decode('"+token_hash+"','hex'),'"+user['id']+"',"+times+");")
|
||||
return {'id':user['id'],'token':token,'user':user,'registration':body,'hash':token_hash}
|
||||
a,b,e=actor(),actor(),actor()
|
||||
record('fixture session authenticates user',lambda:check(c.call('GET','/api/v1/users/me',actor=a,schema='User')['json']==a['user'],'wrong session owner'))
|
||||
record('X-User-Id cannot override bearer',lambda:check(c.call('GET','/api/v1/users/me',actor=a,headers={'X-User-Id':e['id']},schema='User')['json']==a['user'],'legacy identity override'))
|
||||
record('unknown token is unauthorized',lambda:c.call('GET','/api/v1/users/me',401,headers={'Authorization':'Bearer '+secrets.token_urlsafe(32)}) and None)
|
||||
record('missing auth has one JSON error',lambda:c.call('GET','/api/v1/users/me',401) and None)
|
||||
expired=actor(expired=True)
|
||||
record('expired stored token is unauthorized',lambda:c.call('GET','/api/v1/users/me',401,actor=expired) and None)
|
||||
room=c.call('POST','/api/v1/chats',201,actor=a,body={'title':'Diagnostic','member_ids':[a['id'],b['id']]},schema='Chat')['json']
|
||||
path='/api/v1/chats/'+room['id']
|
||||
record('outsider chat stays hidden',lambda:c.call('GET',path,404,actor=e) and None)
|
||||
sent=c.call('POST',path+'/messages',201,actor=a,headers={'X-User-Id':b['id']},body={'text':'Diagnostic sender'},schema='Message')['json']
|
||||
record('sender derives from bearer',lambda:check(sent['sender_id']==a['id'],'incorrect sender'))
|
||||
second=c.message(b,room,'Diagnostic second')['json']
|
||||
from urllib.parse import quote
|
||||
def history():
|
||||
p1=c.call('GET',path+'/messages?limit=1',actor=a,schema='MessagePage')['json']
|
||||
check(p1['next_cursor'] is not None,'missing continuation')
|
||||
p2=c.call('GET',path+'/messages?limit=1&cursor='+quote(p1['next_cursor'],safe=''),actor=a,schema='MessagePage')['json']
|
||||
check(p1['items']+p2['items']==[sent,second] and p2['next_cursor'] is None,'incorrect ascending pages')
|
||||
record('history ascending with keyset',history)
|
||||
record('contract logout path returns 204',lambda:c.call('DELETE','/api/v1/auth/sessions/current',204,actor=e) and None)
|
||||
original_expiry=sql("SELECT expires_at FROM sessions WHERE token_hash=decode('"+a['hash']+"','hex');")
|
||||
def restart():
|
||||
p=subprocess.run(base+['restart','api','postgres'],stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL,timeout=90)
|
||||
check(p.returncode==0,'test-stack restart failed')
|
||||
for _ in range(90):
|
||||
try:
|
||||
if c.call('GET','/api/v1/users/me',actor=a,schema='User')['json']==a['user']: break
|
||||
except Failure: pass
|
||||
time.sleep(.3)
|
||||
else: raise Failure('existing session did not survive full restart')
|
||||
messages=c.call('GET',path+'/messages',actor=b,schema='MessagePage')['json']['items']
|
||||
check(messages==[sent,second],'confirmed messages changed after restart')
|
||||
check(sql("SELECT expires_at FROM sessions WHERE token_hash=decode('"+a['hash']+"','hex');")==original_expiry,'restart extended session TTL')
|
||||
record('full restart preserves seeded token/messages/deadline',restart)
|
||||
try:
|
||||
p=subprocess.run(base+['stop','postgres'],stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL,timeout=70)
|
||||
check(p.returncode==0,'test PostgreSQL stop failed')
|
||||
record('live stays available during PostgreSQL outage',lambda:c.call('GET','/health/live',schema='Health') and None)
|
||||
record('ready returns 503 during PostgreSQL outage',lambda:c.call('GET','/health/ready',503) and None)
|
||||
record('valid bearer returns 503 during PostgreSQL outage',lambda:c.call('GET','/api/v1/users/me',503,actor=a) and None)
|
||||
finally:
|
||||
p=subprocess.run(base+['start','postgres'],stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL,timeout=30)
|
||||
check(p.returncode==0,'test PostgreSQL recovery failed')
|
||||
for _ in range(50):
|
||||
try:
|
||||
c.call('GET','/api/v1/users/me',actor=a,schema='User');break
|
||||
except Failure: time.sleep(.3)
|
||||
else: raise Failure('session unavailable after PostgreSQL recovery')
|
||||
record('session recovers after PostgreSQL outage',lambda:check(c.call('GET','/api/v1/users/me',actor=a,schema='User')['json']==a['user'],'session changed'))
|
||||
Path(s['directory'],'seeded-diagnostics.json').write_text(json.dumps({'scope':'DIAGNOSTIC ONLY: sessions inserted into isolated test DB, login endpoint NOT validated by these probes','results':results},indent=2))
|
||||
@@ -0,0 +1,59 @@
|
||||
{
|
||||
"internal/database/database.go": "c009ab86a3c1b3ca0a153c12fee3a656be094583c2a811ef972d46d8b3300e70",
|
||||
"internal/config/config.go": "6fc7c51652850dbd37c27c52170af16375ca8d8ba28110c6889bb37387c635e8",
|
||||
"internal/security/password.go": "8f74bef9216a2d12aa734e04fa786eac6b31f1378fe42f729fe1b97495c10487",
|
||||
"internal/model/user.go": "4bfd2d78e72f1c80b12541f2abc8500613e8f4d101575bd5d74fac22b52e3617",
|
||||
"internal/model/message.go": "b9ce1bdc5fd8ccf20d18033f56ac47c8a64352584ee29ab27915535557003a72",
|
||||
"internal/model/session.go": "b455d730e4e3efc95c6d1fe74ab43d86153e4bf863c09efd36bfe57efc669bc2",
|
||||
"internal/model/chat.go": "e0213f8360ea106b3627aa50cc87710153ff8e353475b42c2becdb9a32592660",
|
||||
"internal/service/user.go": "c893e332f09dd77b4eca5e36e7c674fff41995ea29dc1c001ebd2d872b2a234c",
|
||||
"internal/service/auth.go": "feb29e6bf3deba85144fa1940c75314e76cc7ff7cc2fd0054feb869d63259018",
|
||||
"internal/service/message.go": "f673e624e610ab794008bd12c33069a6f3f21fd8c50304bb878a13900b3212b9",
|
||||
"internal/service/helper.go": "22f9a560c5e15186fd707b3b7bd2f0691e278a082e1b22b058b8d8f7ece48df8",
|
||||
"internal/service/chat.go": "114dc6e5c3f582be03d44db7ab2d75173f243f33872be11d462798df9ce68993",
|
||||
"internal/service/errors.go": "3d8da7a597db6216ff7899c16692729258a6f0fe54204016af68f987ad67a48b",
|
||||
"internal/transport/http/router.go": "1fbb19238c02b93b62757ecb4fb6281179d9327bc8cd9feb3d9fd558962c180b",
|
||||
"internal/transport/http/handler/chat_types.go": "d181bce0f003749d813c1254df4c8ebcc1b99ff506b61efa6899da4a499e95f4",
|
||||
"internal/transport/http/handler/user.go": "86fd65ed176e9a83dc27c1112ff8384bc5aa32a92410290fb505d715ca167775",
|
||||
"internal/transport/http/handler/auth.go": "ef228e93a5c4bdd2f07cce447cfca38863631a0eab892cb27b56e357632c4d3b",
|
||||
"internal/transport/http/handler/message.go": "43dfcabbd24fe809e407958fed34bf567bdc6dd45c61f06c2e6d6bdd3d68b3ed",
|
||||
"internal/transport/http/handler/health.go": "97708b3a82df0bf92516ef50ea8ec43f58c5905c61ae94cad2afd6e219112b7e",
|
||||
"internal/transport/http/handler/chat.go": "e5214ebf94ac9b8f37537e1a3fc844a2e8ae4e9b5aa159fe2b6e4da9ab2342f0",
|
||||
"internal/transport/http/handler/auth_types.go": "5ffcd182606a77d538efb5f1a51df23b8a324a605b5d226026048d34c409ebdb",
|
||||
"internal/transport/http/handler/health_types.go": "02ee3031e10fbb279e020f409fbd905ae2640aa306b2c558c3f8e6dcfe9efa80",
|
||||
"internal/transport/http/handler/message_types.go": "b7649808c889cc9518bf5710415550abf4bed9ad5052a327c88181ed3b45aafc",
|
||||
"internal/transport/http/handler/user_types.go": "0c4450be649afe5edf4e8d3ac9baada79deb9e1423ace56b87aa227ebd0eb998",
|
||||
"internal/transport/http/middleware/auth.go": "d12e71ffda8ae75f0a946b876ca3be24747c7cca901c683b91f7f33d224c09f8",
|
||||
"internal/transport/http/middleware/logging.go": "a477fda512953eb9f46266537c12ace9cc992ba8f036a5b041f9f8295bfd2097",
|
||||
"internal/transport/http/middleware/context.go": "f6db0e807659f30b05cae91f73c70d87f359760c57110e0d25b49a65bd0394a5",
|
||||
"internal/transport/http/httputils/helper.go": "61489b1d51bd292a0bc97c7eea4c619460b1d6cc18ede6c62fb745b80419800a",
|
||||
"internal/database/repository/user.go": "0c3fc62b808a2f3af7477ac25d412b901658042c853fd7657b56d542e450ab13",
|
||||
"internal/database/repository/message.go": "16ec89107d038374d92a3e1d7f65f885164d058dc650aabeffd1b18b5c4adedd",
|
||||
"internal/database/repository/session.go": "eb789a557739cf940f8d1af9319b3f6084bb4cb7ba166f29e362e7dc27ae5ddd",
|
||||
"internal/database/repository/utils.go": "5fe7073ef5497f4d66b83382e341ade746111ea27093301740a31c6f7ae24afd",
|
||||
"internal/database/repository/chat.go": "8e5c406508e191680853223c54d86cec617317a084ea8de6c5a5eb70973721b4",
|
||||
"internal/database/repository/errors.go": "883b3de9bb3fe2c05bcf64bbea9f2d6c2047b78e70333a5dd689361b0449a75b",
|
||||
"internal/database/sqlc/models.go": "3cabe7a22e3871e170d72698b63fabde9e1c3ae2e832be3586fa36052a2c5224",
|
||||
"internal/database/sqlc/db.go": "3ca71a7f007a39987cae838da64303419dd804d2d1b6227676f47177971d76cf",
|
||||
"internal/database/sqlc/sessions.sql.go": "3dd798158d7da2c9ac973ed98bf711620c46982c3abf93105c002a43d3b3a84e",
|
||||
"internal/database/sqlc/chats.sql.go": "3dccf4b0ffa918ec5a3b66026b3dab4027456b499486359881000d184944802c",
|
||||
"internal/database/sqlc/messages.sql.go": "224d6d8bd21426759ca6500e0eb3563564d51e639f1b6c64db4b3a43a5241c2a",
|
||||
"internal/database/sqlc/users.sql.go": "b954abd5b5964df39c20d857a60105513af84c8df68ce1ac9421da541a7800f4",
|
||||
"internal/database/sqlc/chat_members.sql.go": "9e8cd177f6f888c72d19857fd4748fbb2020770c1af772a463fe3d1b813b37ee",
|
||||
"cmd/migrate/main.go": "c20369370457d4211eb9a1bb5b1b95a859e2cd7ccfe893e3b0e2eee4be726d08",
|
||||
"cmd/migrate/main_test.go": "a88f2252d70caf644904331182dc3afd4df48b825a0329a82482798ec90b5d46",
|
||||
"cmd/api/main.go": "a00e4a88ced9ea2e1bc0124cfd9672a4e843a7c442ebf371f1e96abbd8bd3022",
|
||||
"db/migrations/embed.go": "a42e52ab05bc89b557a5bc6b3f0215883d99c4a039a8b32d6c19e66b2f769508",
|
||||
"db/migrations/00002_add_created_at_defaults.sql": "e0680838294b93f916d727a3a20d83aca7c3f74077202c9696b1fc73cda14649",
|
||||
"db/migrations/00001_init_schema.sql": "32223afbc24f8250de055690c9e86299ebf2cd7a0d3ef2c59d3b2a5aaa41e84e",
|
||||
"db/queries/chat_members.sql": "e70940e35f325550041c290a571901ead4a6f93dece857ffa229f2f1c83eddf8",
|
||||
"db/queries/users.sql": "0d73a6d46f4d4a1b0af37b750a208c07a38249f76974b41748f32c1949f990df",
|
||||
"db/queries/messages.sql": "022c9f7aade55345f6cebd31f38084e73cb9a1419d56fa5316eaa36c9da52860",
|
||||
"db/queries/chats.sql": "8c52c762da78eb3a3eb7402b17ec87bd7fc2e1387f6ddb8e297b4f2d75beca7b",
|
||||
"db/queries/sessions.sql": "787014f9d5000bddee7f9cf32ff78091491e822afafdc8c81b3252c5c20a535b",
|
||||
"compose.yaml": "1352be71574acf2151c7f5124ac4fa1e71286da9a759467605e787d5cdf0d5eb",
|
||||
"Dockerfile": "eddd3924e99335ce0253792e85bcabb19b50d684c34073dd3b6ff958d0f7c652",
|
||||
"Dockerfile.migrate": "0ab04cba4c2bb033c4d7c7d3a5984d8a27e8f355ff90e6023c3b7912d2211dec",
|
||||
"go.mod": "f704b1f0bb9cd5692924f5d4a6a368a1b6e256b53d8cb3b87af6fb6991891a50",
|
||||
"go.sum": "f6af2acfc00713570bc0ce2152c034674fff4ab40c42bf4a22d14420741abf64"
|
||||
}
|
||||
@@ -0,0 +1,209 @@
|
||||
{
|
||||
"overall": "FAIL",
|
||||
"checked_at": "2026-10-13T15:08:39.809268+00:00",
|
||||
"project": "highload-auth-review-8d403a11",
|
||||
"source_changed_during_run": [],
|
||||
"checks": [
|
||||
{
|
||||
"name": "teacher make check",
|
||||
"status": "PASS"
|
||||
},
|
||||
{
|
||||
"name": "teacher OpenAPI validation",
|
||||
"status": "PASS",
|
||||
"environment": "temporary venv, requirements-dev.txt"
|
||||
},
|
||||
{
|
||||
"name": "migrator unit tests",
|
||||
"status": "PASS"
|
||||
},
|
||||
{
|
||||
"name": "KDF unit tests",
|
||||
"status": "PASS",
|
||||
"top_level_tests": 4
|
||||
},
|
||||
{
|
||||
"name": "middleware unit tests",
|
||||
"status": "FAIL",
|
||||
"top_level_tests": 2
|
||||
},
|
||||
{
|
||||
"name": "initial migration from empty volume",
|
||||
"status": "PASS",
|
||||
"applied": 2
|
||||
},
|
||||
{
|
||||
"name": "repeat migration",
|
||||
"status": "PASS",
|
||||
"applied": 0
|
||||
},
|
||||
{
|
||||
"name": "go-storage-summary.json",
|
||||
"results": {
|
||||
"exit_code": 1,
|
||||
"results": [
|
||||
{
|
||||
"test": "TestStoragePasswordIsKDFAndDuplicateCannotOverwrite",
|
||||
"status": "pass"
|
||||
},
|
||||
{
|
||||
"test": "TestStorageSessionHashAndReconnectPreserveDeadline",
|
||||
"status": "pass"
|
||||
},
|
||||
{
|
||||
"test": "TestStorageWrongCredentialsNeverCreateSession",
|
||||
"status": "pass"
|
||||
},
|
||||
{
|
||||
"test": "TestStorageRevocationIsPersistentAndSessionSpecific",
|
||||
"status": "pass"
|
||||
},
|
||||
{
|
||||
"test": "TestStorageExpiredSessionCannotRevive",
|
||||
"status": "pass"
|
||||
},
|
||||
{
|
||||
"test": "TestStorageChatRollbackAfterMemberInsertFailure",
|
||||
"status": "pass"
|
||||
},
|
||||
{
|
||||
"test": "TestStorageHTTPAuthRoutingAndLogout",
|
||||
"status": "fail"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "http-summary.json",
|
||||
"results": [
|
||||
{
|
||||
"name": "teacher-smoke",
|
||||
"exit_code": 1,
|
||||
"log": "/tmp/highload-auth-review-37affab7/teacher-smoke.log"
|
||||
},
|
||||
{
|
||||
"name": "auth-normal",
|
||||
"exit_code": 1,
|
||||
"log": "/tmp/highload-auth-review-37affab7/auth-normal.log"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "auth-extra-summary.json",
|
||||
"results": {
|
||||
"exit_code": 1,
|
||||
"results": [
|
||||
{
|
||||
"test": "TestStorageAuthHandlerRejectsJSONBody",
|
||||
"status": "fail"
|
||||
},
|
||||
{
|
||||
"test": "TestStorageShortTTLExpiresAndReLoginWorks",
|
||||
"status": "pass"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "teacher-persistence-summary.json",
|
||||
"results": {
|
||||
"exit_code": 1,
|
||||
"hook_executed": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "seeded-diagnostics.json",
|
||||
"results": {
|
||||
"scope": "DIAGNOSTIC ONLY: sessions inserted into isolated test DB, login endpoint NOT validated by these probes",
|
||||
"results": [
|
||||
{
|
||||
"name": "fixture session authenticates user",
|
||||
"status": "PASS",
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"name": "X-User-Id cannot override bearer",
|
||||
"status": "PASS",
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"name": "unknown token is unauthorized",
|
||||
"status": "PASS",
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"name": "missing auth has one JSON error",
|
||||
"status": "FAIL",
|
||||
"detail": "invalid response JSON"
|
||||
},
|
||||
{
|
||||
"name": "expired stored token is unauthorized",
|
||||
"status": "PASS",
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"name": "outsider chat stays hidden",
|
||||
"status": "PASS",
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"name": "sender derives from bearer",
|
||||
"status": "PASS",
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"name": "history ascending with keyset",
|
||||
"status": "PASS",
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"name": "contract logout path returns 204",
|
||||
"status": "FAIL",
|
||||
"detail": "DELETE /api/v1/auth/sessions/current: expected [204], received 404"
|
||||
},
|
||||
{
|
||||
"name": "full restart preserves seeded token/messages/deadline",
|
||||
"status": "PASS",
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"name": "live stays available during PostgreSQL outage",
|
||||
"status": "PASS",
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"name": "ready returns 503 during PostgreSQL outage",
|
||||
"status": "FAIL",
|
||||
"detail": "GET /health/ready: expected [503], received 200"
|
||||
},
|
||||
{
|
||||
"name": "valid bearer returns 503 during PostgreSQL outage",
|
||||
"status": "FAIL",
|
||||
"detail": "GET /api/v1/users/me: expected [503], received 500"
|
||||
},
|
||||
{
|
||||
"name": "session recovers after PostgreSQL outage",
|
||||
"status": "PASS",
|
||||
"detail": null
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "migrator logs omit raw SQL",
|
||||
"status": "FAIL"
|
||||
}
|
||||
],
|
||||
"limitations": [
|
||||
"Public smoke/persistence stop at login panic; no successful end-to-end auth acceptance.",
|
||||
"Seeded diagnostics create sessions in test DB and do not validate the login endpoint.",
|
||||
"First seeded restart attempt invalidated: override disabled restart policy and dynamic host ports changed. Corrected attempt uses original policy and fixed ports.",
|
||||
"First additional handler attempt invalidated: DB was being restarted. Repeated after recovery.",
|
||||
"Redis/Valkey not configured and not tested. No claim of grade4 or full production readiness."
|
||||
],
|
||||
"cleanup": {
|
||||
"exit_code": 0,
|
||||
"scope": "only isolated test project and its newly-created synthetic volume",
|
||||
"original_project_volume_untouched": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"exit_code": 1, "hook_executed": false}
|
||||
Reference in New Issue
Block a user