fix(tradein/auth): убрать устаревшее «Caddy basic_auth required» из 401 (#2573) #2649
No reviewers
Labels
No labels
Fable 5 ревью
GG-форсайт
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
feedback/max
generative
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#2649
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/tradein-401-wording"
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
#2573: после снятия Caddy basic_auth с
/trade-in/*(#2555/#2558) ответ401продолжал ссылаться на несуществующий гейт — сбивает с толку того, кто увидит ответ API."no authenticated user (Caddy basic_auth required)"→"no authenticated user (valid session required)"current_team_actor) и dual-off ветка самогоrbac_guard— приведено к единообразию."no authenticated user"сохранён намеренно: на эту подстроку матчатся существующие тесты (test_rbac.py,test_internal_auth_secret.py).core/rbac.py:225,api/v1/me.py:81,api/v1/trade_in.py:66,691.Site Finder (root
backend/) намеренно НЕ тронут — там та же строка встречается в 4 местах, но basic_auth в Caddy для него жив (подтверждено по Caddyfile), текст корректен.Проверено также:
scripts/smoke-mera-perimeter.shматчит только HTTP-коды (не тело), доки/фронт литерал не используют — рассинхрона не остаётся. Прочие упоминания basic_auth в комментариях описывают живой dual-mode header-путь, это не микрокопия — не трогал.Test plan
test_search_cache_hit), ruff чистоcurl -s https://gendsgn.ru/trade-in/api/v1/me→{"detail":"no authenticated user (valid session required)"}Refs #2573