Repository navigation
fix: address 7 high-priority QA bugs (#217, #218, #219, #224, #225, #229, #243) - #268
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
[High impact] The PR appears safe to merge; all previous findings are addressed and no new actionable issues were found. SummaryThis PR addresses seven QA bugs across signer data requests, document verification, retention cleanup, public contact pages, void notifications, draft edits, and SSO settings.
|
kropdx
marked this pull request as ready for review
November 25, 2026 05:25
This was referenced Nov 25, 2026
Closed
Merged
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.
Summary
Addresses 7 high-priority QA bug reports across signer data requests, document verification, retention cleanup, public legal pages, envelope void/draft concurrency, and SSO two-step sign-in settings.
Fixes #217
Fixes #218
Fixes #219
Fixes #224
Fixes #225
Fixes #229
Fixes #243
Changes
1d706bd, hardened in1c07a33): Include signer-scoped webhook deliveries inexportSignerData()(preventing cross-party/owner leaks on multi-signer envelopes) and delete associatedwebhook_deliveriesinside the same DB transaction asDELETE FROM envelopesduringeraseSignerData()(with a savepoint guarding unmigrated schemas), while preserving active, Part 11, owner-only, and unrelated signers' records.3c6b90a, hardened in1c07a33): Fall back tosystem_audit_events(event = 'envelope_deleted') inverifyDocumentHash()(non-PII fields only, neversourcePdfHash) backed by partial expression indexes (db/migrations/20261124120000_verify_deleted_audit_indexes.sql), so unchanged signed PDFs/certificates from deleted envelopes receive an accurate origin verdict noting that the envelope record was subsequently deleted.7f5b85c): Enqueue storage keys inpending_file_deletionsinside the same transaction as row deletion for closed-account and stale-draft purges, clean up healthy deletions post-commit, retain failed keys for retry on subsequent runs, and report incomplete cleanup viaretentionJobFailed().eebb02f): Add non-throwingfindPublicSupportAddress()and safe contact-link formatting so/privacy,/terms, and/accessibilityreturn HTTP 200 on freshHOSTED_MODE=1installs beforeSUPPORT_EMAILis configured (falling back to/contact), and return HTTP 503 instead of 500 onPOST /api/contact.4b2a771): Initialize email viacreateEmailServiceForSending()invoidSentEnvelopeOnce()so both/api/envelopes/[id]/voidand/api/v1/envelopes/[id]/voidreturn HTTP 503 with actionable email-setup guidance when email is unconfigured and invited signers need notification (leaving the envelopesent), and skip email setup when zero signers were invited.fd33a8a, hardened in1c07a33): Incrementfields_revisionunderlockDraftEnvelope()when removing signers or converting signers to approvers, re-validate signers/roles inside the locked field-save transaction (returning HTTP409reload guidance or400instead of FK23503/ trigger23514HTTP500), and reject stale concurrentreplaceDraftEnvelopeSigners()saves referencing a removed signer ID with HTTP409so saved access-code protection cannot be dropped.45d5dc0): WireuserHasPassword()(requiring a non-emptycredentialpassword hash) and SSO provider display name into Settings → Two-step sign-in so SSO-only accounts see that two-step sign-in is managed by their identity provider (no broken password setup or inapplicable org requirement warning), plus a Better Authbeforeguard returningPASSWORD_REQUIRED_FOR_TWO_FACTOR.Verification
CI / Typecheck, lint, unit tests, build— PASS (+53 new unit tests, Popplerpdfsig,check-function-traces.ts, Next.js production build)CI / End-to-end test— PASS (Postgres 17npm run test:dbincluding new migration & DB tests for all DB-backed fixes, plus Playwrightnpm run test:e2e)CodeQL,Dependency review,Macroscope - Correctness Check,Greptile Review(5/5), andVercelpreview — PASSNote
Fix 7 QA bugs: verification fallback, retention file retries, SSO-only two-factor
verifyDocumentHashchecks envelope-deletion audit events when no live envelope matches, with partial SHA-256 indexes in migrationpending_file_deletionsduring account and stale-draft purge, failed deletions retry on later sweeps, and sweeps with pending-file failures report failure inretentionSweepFailedneedsTwoFactorSetuprequires a non-empty credential password, auth middleware rejects password-based two-factor endpoints withPASSWORD_REQUIRED_FOR_TWO_FACTOR, and the settings panel shows identity-provider-managed status without management controlsreplaceDraftEnvelopeFieldsandreplaceDraftEnvelopeSignersvalidate against signers read under the transaction lock, refuse stale saves with 409/400, and bumpfields_revisionwhen signers or fields are removeddeleteSignerWebhookDeliveriesdeleteSignerWebhookDeliveriesin signer-data.ts and its Part 11/still-associated exclusions; retention sweep success now depends on pending-file-deletion retries in retention-job.tsMacroscope summarized 1c07a33.