RailsDev & Eng
Content type: Concept
5 min read
Rails gets credentials:keys, batched Action Text, and Action Mailer without Active Job
- Reading
- 5 min
- Code
- 1
The This Week in Rails bulletin from November 27, 2026 brings a command to audit secrets without revealing them, the end of a per-attachment query in Action Text, and an Action Mailer that no longer needs to drag Active Job along at boot.
The Ruby on Rails Blog published the weekly This Week in Rails edition on November 27, 2026, written by Emmanuel Hayford, gathering commits that are already on the framework's main branch. Among the dozens of changes listed, three address very concrete friction points for anyone running Rails in production: secret exposure, redundant queries on rich content upload, and a boot dependency that not every app needs. The rest of the list brings smaller adjustments, but ones that are still useful in day-to-day maintenance.
Auditing secrets without exposing secrets
Until now, checking which keys existed in an environment's credentials file required running bin/rails credentials:show or credentials:fetch, commands that print the value along with the key. In a shared terminal session, a CI log, or a screenshot, that means leaking the very aws.secret_access_key you only wanted to confirm existed. The new credentials:keys command solves exactly that problem.
It lists the keys present in the file, using the same dot notation as credentials:fetch, but never prints the content:
$ bin/rails credentials:keys --environment production
aws.access_key_id
aws.secret_access_key
secret_key_baseIn practice, this becomes a safe diagnostic command to run in production: confirming that a key was configured before a deploy, without anyone with access to the terminal (or its history) seeing the value. The same bulletin also reinforces the check on the other end: reading a credentials file with a key of the wrong size now raises ActiveSupport::EncryptedFile::InvalidKeyLengthError on reads too, not just on writes, and the credentials and encrypted commands now exit with code 1 before even opening the editor.

Action Text stops multiplying queries per attachment
Anyone using Action Text for rich text with attachments (images, documents, galleries) knows that each attached piece is resolved by an SGID, a signed identifier pointing to the actual record. The problem: rendering a body with N attachments cost N separate queries, one lookup per attachment, even when they all belonged to the same model.
The change now locates attachables in batch: one query per model class involved, not one per attachment, with the result memoized per content instance. An editor with 30 images from the same gallery no longer generates 30 trips to the database, just one. Rails also fixed a side effect: saving a body with many attachments used to re-render the text once per attachment, and that's gone too.
In short: for those building rich content editors with Action Text (internal CMSes, blogs, documentation systems), this is the kind of gain that only shows up as attachment volume grows, but it avoids a silent N+1 that nobody usually notices in a development environment with few records.
Action Mailer stops dragging Active Job along
This is the most structural adjustment of the three. Until this change, config.load_defaults configured config.action_mailer.delivery_job, and that loaded Active Job as soon as Action Mailer was loaded, even in applications that never use deliver_later and don't have the activejob gem in their Gemfile.
In apps that only do deliver_now, this meant a boot dependency without a reason: one more engine initializing, one more configuration point to understand, with no real benefit. Now, applications that send email without the activejob gem installed simply boot, and ActionMailer::TestCase and the synchronous email assertions work in that scenario too. The Active Job path remains automatic when the gem is present: the corresponding railtie still wires up the queued-email helpers with no extra configuration.
In the same batch of Action Mailer changes, deliver callbacks no longer run when no email was ever built, for example when a mailer action never calls mail or when a before_action interrupts the flow before that. Previously, deliver_now and deliver_later would fire those callbacks even with no email body to deliver, the kind of behavior that only ever shows up as a strange bug in production.
Other adjustments worth a look
The full bulletin has 48 contributors for the week and covers more items that aren't part of the main focus here, but are worth noting for anyone maintaining older stacks or specific databases:
add_check_constraintgains anenforced: falseoption on PostgreSQL 18+, creating aNOT ENFORCEDconstraint; on PostgreSQL 19+,change_check_constrainttoggles the state, and marking it asenforced: truetriggers a check of all existing rows.- The
default_ordermethod was renamed tofallback_order, andreordernow clears it too:Post.fallback_order(:title).reorder(nil)ends up with no ordering again. - Associations with
disable_joinsused to ignore part of the original scope when lazy loading; nowselect,limit,includes,readonly, andstrict_loadingare also applied, not just conditions and ordering. - The minimum supported SQLite version rises to 3.37.0, since the adapter has used
pragma_table_listsince Rails 8.0 and versions 3.35/3.36 would fail on that call. - Generated Dockerfiles swap the
build-essentialpackage forgcc,g++, andmake, andrails db:system:changenow updates these packages in older apps as well; the default Node.js version for new applications rises to 26.13.1. - The Action Mailbox inbox inspector, at
/rails/conductor, is now only mounted whenRails.env.local?, following the same rule that already applied to/rails/mailers, closing off a route that shouldn't exist in production.
None of these changes alone justifies an upgrade by itself, but together they show where the Rails team is paying attention: less accidental exposure of sensitive data, less redundant work in operations that scale poorly, and less boot weight for those who don't need the entire default stack. As usual, the full bulletin, with the list of reviewed commits, is available on the Ruby on Rails blog itself.
Translated from the Brazilian Portuguese original · Read the original
Java4Shell vulnerability exposes JVM in production: here's how to fix it now
JetBrains has confirmed that CVE-2026-114938, nicknamed Java4Shell, affects the JBR embedded in all its IDEs as well as the JDK running in production. There's a patch and a workaround, but they are separate fixes.
