Repository navigation
feat(security): configure NGINX TLS termination, HTTP/2 support, and production security headers (#1617) - #1718
Open
theoneesi wants to merge 1 commit into
Conversation
…on security headers (StellarDevHub#1617)
|
@p3ris0n is attempting to deploy a commit to the Ayomide Adeniran's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@theoneesi Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 Pull Request: Post-Wave Production Deployment Initiative (BE-042, BE-043, BE-044, BE-045)
📋 Overview
This pull request delivers foundational backend infrastructure and security improvements under the Web3 Student Lab Post-Wave Production Deployment Initiative. It implements database deadlock recovery with randomized jitter, time-series analytical hypertable rollups, an S3 pre-signed upload pipeline with ClamAV virus scanning, and a production-grade NGINX reverse proxy with TLS termination, HTTP/2 support, and strict security headers.
🔗 Related Issues
🛠️ Key Technical Changes
1. [BE-045] Load Balancer TLS Termination, HTTP/2 Support & Production Security Headers
nginx/default.conf):Strict-Transport-Security: max-age=31536000; includeSubDomains; preloadContent-Security-Policy: default-src 'self'; script-src 'self'; ...; frame-ancestors 'none';X-Content-Type-Options: nosniffX-Frame-Options: DENYX-XSS-Protection: 1; mode=blockReferrer-Policy: strict-origin-when-cross-originPermissions-Policy: camera=(), microphone=(), geolocation=(), .../healthzload balancer probe endpoint.docker-compose.prod.yml):nginxproxy service (web3-student-lab-proxy) with SSL volume mounts, network bridges, and container health checks.backend/src/index.ts,backend/src/config/__tests__/cors.config.test.ts):securityHeadersMiddlewareearly in the Express chain for defense-in-depth security.2. [BE-044] Secure File Upload Service with Virus Scanning, Magic Byte Verification & S3 Pre-Signed URLs
backend/src/services/fileUploadService.ts):@aws-sdk/s3-request-presignergenerating time-limited (15-minute) upload URLs to eliminate direct server file throughput.backend/src/controllers/uploadController.ts):.exedisguised as.png).backend/src/workers/virusScanWorker.ts):3. [BE-043] Student Performance Analytics Aggregation Engine with Time-Series Hypertable Support
backend/src/services/analyticsAggregationService.ts):< 100msacross 1,000,000+ historical exercise events.backend/src/jobs/analyticsRollupJob.ts):backend/src/routes/analytics.routes.ts):4. [BE-042] Database Deadlock Detection & Transaction Retry Engine with Exponential Jitter
backend/src/db/transactionRetry.ts):40P01deadlock detected,55P03lock not available) and connection timeouts.backend/src/utils/backoffJitter.ts):✅ Acceptance Criteria Checklist