Two-Factor Auth Is Now On by Default: Here Is Why
New installs now require 2FA for admins. What changed, how recovery codes work and how to opt out.
Hardware security keys work anywhere two-factor codes do, and we recommend them for anyone with access to payments.
The threat
Login attempts are rate limited per account and per IP address with a sliding window, which slows attackers without locking out real users.
Every form carries a CSRF token, and every state-changing request is checked on the server, not just hidden in the interface.
- Two-factor authentication on by default
- Sliding-window login rate limits
- CSRF tokens on every form
- Signed and timed password reset links
“Security is a process, not a product.”
— Bruce Schneier
Our default
We publish security fixes as point releases with a short advisory, and the admin shows a banner until the update is installed.
How to change it
Sessions expire after a period of inactivity that each site owner can tune from the security settings.
Secrets are read from the environment at runtime and never written to the database or the logs.
Security defaults matter more than security options, because most people never change a default.
New installs require two-factor authentication for every admin account. Recovery codes are shown once and can be regenerated from the profile screen.
How we work on posts like this
Our editing rule of thumb is to cut anything that would not change what the reader does next. Background and history are welcome when they explain a decision, but a post that only tells a story without leaving the reader able to do something is usually a draft that is not finished yet.
Finally, every post gets a real person as its author. The name on the card is the person who did the work and who will answer the comments, which keeps the writing specific and gives readers someone to hold to account when something does not work as described.
Every post on this blog starts as a note in the issue that shipped the change. When the work is done, whoever built it writes a first draft while the details are still fresh, and someone who did not work on it edits the draft for clarity. That second reader catches the jargon and the missing steps that the author can no longer see.
Questions or a better approach? Leave a comment below, or reply to the build-log email and we will fold the best ideas into the next release.
Would you share the full config file? The snippet is helpful but I am missing context.
How long did this take you end to end? Trying to plan our own migration.
Great write-up. Would love a follow-up on how you handle this with multiple environments.
It worked for me on 3.1 after running the upgrade command.
Agreed, the screenshots help a lot.
Glad it helped. Let us know how the migration goes.
We switched to this approach after the last post and support tickets dropped noticeably.
Agreed, the screenshots help a lot.
Great write-up. Would love a follow-up on how you handle this with multiple environments.
Does this change anything for sites running a child theme?
Clear, practical and no fluff. Thank you.
The bit about writing the rollback plan down first really landed for our team.