Files
orangecat/docs/security
Georgy ButaevandClaude Opus 4.8 a52836c793 chore: remove all Vercel — everything runs on Hetzner
Production is fully self-hosted on the Hetzner box (bitbaum, behind Caddy)
with self-hosted Supabase. This scrubs the remaining Vercel footprint:

Code (src/ now has zero Vercel references):
- security page: "Hosted on Vercel" → self-hosted infrastructure
- FleetCrown URL fleetcrown.vercel.app → fleetcrown.orangecat.ch (entity
  registry + external-publish allowlist; the dead vercel.app subdomain was
  also a re-registration risk in an allowlist)
- webhook-secret error + cron/env comments point at the box, not Vercel
- corrected stale "Vercel kills the function on response" comments (false
  on a persistent server) to accurate await-before-respond reasoning

Security/config:
- supabase/config.toml: dropped dead *.vercel.app auth redirect URLs
- @vercel/mcp-adapter dependency removed (unused)

Artifacts removed:
- scripts/auth/vercel-login.js, scripts/preview-url.sh,
  scripts/dev/merge-env.js, scripts/monitoring/deployment-monitor.js,
  scripts/db/setup-env.js, mcp-servers/vercel-openapi.json, .vercel/
- setup_vercel_secrets MCP tool in mcp-servers/github-server.js
- .gitignore Vercel section; env scripts stripped of vercel-login/token

Docs + .claude rules/commands rewritten to the self-host deploy flow
(scripts/deploy-selfhost.sh / .github/workflows/cd.yml; env at
/opt/orangecat/app/.env). Historical/archive records left intact.

Verified: tsc 0 errors, SELF_HOST=1 build green, cron unit tests pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-23 08:50:43 +02:00
..

🔐 Security Documentation

Comprehensive Security Guidelines


🎯 Overview

Security is a top priority for OrangeCat. This section contains all security-related documentation, guidelines, and procedures to ensure the platform remains secure and trustworthy.


📚 Security Documentation

🛡️ Core Security

📊 Security Reports

🚨 Incident Response


🔒 Security Features

🛡️ Authentication & Authorization

  • JWT Token Security - Secure token handling and validation
  • Session Management - Secure session lifecycle
  • Multi-Factor Authentication - Enhanced account security (planned)
  • Password Policies - Strong password requirements

🔍 Input Validation

  • Bitcoin Address Validation - Comprehensive address checking
  • Lightning Address Validation - Lightning Network verification
  • Content Sanitization - XSS and injection prevention
  • File Upload Security - Secure image processing

🚨 Fraud Prevention

  • Celebrity Impersonation Protection - Protected username system
  • Rate Limiting - Abuse prevention mechanisms
  • Content Moderation - Automated content screening
  • Audit Logging - Complete action audit trails

🎯 Security Best Practices

👨‍💻 For Developers

  1. Input Validation - Validate all user inputs
  2. Output Encoding - Encode all outputs to prevent XSS
  3. Authentication Checks - Verify user permissions
  4. Secure Coding - Follow secure coding guidelines
  5. Dependency Updates - Keep dependencies current

🔐 For Operations

  1. Environment Security - Secure environment configuration
  2. Access Control - Principle of least privilege
  3. Monitoring - Continuous security monitoring
  4. Backup Security - Secure backup procedures
  5. Incident Response - Prepared incident response

👤 For Users

  1. Strong Passwords - Use unique, strong passwords
  2. Account Security - Enable available security features
  3. Phishing Awareness - Recognize phishing attempts
  4. Secure Connections - Always use HTTPS
  5. Report Issues - Report security concerns promptly

🚨 Security Contacts

🔴 Emergency Security Issues

🟡 Non-Emergency Security


📊 Security Metrics

🎯 Current Security Posture

  • Security Score: 9.2/10 (Excellent)
  • Known Vulnerabilities: 0 Critical, 0 High
  • Last Security Audit: December 2024
  • Penetration Test: Passed (December 2024)

📈 Security Improvements

  • Input Validation: ✅ Enhanced (December 2024)
  • File Upload Security: ✅ Implemented (December 2024)
  • Anti-Fraud Protection: ✅ Active (December 2024)
  • Rate Limiting: ✅ Deployed (December 2024)

🔄 Security Review Process

📅 Regular Reviews

  • Weekly: Security monitoring review
  • Monthly: Vulnerability assessment
  • Quarterly: Comprehensive security audit
  • Annually: External penetration testing

🔍 Code Security

  • Pre-commit: Automated security scanning
  • Pull Request: Security review required
  • Deployment: Security validation checks
  • Post-deployment: Security monitoring