Repository navigation
Security Model
English · 한국어
Security boundaries for the Miroven client. Report vulnerabilities through the repository's private reporting instructions.
- Web Crypto encrypts entries/photos before IndexedDB storage and remote transfer. Only the recovery-code-wrapped vault key envelope goes to the server.
- HttpOnly sessions and Origin/CSRF checks protect API requests. Production HTTPS requires Secure cookies; local development HTTP is an exception.
- The server determines ownership from the session and rejects mismatched account hints. Client API/account binding prevents silently uploading an existing vault to another account.
- CSP
connect-srcallows self and the configured API origin. The build uses an HTML parser to hash browser-normalized inline script/style text, excluding inert template content. When needed to fit hosting header limits, attribute-free classic HTML scripts are extracted using parser source locations. nginx applies generated headers to responses. - The Service Worker caches only public shell/static resources, not sessions, API responses, or files.
- Snapshots are committed atomically after all pages validate. Failure preserves entries and the Outbox.
- Account deletion requires a fresh email code, CSRF, and current-account checks, and immediately revokes all sessions on acceptance. Invalid codes do not delete local entries or revoke sessions.
- The deletion receipt is scoped to the API URL in the tab's sessionStorage. It is sent only in a bearer header, grants no login/sync access, and is excluded from URLs, diagnostics, and SW caches.
- Deletion clears only the current local vault bound to that API/account; unrelated or unbound local vaults remain. Same-origin tabs are notified to clear in-memory views.
E2EE does not protect against a modified client, XSS, or access to an unlocked device. The server sees email addresses, access/change times, ciphertext sizes, and operational metadata. A PIN is a convenience lock and cannot provide strong offline protection for copied browser storage. Back up encrypted files and keep the recovery code separately; browser storage is not permanent storage.
Local-server installation and paired backup/restore have been exercised. Public domains, external SMTP, actual S3 providers, independent security audit, and physical iOS/Android behavior have not been established by those checks. API browser integration uses Chromium; WebKit checks cover local photo processing and client workflows. Do not infer a certification or public-service readiness from local tests.
See cryptographic format, account and sync, backup and recovery, and image processing.
- Client development · 클라이언트 개발
- Self-hosting · 자체 호스팅
- PWA, offline use, and updates · PWA·오프라인·업데이트
- Client performance · 클라이언트 성능
- Architecture · 아키텍처
- Cryptographic format · 암호화 형식
- Image processing · 사진 처리
- Security model · 보안 경계
- Product principles · 제품 원칙
- Dependency licenses · 의존성 라이선스
- Account and sync · 계정과 동기화
- Backup and recovery · 백업과 복구
- Entry quotes · 기록 인용
- Profile document · 프로필 문서