Security: production defense-in-depth baseline - #6
Open
arena-ai-coding-agent[bot] wants to merge 20 commits into
Open
arena-ai-coding-agent[bot] wants to merge 20 commits into
arena-ai-coding-agent[bot] wants to merge 20 commits into
Conversation
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
wpalish
pushed a commit
that referenced
this pull request
Jul 14, 2026
PR #6 (+7908/−3565) не мерджится целиком: отведён от 37e0557 (удалил бы Telegram-уведомления и связку Pages→бэкенд), требует новые обязательные env и ломает 10-минутный онбординг партнёра (pending+email-верификация+MFA). Оставлен открытым как банк решений. Отсюда взято лучшее малое, реализовано своими руками (их код не исполнялся, только читался): - коды выдачи: 6 символов из криптостойкого алфавита без похожих символов (0/O, 1/I/L) — 27^6 ≈ 387 млн комбинаций вместо 65 тыс. у hex-4; легко диктовать на кассе (идея дублируется и в Devin PR #5) - security-заголовки: + Cross-Origin-Opener-Policy, Cross-Origin-Resource-Policy - Dockerfile: non-root пользователь, PYTHONDONTWRITEBYTECODE/UNBUFFERED, YUMMY_DB_PATH=/data по умолчанию - tools/create_admin.py: bootstrap/повышение админа через getpass (пароль не светится в history), promote отзывает все сессии (token_ver+1) - .github/dependabot.yml: еженедельные обновления pip/actions/docker - ci/github-actions.yml.example: полный CI (pytest+bandit+CodeQL+trivy+доксборка), как example — токен без scope workflow не может пушить воркфлоу Проверено: 75 тестов зелёные, create_admin смок (created/promoted) на врем. БД. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
wpalish
pushed a commit
that referenced
this pull request
Jul 16, 2026
…арточка); +контраст футера По UX-ревью: - #1 localStorage-нотис был плавающей центр-карточкой (читалось как «глюк» поверх секций) → тонкая полоса во всю ширину, приклеена к низу (над bottom-nav на мобиле, к краю на десктопе). Показ один раз (флаг ym_cookies уже был). - #6 контраст копирайта/FAQ-текста в футере поднят (.6→.78, .7→.82 opacity) — запас под WCAG AA. Уже было в коде: #4 срочность («🔥 осталось N» + окно выдачи), #7 соцсети на светлом --on-ink (не бледные). Требуют ассетов (отдельно): #2 превью карты, #3 логотипы партнёров/отзывы, #5 лого-марка, #8 PWA-бейджи. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Validation
Deployment notes
YUMMY_SECRET_KEYandYUMMY_DATA_KEYREDIS_URLandYUMMY_RATE_LIMIT_KEYfor distributed limits across replicaspendingand require verified email plus MFA-admin approvalCI permission note
Arena's GitHub App token cannot update
.github/workflows/*because it lacks theworkflowspermission. The complete Actions pipeline is included asci/github-actions.yml.example; copy it to.github/workflows/ci.ymlfrom an account with workflow permission to activate it.PostgreSQL / Alembic update
DATABASE_URLand fails fast on SQLitealembic upgrade headpre-deployPostgreSQL pooling update
psycopg_pool.ConnectionPoolStripe Checkout state machine
payment_pending; Stripe/API failures and expired reservations release it exactly onceInvitation-only staff access
Strict production/demo isolation
YUMMY_PAYMENT_MODE=demo/orders,/admin/seed, staticvenues.json, local venue bookings, demo reviews, and demo staff access are blocked/hidden in productionpayment_mode=disabledsupports a fail-closed catalog while real provider credentials are pendingPartner billing and VPS deployment
Admin control plane, customer UX, and notifications
Observability and disaster recovery
Load, DAST, and pentest tooling