Security and infrastructure improvements - #1010
Merged
ayomideadeniran merged 2 commits intoJul 29, 2026
Merged
Conversation
- Implement strict CSP with nonce-based script loading for Next.js - Add non-root user and healthcheck to backend Dockerfile - Remove hardcoded secrets and add environment variable validation - Add healthcheck to backend service in Docker Compose
|
@anonfedora 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. |
|
@anonfedora 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! 🚀 |
Contributor
|
Pr under review. |
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.
Security and Infrastructure Improvements
This PR addresses critical security and infrastructure issues across the codebase, implementing Content Security Policy, Docker hardening, removing hardcoded secrets, and adding health checks.
Changes Made
#990 - Implement strict Content Security Policy with nonce-based script loading
#973 - Review and fix backend Dockerfile for production readiness
#978 - Audit and fix hardcoded secrets, ports, and URLs throughout codebase
POSTGRES_PASSWORD,POSTGRES_USER,POSTGRES_PORTJWT_SECRET,BACKEND_URL,FRONTEND_URLCHANGE_THIS_*placeholders instead of default secretsREDIS_URLin utils/redis.ts, config/env.config.ts, and all queue/worker filesWEBHOOK_SIGNING_SECRETandWEBHOOK_INGEST_SECRETin webhook routes and workerredis://localhost:6379fallbacks with error-throwing functions#979 - Add healthcheck to backend service in Docker Compose
/healthendpoint for health verificationAdditional Fixes
webhookSubscriptiontype errors@aws-sdk/client-s3,@aws-sdk/lib-storage)Testing
Closes #990
Closes #973
Closes #978
Closes #979