Skip to content

Security: andrewjsauer/decision-memory-agent

Security

SECURITY.md

Security Policy

Project Status

This is a portfolio demonstration project. It is not intended for production deployment without significant security hardening.

Known Security Limitations

The following security measures are intentionally omitted for demo simplicity:

Issue Location Risk Reason
No authentication All API routes High Simplifies demo setup
No rate limiting All endpoints Medium Would require Redis/additional infra
IDOR vulnerability /api/tasks/[id]/stream Medium Task IDs accessible without ownership check
Default DB credentials packages/core/src/db/client.ts Low Only affects misconfigured deployments

For full details, see docs/KNOWN_LIMITATIONS.md.

What This Project Does Securely

  • Input validation via Zod schemas on all API endpoints
  • SQL injection prevention via Drizzle ORM parameterized queries
  • Type safety preventing many classes of runtime errors

Reporting Vulnerabilities

Since this is a portfolio project, there are no live deployments to protect. However, if you discover a security issue that could affect someone who forks this project:

  1. Open a GitHub issue describing the vulnerability
  2. Include steps to reproduce
  3. Suggest a fix if possible

Recommendations for Production Use

Before deploying this codebase to production:

  1. Add Authentication

    • Implement NextAuth.js or similar
    • Add JWT validation middleware
    • Implement user session management
  2. Add Authorization

    • Verify task ownership before streaming
    • Implement role-based access control
    • Add resource-level permissions
  3. Add Rate Limiting

    • Use Redis-based rate limiting
    • Implement per-user and per-IP limits
    • Add circuit breakers for external APIs
  4. Secure Secrets

    • Use environment variable validation
    • Implement secrets rotation
    • Audit all hardcoded strings
  5. Add Logging & Monitoring

    • Log all authentication attempts
    • Monitor for suspicious patterns
    • Set up alerting for anomalies

Dependencies

This project uses well-maintained dependencies. Run regular security audits:

pnpm audit

Contact

For security questions about this portfolio project, open a GitHub issue or contact the maintainer directly.

There aren’t any published security advisories