Security Fixes

This commit is contained in:
Eric Gullickson
2025-08-24 14:39:50 -05:00
parent 000e71a026
commit e22d643ae3
19 changed files with 187 additions and 8838 deletions

View File

@@ -56,8 +56,8 @@ make test
- `database.ts` - PostgreSQL connection pool
- `redis.ts` - Redis client and cache service
### Security (`src/core/security/`)
- `auth.middleware.ts` - JWT authentication via Auth0
### Security (Fastify Plugin)
- `src/core/plugins/auth.plugin.ts` - Auth plugin (mock user in dev; plan for Auth0 JWT)
### Logging (`src/core/logging/`)
- `logger.ts` - Structured logging with Winston
@@ -89,7 +89,7 @@ Run tests:
npm test
# Specific feature
npm run test:feature -- --feature=vehicles
npm test -- features/vehicles
# Watch mode
npm run test:watch
@@ -100,5 +100,5 @@ npm run test:watch
See `.env.example` for required variables. Key variables:
- Database connection (DB_*)
- Redis connection (REDIS_*)
- Auth0 configuration (AUTH0_*)
- External API keys
- Auth0 configuration (AUTH0_*) — backend currently uses mock auth; JWT enforcement planned
- External API keys