Three security fixes. Behaviour change: downloading a CA as a keystore that contains its
private key (p12-keystore, jks-keystore) is now off by default. Set
ALLOW_CA_KEY_EXPORT=true to allow it; then only admins can export, and every attempt is
audited (ca.export_private_key). CA certificate formats and leaf keystores are unchanged.
Export passwords now go in the X-Export-Password header (the password query parameter
still works and is deprecated). This release also carries the 3.16.1 changes as a minor
version: they included new features (audit actors, ECDSA external signing).
Fix
- ca: disable CA private key keystore export by default
- security: send export passwords in a header, never in URLs
- trpc: keep the message of errors thrown on purpose
- backend: strip stack traces and internal messages from tRPC errors in production
Upgrade notes
- Add
ALLOW_CA_KEY_EXPORT=trueonly if you need CA keystores with the private key (see DEPLOYMENT.md). - Scripts that send
?password=keep working; move them to theX-Export-Passwordheader.
What's Changed
- fix(trpc): no stack traces or internal paths in production error responses by @oriolrius in #43
- fix(security): send export passwords in a header, never in URLs by @oriolrius in #42
- fix(ca): CA private key keystore export off by default; admin-only and audited when enabled by @oriolrius in #44
- test(rest): fix export-password test after CA key export became opt-in by @oriolrius in #45
Full Changelog: v3.16.1...v3.17.0