- Reject forged, replayed, and expired CSRF state with HTTP 400 Bad Request - Enforce cryptographic validation rejecting tampered ID token signatures and mismatched/missing nonces with HTTP 401 Unauthorized - Reject missing, invalid, or mismatched PKCE code_verifier with HTTP 401 Unauthorized (InvalidCodeVerifierError) - Invalidate expired ID tokens and session cookies returning HTTP 401 Unauthorized - Enforce role-based access control blocking authenticated non-admin users from admin APIs with HTTP 403 Forbidden - Eliminate legacy Remote-User trust ensuring session identity strictly governs authorization - Document and verify dual deployment modes (Standalone Mode vs Homelab Production Mode behind Traefik TLS proxy) - Add comprehensive security hardening regression suite (tests/test_security_hardening.py) and .env.example template - Ensure clean multi-stage Docker build
27 lines
669 B
JSON
27 lines
669 B
JSON
{
|
|
"name": "bdinvite-frontend",
|
|
"private": true,
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc -b && vite build && mkdir -p ../backend/static && cp -r dist/* ../backend/static/",
|
|
"preview": "vite preview",
|
|
"lint": "biome check .",
|
|
"lint:fix": "biome check --write .",
|
|
"format": "biome format --write ."
|
|
},
|
|
"dependencies": {
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"react-router-dom": "^6.26.2"
|
|
},
|
|
"devDependencies": {
|
|
"@types/react": "^18.3.10",
|
|
"@types/react-dom": "^18.3.0",
|
|
"@vitejs/plugin-react": "^4.3.2",
|
|
"typescript": "^5.6.2",
|
|
"vite": "^5.4.8"
|
|
}
|
|
}
|