Repository navigation
SignuDoc 0.8.0
An administrator can now write the words signers agree to before signing, and this release closes a set of security gaps found in a review of the code. Upgrading matters most for installs that use Part 11 mode, single sign-on or backups. This release changes the database: see the end of these notes.
Settings
- An administrator can write the disclosure signers read and agree to before signing, under Settings, Organization, "What signers agree to before signing", or start from the standard text and edit it. Empty keeps the standard text. A line starting with
##is a heading, and{sender}and{contact}fill in who is asking and who to write to. Saving words of their own first shows a notice that the standard text covers what the U.S. E-SIGN Act requires, that changing it may make signatures invalid, and that nothing in SignuDoc is legal advice; the administrator presses "I agree", and that is recorded in the site audit trail. The version stored with each signer's agreement follows the text, and their audit trail keeps the words they read. The hosted service keeps the standard text (PR #193 by @carefulcomputer).
Security
- Single sign-on counts an email address as verified only when the identity provider says so (
email_verifiedset to true, or Microsoft Entra'sxms_edov). Before, a provider that left the claim out was trusted. - In Part 11 mode, an administrator's identity confirmation now holds the name and email address that were confirmed, and it counts only while the account still has both. Changing either one needs a new confirmation before the person can sign. Sending refuses a signer name that does not match the confirmed name, signatures are made in the confirmed name, and each signature checks again.
- Restoring a backup ends the sessions, sign-in codes, emailed signing codes, signing links and open signing-provider sessions it brought back, so a restore cannot bring an ended session or link back to life. Download links keep working. Restoring an older backup also fills in the rows that later migrations backfill.
- A certificate seals the audit trail as it stands while the envelope is held, so an event recorded at the same moment cannot be left out.
- Wrong access codes are counted per signer and code over a week, across every link and address: after 10, the signer has to wait or ask the sender for a new code. Tries sent at the same moment cannot slip past the count.
- Public signing and download links are limited to 1,000 requests per address every 10 minutes, and the text-fit check is limited per link.
- Off Vercel, the visitor's address is read from the end of
X-Forwarded-For, where the last trusted proxy put it, so a visitor cannot choose the address that rate limits count against. - A PDF with more than 1,000 pages is refused at upload.
- Sending refuses a dropdown whose box is too small to show its choices readably, so the signer is never handed one they cannot read.
- Failed sign-ins to addresses that have no account are recorded in the site audit trail, up to 20 an hour per address.
Upgrading
If you use Part 11 mode, people whose confirmation came before this release keep it: the migration records their current name and address as the confirmed ones. From then on, a change to either needs an administrator to confirm the person again.
This release changes the database, in three migrations:
20261119130000_consent_disclosure.sqladds theapp_settings.consent_disclosurecolumn. Until it has run, the setting reads as empty and signers see the standard text.20261120100000_identity_verified_snapshot.sqladdsidentity_verified_nameandidentity_verified_emailto theusertable and fills them for people already confirmed.20261120110000_repair_edited_migrations.sqladds columns that a database which ran an early copy of three 0.5 and 0.7 migrations lacks (a preview deployment sharing the production database, for one). On a database that ran the final copies it changes nothing.
On Vercel the production build applies the migrations. On other hosts, run npm run db:migrate as on every deploy.
Thank you to @carefulcomputer, who built the editable consent disclosure in #193: the setting, the version that follows the text, and the care to keep the hosted service on the standard words. It gave this release its headline feature, and the E-SIGN notice was added on top of their work.