yrippert
|
33d391778a
|
WIP: backend email-validator, CSP disabled, MOCK_DATA env
|
2026-02-17 22:40:41 +00:00 |
|
Yuriy
|
9d49c9bb6b
|
feat: AI proxy via papa-app (Anthropic from RU), env and docker-compose
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-02-16 06:39:48 +03:00 |
|
Yuriy
|
646401299c
|
fix: AUTH_DEPENDENCY ordering, setup_scheduler(app), Dockerfile, requirements
- main.py: AUTH_DEPENDENCY определяется до первого использования (NameError fix)
- main.py: setup_scheduler(app) вместо setup_scheduler() — планировщик запускается
- Dockerfile (корень): multi-stage build для frontend, если отсутствует
- requirements.txt: добавлен APScheduler>=3.10
- docker-compose.yml: убран deprecated version: '3.8'
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-02-15 14:15:05 +03:00 |
|
Yuriy
|
891e17972c
|
fix(klg): безопасность, deps/security, attachments, CSP, api-client, удаление lib/api.ts
- deps: авторизация через app.services.security (JWT/OIDC), без oidc fallback
- main: AUTH_DEPENDENCY для роутеров, RequestLoggerMiddleware, убран on_event(startup)
- attachments: защита path traversal, проверка владельца/authority
- docker-compose: SECRET_KEY обязателен, отдельная БД keycloak-db
- middleware: ужесточён CSP (без unsafe-eval в prod, без api.openai.com)
- api-client: токен только в памяти, без sessionStorage
- cert_applications: _next_number с SELECT FOR UPDATE
- Удалён lib/api.ts, импорты на @/lib/api/api-client
- docs ERROR_HANDLING: aircraftApi.list(), middleware __init__.py
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-02-14 23:06:22 +03:00 |
|
Yuriy
|
aa052763f6
|
Безопасность и качество: 8 исправлений + обновления
- .env.example: полный шаблон, защита секретов
- .gitignore: явное исключение .env.* и секретов
- layout.tsx: XSS — заменён dangerouslySetInnerHTML на next/script для SW
- ESLint: no-console error (allow warn/error), ignore scripts/
- scripts/remove-console-logs.js: очистка console.log без glob
- backend/routes/modules: README с планом рефакторинга крупных файлов
- SECURITY.md: гид по секретам, XSS, CORS, auth, линту
- .husky/pre-commit: запуск npm run lint
+ прочие правки приложения и бэкенда
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-02-14 21:29:16 +03:00 |
|
Yuriy
|
0150aba4f5
|
Consolidation: KLG ASUTK + PAPA integration
- Unify API: lib/api.ts uses /api/v1, inbox uses /api/inbox (rewrites)
- Remove localhost refs: openapi, inbox page
- Add rewrites: /api/inbox|tmc -> inbox-server, /api/v1 -> FastAPI
- Add stub routes: knowledge/insights, recommendations, search, log-error
- Transfer from PAPA: prompts (inspection, tmc), scripts, supabase, data/tmc-requests
- Fix inbox-server: ORDER BY created_at, package.json
- Remove redundant app/api/inbox/files route (rewrites handle it)
- knowledge/ in gitignore (large PDFs)
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-02-08 17:18:31 +03:00 |
|