[SECURITY] Caddy: голый IP по HTTP спрашивал пароль пилота открытым текстом #3318
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#3318
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/caddy-bare-ip-plaintext-auth"
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?
Из армейского аудита 01-02.09, линза ptica-api. Воспроизведено живьём:
curl http://188.124.37.140/api/v1/me→401+Www-Authenticate: Basic realm="GenDesign Pilot". Браузер, открывший голый IP, отправил бы пароль plaintext-ом любому слушающему канал.Почему так вышло
Замысел блока
:80был верный — «закрыть обход через голый IP тем же auth-гейтом». Исполнение дырявое: basic_auth на plain HTTP — это и есть канал утечки пароля.Правка
/healthостаётся публичным (liveness). Всё остальное —redir https://gendsgn.ru{uri} permanent. Редирект строже гейта: по HTTP не отдаётся ни контент, ни сам запрос пароля — обход закрыт тем, что отвечать нечему.Проверено до мержа
IP:80нет: все deploy-смоки ходятdocker exec→localhostвнутри контейнеров (grep по.forgejo/workflowsиops/).docker exec gendesign-caddy-1 caddy validate→Valid configuration.После деплоя
curl -sI http://188.124.37.140/api/v1/meобязан отдать301 Location: https://gendsgn.ru/api/v1/meи ни одногоWww-Authenticate.curl http://IP/health— по-прежнему 200.