fix(tradein/auth): restore brusnika (user2) pilot access #2512
No reviewers
Labels
No labels
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
Fable 5 ревью
feedback/max
generative
GG-форсайт
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
вторичка
ИРД
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#2512
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/unblock-user2-brusnika"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
expired → pilotвauth/roles.yaml(откат trial-expire от 2026-07-09, PR #2472/#2473).test_rbac.py(backend/+tradein-mvp/backend/) возвращены к «все user1..user10 == pilot» — иначеtest_get_role_known_usersпадает.Почему правки в тестах, а не только roles.yaml
auth/**НЕ входит вpaths:ни одного deploy/ci workflow (paths-filter trap, см. vaultPattern_Mera_Expire_Pilot_Access_Paths_Filter_Trap_0709). Правки подbackend/**иtradein-mvp/**заставляют CI прогнать backend-tests И триггерятdeploy+deploy-tradein— роль подхватится в рантайме без ручногоworkflow_dispatch.50 попыток (оценок)
Выданы отдельно прямым UPSERT в прод-таблицу
account_estimate_usage(не через код — per-user лимит в коде не поднять, рычаг = колонкаused):user2, период2026-07,used = -35 → remaining = 50. Процедура — runbooktradein_grant_estimate_attempts. Грант живёт до конца календарного месяца UTC (1 августа квота вернётся к 15).Test plan
docker exec tradein-backend grep '^ user2:' /app/auth/roles.yaml→pilot; контейнер рестартнул/api/v1/trade-in/quotaдля user2 → remaining 50Closes #2472 follow-up (reversal). Не закрывает issue — это операционная разблокировка.