Skip to content

v2.2.0: Security Monitoring Dashboard

Choose a tag to compare

@harperaa harperaa released this 03 Jan 05:48
· 331 commits to main since this release

🔒 Security Monitoring Dashboard

Complete admin-only security monitoring system with real-time event tracking, severity-based alerting, and comprehensive attack detection for 19+ attack types.

Major Features

  • Admin Role System: Environment-based admin access via ADMIN_EMAIL in Convex dashboard

    • Only admin users see the "Administration" section in sidebar
    • Server-side enforcement prevents unauthorized access
    • Case-insensitive email matching
  • Security Monitoring Dashboard (/dashboard/security): Real-time security event viewer

    • Severity levels: Critical, High, Medium, Low with color-coded badges
    • Event filtering by type, severity, date range, and read/unread status
    • Detailed event metadata including IP address, endpoint, fingerprint
    • Mark events as read/unread for triage workflow
  • Sidebar Security Badge: Visual indicator showing unread security events

    • Color changes based on highest severity (red for critical/high)
    • Auto-updates in real-time via Convex subscriptions
  • 19+ Attack Type Detection:

    • rate_limit_exceeded, csrf_validation_failed, xss_attempt
    • prompt_injection_attempt, jwt_validation_failed, unauthorized_access
    • fingerprint_manipulation, origin_mismatch, replay_detected
    • And 10+ more security event types

Improvements

  • Rate Limit Middleware: Now logs rate_limit_exceeded events to Convex automatically
  • CSRF Middleware: Now logs csrf_validation_failed events with request details
  • User Management: Added email field to users table with proper indexing
  • Error Messages: More descriptive authentication error messages

What's Included

This release includes 1 commit:

  • 8fca212: Add comprehensive security monitoring dashboard with admin role system

Files Changed:

  • ➕ Added: app/dashboard/security/page.tsx, app/dashboard/security/security-events-feed.tsx
  • ➕ Added: convex/security.ts, convex/seedSecurityEvents.ts, convex/lib/securityLogger.ts
  • ➕ Added: .claude/skills/security/security-logging/SKILL.md
  • ➕ Added: components/ui/calendar.tsx, components/ui/popover.tsx
  • ➕ Added: app/(landing)/security-monitoring.tsx, public/security-dashboard.png
  • ✏️ Updated: convex/schema.ts (added securityEvents table, email field)
  • ✏️ Updated: convex/users.ts (admin helpers, email support)
  • ✏️ Updated: lib/withRateLimit.ts, lib/withCsrf.ts (security logging)
  • ✏️ Updated: app/dashboard/app-sidebar.tsx (admin section, badge)
  • ✏️ Updated: README.md (comprehensive documentation)

📥 How to Update

For New Users

git clone https://github.com/harperaa/secure-vibe-coding-OS.git
cd secure-vibe-coding-OS
npm install

For Existing Users

git fetch origin --tags
git merge v2.2.0
npm install
npx convex dev  # Apply schema changes

🔧 Setup Required

  1. Add ADMIN_EMAIL to your Convex dashboard environment variables
  2. Set it to the email address of your admin user
  3. Sign in with that email to see the Security Monitoring dashboard

🛡️ Ship secure, monitor everything!