BSH Engine 0.0.6
All releases
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.allowedaccepts only exact origins; wildcard patterns (for examplehttps://*,127.0.0.1:*) supported before 0.0.6 are no longer valid. #421Â
New
- Header JWT clients: optional
X-BSH-REFRESHTOKEN, silent refresh, andmeta.accessTokenon responses. #443Â - Upgraded Trigger to support lookups. #375Â
- Outgoing emails support a From display name via
fromNameon send, in mail provider config, orsecrets.mailing.fromName. #416Â
Improved
- Improved JSON configuration to allow setting for CSRF and auth cookies. #430Â
- API keys authenticate with
Authorization: <api-key>. The legacyX-BSH-APIKEYheader 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_ADMINto activate accounts; non-admins cannot set status to ACTIVATED via user update or the generic entity API. #420Â - Restricted assigning
BSH_ADMINrole to onlyBSH_ADMINusers. #420Â - Enabled CSRF protection for cookie sessions. #421Â
Last updated on