Repository navigation
fix: secure database rules, harden feature request form, and patch Next.js - #75
Merged
Merged
Conversation
|
Visit the preview URL for this PR (updated for commit 84998a1): https://instant-calc--pr75-fix-feature-request-mvqf2ahp.web.app (expires Sun, 29 Nov 2026 09:28:11 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 6bc8ccb070bbb04b63e3a5957eef152c83a6b443 |
This branch was successfully 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.
What changed
database.rules.jsonand wired it intofirebase.json.featureRequestsaccepts create-only public submissions with field validation (no reads, no overwrites, no deletes).users/{uid}is readable/writable only by that signed-in user.lib/firebase-clientinstead ofpages/_document(removes server-only code from the browser bundle).npm run deploy:rules.npm run auditfail.@types/next-pwa, which pulled in a second vulnerablenext@13.5.11.swcMinifyoption.Verification
instant-calcand verified live:featureRequests.npm run audit→ exit 0 (no critical vulnerabilities).npm run lint,npm test(41 tests), andnpm run buildpass.Remaining audit findings
13 moderate + 25 high remain, mostly transitive through
firebase@10and the unmaintainednext-pwa@5. They are below the project's critical threshold. Upgrading Firebase and replacingnext-pwacan be separate follow-ups.Notes
featureRequests.