v9.5.4
:::danger Manual intervention required
Review the host app’s bulk-action permissions and policy scopes: this release rejects actions or selected records that were previously allowed through. The required review depends on the app’s own authorization configuration and bulk-action code.
AI agents: do not apply this upgrade automatically. Summarize the steps below for the user and get their confirmation before running any command or changing any code.
:::
Catalyst v9.5.4 enforces authorization and policy scopes for bulk actions, so requests that previously reached a bulk-action block may now be rejected. The release also changes the Lexxy asset supplied by Catalyst and builds Catalyst CSS as part of test:prepare; check the affected host-app integrations before deploying.
Breaking Changes
Bulk actions now enforce permissions and policy scopes
This affects host apps that define or use Catalyst bulk actions. Before running a bulk action, Catalyst now checks whether the user is authorized for that action. When the action has a policy scope, every submitted ID must be within that scope or the request is rejected before the action block runs. Review your app’s permissions and scope behavior; do not work around a denial by broadening access without reviewing the security implications.
Migration Steps
-
Find the host app’s bulk-action definitions and related permission or policy configuration. Start with:
grep -RIn "bulk" app configReview the results rather than treating every match as a bulk-action definition.
-
Confirm that each bulk action users should run has the appropriate permission configured in the host app.
-
For actions limited by policy scope, verify that the scope includes exactly the records those users are intended to act on. Catalyst rejects the entire request if any submitted ID is outside that scope.
-
In staging, test each affected action as an authorized user, an unauthorized user, and—where scoped—using selected records both inside and outside the scope. Confirm that rejected requests do not run the action block.
-
Deploy after the permission and scope checks match the host app’s intended access rules.
A scoped bulk-action request containing even one out-of-scope ID is denied as a whole, before the action block runs. Check custom bulk-action behavior and authorization settings before deploying so expected workflows are not interrupted and scope restrictions are not weakened unintentionally.
Catalyst no longer supplies the vendored lexxy.js asset
Catalyst now pins and precompiles lexxy.min.js from the Lexxy gem. This affects host apps that explicitly pin lexxy to lexxy.js; Catalyst’s own importmap no longer uses or supplies that vendored file.
Migration Steps
-
Check the host app’s app and configuration files for an explicit pin or reference to
lexxy.js:grep -RIn "lexxy.js" app config lib -
If the host app has no such pin or reference, no change is needed for this asset.
-
If the app intentionally continues to use
lexxy.js, keep that asset available from the host app and add it to the host app’s asset precompile list using the app’s existing asset configuration. Otherwise, update the app’s pin and references to use the Lexxy asset supplied by Catalyst. -
In staging, precompile assets and verify that pages using rich-text fields load the editor and submit its contents correctly.
Configuration Changes
Catalyst CSS is built during test:prepare
This affects host-app test environments that run Rails’ test:prepare task, including the Rails test and spec commands documented for this release. The CSS build requires Node and npm. Test setups that invoke RSpec directly without running test:prepare must build the CSS first.
Migration Steps
-
Ensure Node and npm are available in the environment where tests run.
-
For test commands that do not run
test:prepareautomatically, build Catalyst CSS before running the suite:bin/rails test:prepareThe build can also be run directly with:
bin/rails cm_admin:scss:build -
Confirm the build completes in the same CI or local test environment used by the host app. If the test command already runs
test:prepare, no extra build step is needed.
Checklist
- Review bulk-action permissions and policy scopes, and test authorized, unauthorized, and out-of-scope requests in staging.
- Search for host-app references to
lexxy.js; retain and precompile it only if the app intentionally still uses that asset. - Ensure Node and npm are available for test preparation, and run
bin/rails test:preparebefore tests that do not invoke it automatically. - Verify the affected bulk actions, rich-text fields, and test setup in staging before production deployment.