Skip to content

SignuDoc 0.9.4

Choose a tag to compare

@kropdx kropdx released this 30 Nov 20:25
b5c9545

Security hardening, a fix for an undone edit that could still go out with an envelope, eID Easy Mobile-ID signing, and Part 11 wording. Contributed by @HimanshuMahto, @AndreyGrin, @bocal-pol and @carljmosca. No database migrations are required.

Security

  • Production pages now allow inline scripts only with a per-request nonce, instead of script-src 'unsafe-inline' (PR #266).
  • Away from Vercel, CLIENT_IP_HEADER names the one header your reverse proxy writes the visitor's address to, and TRUSTED_PROXIES lists your proxies for X-Forwarded-For. Sign-in rate limits, the app's own rate limits and the audit trail then read the same address. Unset, the app guesses as before and logs a warning once in production (PR #266).
  • Optional strict mode, STRICT_SECRETS=1: in production the app refuses to run without BETTER_AUTH_SECRET and refuses /api/internal/* calls when no cron secret is set. Installs made with the Deploy button are unchanged (PR #271).
  • Drawn signatures are refused when the PNG header declares an oversized image (PR #271).

Sending and signing

  • An edit undone on Place fields while its save was on its way is no longer what the server keeps, including when the sender clicks Next or Back, or leaves the page, before that save finishes (#286, PR #280, PR #288).
  • A number too long for its box is flagged while typing, and a decline reason over the limit gets a readable message (#286, PR #280).
  • Part 11 bulk send refuses up front a template with approvers or a shared step, instead of failing every row and leaving drafts (#286, PR #280).
  • A NUL character in API input returns 400 instead of 500, and approvers are counted apart from signers (#286, PR #280).
  • eID Easy Mobile-ID signing works again: the request no longer asks for baseline T (PR #255).

Part 11

  • Invitations and reminders for a Part 11 envelope no longer say no account is needed. They say the signer will be asked for their own account's email address and password (#232, PR #288).
  • A failed Part 11 opening check reads "Wrong account email or password" in the envelope timeline, not "Wrong identity code" (#230, PR #288).

Upgrading

No database migrations. Self-hosted installs away from Vercel should set CLIENT_IP_HEADER (see "The visitor's address away from Vercel" in docs/self-hosting.md). STRICT_SECRETS=1 is optional; read "Strict mode" in docs/self-hosting.md before turning it on for an install that already runs, since it replaces the derived secret.

Thank you to @HimanshuMahto, @AndreyGrin, @bocal-pol and @carljmosca.