Skip to Content
🎉 BSH Engine v0.0.7 is out with new features and improvements. See what's new →

BSH Engine 0.0.6

All releases
Released

A security release that closes several access-control vulnerabilities, tightens CORS and adds CSRF protection for cookie sessions. Triggers now support lookups, and emails can set a sender display name.

Breaking changes

  • Improved CORS policy: origins.allowed accepts only exact origins; wildcard patterns (for example https://*, 127.0.0.1:*) supported before 0.0.6 are no longer valid. #421 

New

  • Header JWT clients: optional X-BSH-REFRESHTOKEN, silent refresh, and meta.accessToken on responses. #443 
  • Upgraded Trigger to support lookups. #375 
  • Outgoing emails support a From display name via fromName on send, in mail provider config, or secrets.mailing.fromName. #416 

Improved

  • Improved JSON configuration to allow setting for CSRF and auth cookies. #430 
  • API keys authenticate with Authorization: <api-key>. The legacy X-BSH-APIKEY header is deprecated.
  • Added tests to the engine for more robust development and deployment.

Fixed

  • Fixed access token refresh issue.

Security

  • Fixed vulnerabilities in dependencies.
  • Fixed vulnerability: Broken API authorization; anonymous access to privileged endpoints. #419 
  • Restricted access to X-Tenant-Id header to only authenticated users. Normal users can only access their assigned tenant. #434 
  • Denied access to managed entities (users, tenants, etc.) from generic endpoints /api/entitites/:entity. #420 
  • Required BSH_ADMIN to activate accounts; non-admins cannot set status to ACTIVATED via user update or the generic entity API. #420 
  • Restricted assigning BSH_ADMIN role to only BSH_ADMIN users. #420 
  • Enabled CSRF protection for cookie sessions. #421 
Last updated on