Skip to content

Latest commit

 

History

History
92 lines (73 loc) · 5.63 KB

tasks-future.md

File metadata and controls

92 lines (73 loc) · 5.63 KB

OpenCorde — Phase 4+ Tasks

Legacy implementation log, not Discord parity proof.

Checked items in this file mean the historical task was implemented or claimed at the time. They do not mean the feature is complete, polished, permission-safe, realtime-safe, mobile-safe, or Discord-parity proven. Use docs/plans/2026-04-28-discord-parity-master-plan.md and reports/discord-parity.json as the current source of truth.

Phases 1, 2, and 3 had a passing historical smoke baseline as of 2026-03-22 (26/26 browser tests, 30 migrations). That is not a current Discord-parity claim.

Phase 4: Differentiators

Tauri Desktop Packaging

  • Wrap SvelteKit in Tauri 2.0 for distributable .exe/.dmg/.AppImage
  • System tray icon + OS-level desktop notifications
  • Auto-launch on startup
  • Deep links (opencorde:// protocol)

End-to-End Encryption (OpenMLS)

  • Integrate OpenMLS library into opencorde-crypto (openmls 0.5, RFC 9420)
  • E2EE key management endpoints (key_packages + groups routes, migrations 031-032)
  • opencorde-crypto: key_package, group, encrypt modules (5/5 tests passing)
  • Client-side encryption/decryption (Tauri commands: crypto_init/create_group/add_member/process_welcome/encrypt/decrypt)
  • LiveKit E2EE for voice/video (ExternalE2EEKeyProvider + MLS epoch export key, auto key rotation)
  • AES-256-GCM file encryption (encrypt on upload, decrypt on click; key from MLS epoch exporter)

Discord Bridge

  • opencorde-bridge: gateway connection to Discord (twilight-gateway 0.15, single shard)
  • Discord REST API client (twilight-http, webhook execute with username/avatar override)
  • Message/user/channel mapping (bridge_channel_mappings, migrations 034-035)
  • Ghost user management (bridge_ghost_users, auto-create on first message)
  • Bridge management API (GET/POST/PATCH/DELETE /api/v1/servers/{id}/bridge/mappings)
  • Bridge settings UI (IntegrationsPanel Discord Bridge section with live mapping management)
  • Bridge systemd service (opencorde-bridge.service, reads .env.bridge for DISCORD_TOKEN)

SMTP: Account Verification

  • Extend email.rs: send verification email on register
  • Email verified flag on users table (migration 033)
  • Resend verification endpoint (POST /api/v1/auth/resend-verification)
  • Verify email endpoint (GET /api/v1/auth/verify-email?token=...)

Phase 5: Mobile & Admin

  • Mobile apps (Tauri 2.0 iOS/Android)
  • Push notifications (mobile)
  • Instance admin: storage usage monitor, rate limiting config
  • GDPR data export improvements (unlimited messages, file attachments, account deletion)
  • Accessibility audit (WCAG 2.1 AA) — dialog tabindex, backdrop Escape, keyboard nav (AutomodManager, EmojiManager, SlashCommandManager, WebhookManager)
  • Recording (LiveKit Egress — start/stop/list endpoints + RecordingsPanel + VoicePanel button)
  • Steam OAuth login (OpenID 2.0 flow, migration 036, ghost user creation)
  • Announcement channel type (type 4) — megaphone icon in ChannelList, accepted by API validation
  • Discord server structure import — Danish-Truckers.com (8 categories, 57 channels, 24 roles) imported via scripts/import_discord_server.py

Gap Analysis: Discord Features Not Yet in OpenCorde

  • Server onboarding (GUILD_ONBOARDING) — GET/PUT /onboarding endpoint, OnboardingModal.svelte (shown once per session), OnboardingPanel in settings
  • Server guide (GUILD_SERVER_GUIDE) — server home page now shows channel overview, member count, welcome message
  • Soundboard — GET/POST/DELETE/play endpoints (migration 048), SoundboardPanel.svelte in voice sidebar
  • Verification level enforcement (field exists; enforced on send_message and join via invite)

Phase 6: Security Hardening & UX Polish (legacy status from 2026-04-01)

Security

  • Permission enforcement — require_channel_perm / require_server_perm wired to all relevant routes
  • Per-endpoint rate limiting — axum-governor (login 5/min, register 3/min, messages 5/sec, files 10/min, etc.)
  • JWT refresh token rotation — JTI tracking + theft detection (revoke all tokens on replay)
  • 2FA / TOTP — totp-rs (RFC 6238), enable/verify/disable endpoints, login integration
  • File upload security — MIME type allowlist, magic byte verification, EXIF strip, 8MB/100MB/25MB limits
  • XSS prevention — MarkdownContent.svelte: script/iframe/event-handler/javascript:-URL stripping
  • HTTP security headers — CSP, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy
  • SQL injection audit — all queries use sqlx parameterized binds, no raw interpolation
  • Audit log completeness — channel, role, webhook, server, 2FA events logged (2fa.enable, 2fa.disable, server.update, server.delete, channel.create/update/delete, role.create/update/delete, webhook.create/delete)

Voice / Video

  • Video grid (multi-participant) — VideoGrid.svelte: responsive columns, speaking ring, volume slider per participant
  • Voice device selection — VoiceSettings.svelte: mic/camera/speaker via enumerateDevices(), persisted to localStorage

UX

  • Quick switcher extended — SearchModal now searches channels + members in addition to messages
  • Keyboard shortcuts — Alt+↑/↓ channel navigation, Ctrl+K quick switcher (wired in server layout)
  • WebSocket events — ChannelCreate/Update/Delete, RoleCreate/Update/Delete, MemberUpdate, ServerUpdate broadcast to all subscribers

Note: Federation via Matrix protocol is explicitly excluded per user decision.

Last updated: 2026-04-01 legacy log. Current parity status is tracked in reports/discord-parity.json.