Repository navigation
fix: security hardening (#55, #56, #57, #58) - #141
Merged
victorisiguzoruzoma874 merged 5 commits intoOct 19, 2026
Merged
victorisiguzoruzoma874 merged 5 commits into
victorisiguzoruzoma874 merged 5 commits into
Conversation
|
@jhaydeeee-web is attempting to deploy a commit to the work Team on Vercel. A member of the Team first needs to authorize it. |
|
@jhaydeeee-web 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! 🚀 |
…e agent) - src/schemas/requests.ts: merged [markers] — model resolved the conflict markers Co-authored-by: Simple Agent <agent@simple.dev>
victorisiguzoruzoma874
merged commit Oct 19, 2026
2162840
into
SynapsVault:main
0 of 2 checks passed
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.
Closes #55
Closes #56
Closes #57
Closes #58
Summary
6ef949b: fix: restrict externalUrl to http(s) (#58)
Added
httpUrlSchemain the newsrc/lib/externalUrlValidation.ts(with tests) and used it forlinkPublishSchema.externalUrlinsrc/schemas/requests.ts, sojavascript:anddata:URLs are rejected with 400 while http and https URLs are accepted.6beca1e: fix: bind compose Postgres to localhost and require password from env (#57)
docker-compose.ymlnow publishes Postgres on127.0.0.1:5432only and reads the password fromPOSTGRES_PASSWORD(compose fails with a clear message if unset), including in the API'sDATABASE_URL..env.examplegains aPOSTGRES_PASSWORDentry.7c0e71f: fix: verify Postgres TLS certificate, support DATABASE_CA_CERT (#56)
src/db/client.tsnow connects withrejectUnauthorized: trueoutside localhost and passes an optional CA fromDATABASE_CA_CERT. The setting is documented in the README.171e381: fix: scope relaxed CSP to /docs only (#55)
src/middleware/security.tsnow builds a strict Helmet default policy for all routes and applies the relaxed Swagger policy only to/docspaths. The security header test was extended accordingly.