Skip to content

v2.19.0: Hash API tokens at rest

Choose a tag to compare

@cursor cursor released this 29 Nov 15:36
· 6 commits to master since this release
6b201ad

🔒 Hash API tokens at rest

API tokens are now stored as SHA-256 digests instead of plaintext. A database dump no longer contains working credentials. Existing tokens keep authenticating after upgrade (including Authorization: Bearer and the legacy X-User-Email + X-User-Token headers). Docker installs already run db:migrate on boot, so this is zero-touch there.

Upgrade notes

  • Upgrade all app processes together. Older code looks up the plaintext column and would miss hashed rows.
  • Rollback: the migration nulls plaintext after backfill. Digests cannot be reversed, so downgrading without a pre-migration backup leaves API tokens unusable. Users would have to regenerate tokens after restoring a backup or staying on the new code.

📝 What’s Changed

  • Hash API tokens at rest (#5124)
  • Latest Language Strings (#5137)
  • Update JavaScript and importmap npm dependencies (#5138)
  • Match Latvian Day/Days helper test to translation.io (#5140)
  • Work around Chrome 158 rejecting Capybara wildcard storage reset (f4fb6d6e)

👥 List of contributors

@pglombardo and @cursoragent

🛥️ Docker Images

Available on Docker Hub:
https://hub.docker.com/r/pglombardo/pwpush

🏃‍♂️ Run This Version

  1. Point DNS to your server (e.g. pwpush.example.com).
  2. Download docker-compose.yml or clone the repo.
  3. In docker-compose.yml, uncomment and set:
    • TLS_DOMAIN: 'pwpush.example.com' for automatic Let’s Encrypt TLS.
  4. Run:
docker compose up -d

Open https://pwpush.example.com or alternatively http://your-ip:5100.

🔗 Useful Links