Skip to content

refactor(arina): Phase 00 baseline, secure auth boundary, and product identity - #1

Draft
devapp4073-byte wants to merge 3 commits into
mainfrom
agent/phase-01-security-identity
Draft

refactor(arina): Phase 00 baseline, secure auth boundary, and product identity#1
devapp4073-byte wants to merge 3 commits into
mainfrom
agent/phase-01-security-identity

Conversation

@devapp4073-byte

Copy link
Copy Markdown
Owner

خلاصه / Summary

این PR نخستین ریفکتور واقعی ARINA را روی Fork رسمی آغاز می‌کند.

  • ثبت کامل Phase 00 و baseline با شناسه ARINA-BUSINESS-SUITE-BL-00
  • افزودن ۱۷ سند معماری، gap matrix، risk register و deployment strategy
  • جایگزینی JWT decode-only با signature verification در هر دو HTTP guard و هر شش WebSocket gateway
  • تبدیل CORS به allowlist مشترک و حذف wildcard/reflection
  • validation اجباری secret و CORS در production
  • خاموش‌بودن پیش‌فرض Swagger در production
  • ایجاد identity layer مرکزی ARINA در backend/frontend
  • مهاجرت سطوح اصلی وب، auth، workspace، SEO، Tauri، package و Docker به ARINA
  • حذف GA/GTM هاردکدشده upstream از HTML
  • حفظ AGPL-3.0، LICENSE/NOTICE و لینک upstream

Verification

  • ✅ Backend build
  • ✅ Frontend build
  • ✅ 8/8 targeted security/config tests
  • ✅ Forged and expired JWTs rejected
  • ✅ Unknown browser origin rejected
  • ✅ 0 lint errors in changed backend/frontend files
  • ✅ Remote branch content verified byte-for-byte against 60 changed local files
  • ⚠️ Full backend suite remains at BL-00: 25 failed suites, 156 failed / 58 passed
  • ⚠️ Docker CLI was unavailable in the audit environment

Review focus

  1. Auth/CORS containment
  2. Product identity boundary
  3. Phase 00 decisions and sequencing
  4. Backward compatibility for existing deployments

این PR عمداً Draft است؛ مرحله بعد tenant authorization coverage، log redaction و ادامه migration برند/i18n است.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant