feat: Enhance security and validation in backend
- Added helmet for security headers and configured content security policy - Implemented CORS with a whitelist for allowed origins - Introduced express-validator for input validation in API endpoints - Set request size limits to prevent DoS attacks - Added global error handling and 404 response - Updated TypeScript configuration to use node16 module resolution - Improved Docker Compose configuration for security and resource limits - Created a comprehensive .env.example for environment configuration - Implemented automated security scans in CI/CD with Trivy - Added cleanup script for debugging ports - Established a detailed security policy document
This commit is contained in:
35
.vscode/settings.json
vendored
35
.vscode/settings.json
vendored
@@ -1,28 +1,9 @@
|
||||
{
|
||||
"typescript.preferences.includePackageJsonAutoImports": "auto",
|
||||
"editor.formatOnSave": true,
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll.eslint": "explicit"
|
||||
},
|
||||
"files.exclude": {
|
||||
"**/node_modules": true,
|
||||
"**/dist": true,
|
||||
"**/.git": true,
|
||||
"**/.DS_Store": true
|
||||
},
|
||||
"search.exclude": {
|
||||
"**/node_modules": true,
|
||||
"**/dist": true
|
||||
},
|
||||
"typescript.updateImportsOnFileMove.enabled": "always",
|
||||
"emmet.includeLanguages": {
|
||||
"typescript": "typescriptreact"
|
||||
},
|
||||
"debug.allowBreakpointsEverywhere": true,
|
||||
"debug.node.autoAttach": "on",
|
||||
"terminal.integrated.enablePersistentSessions": false,
|
||||
"terminal.integrated.confirmOnKill": "editor",
|
||||
"task.autoDetect": "off",
|
||||
"task.showDecorations": true
|
||||
}
|
||||
"github.copilot.chat.languageContext.inline.typescript.enabled": true,
|
||||
"github.copilot.chat.languageContext.fix.typescript.enabled": true,
|
||||
"github.copilot.chat.edits.temporalContext.enabled": true,
|
||||
"github.copilot.chat.completionContext.typescript.mode": "on",
|
||||
"github.copilot.chat.agent.thinkingTool": true,
|
||||
"github.copilot.chat.followUps": "always",
|
||||
"debug.onTaskErrors": "abort"
|
||||
}
|
||||
Reference in New Issue
Block a user