Stronger protection for your account
Security
Why it matters: It's harder for anyone else to get into your account or take it over.
- Repeated failed sign-ins and password-reset requests are limited.
- Changing your email address needs your current password.
- Invitation links expire after 30 days.
- New accounts confirm their email before creating groups or sending invitations, which keeps automated sign-ups out.
Commits (5)
-
5f0d240Throttle failed sign-ins on the right path, counted across all app containers -
5c24d09Anti-bot protections for the free model -
c8ced8aClose throttle bypasses and pass cleanup switches to workers (diff audit 1) -
ec91a8eRate-limit password resets; direct uploads for staff only -
4cfbd79Launch decisions: invitations expire, email changes need the password
Files Changed (55)
app/controllers/admin/direct_uploads_controller.rb | 12 +++ app/controllers/concerns/authentication.rb | 2 +- .../concerns/require_verified_or_established.rb | 27 +++++ app/controllers/email_confirmations_controller.rb | 55 ++++++++++ app/controllers/golf/posts_controller.rb | 14 ++-- app/controllers/group_admin_controller.rb | 74 +++++-------- app/controllers/groups_controller.rb | 67 ++++++++++--- app/controllers/messages_controller.rb | 10 +-- app/controllers/passwords_controller.rb | 13 +++- app/controllers/registrations_controller.rb | 9 ++ app/controllers/user_profiles_controller.rb | 38 ++++---- app/controllers/users_controller.rb | 23 +---- app/jobs/purge_stale_unverified_users_job.rb | 85 +++++++++++++++ app/mailers/email_confirmation_mailer.rb | 7 ++ app/mailers/user_welcome_mailer.rb | 6 +- app/models/group.rb | 5 +- app/models/group_invitation.rb | 10 ++ app/models/invitation_addresses.rb | 19 ++++ app/models/invitation_email_usage.rb | 31 ++++++ app/models/message.rb | 2 +- app/models/post.rb | 3 +- app/models/user.rb | 42 ++++++++ app/services/turnstile_verifier.rb | 46 ++++++++ .../email_confirmation_mailer/confirm.html.erb | 7 ++ .../email_confirmation_mailer/confirm.text.erb | 8 ++ .../email_confirmations/_required_card.html.erb | 14 +++ .../email_confirmations/_required_modal.html.erb | 14 +++ app/views/email_confirmations/required.html.erb | 3 + app/views/groups/new.html.erb | 2 +- app/views/registrations/new.html.erb | 5 + app/views/user_profiles/_profile_form.html.erb | 6 ++ app/views/user_welcome_mailer/welcome.html.erb | 14 +++ app/views/user_welcome_mailer/welcome.text.erb | 6 ++ config/environments/test.rb | 3 + config/initializers/content_security_policy.rb | 4 +- config/initializers/rack_attack.rb | 46 ++++++++- config/recurring.yml | 10 ++ config/routes.rb | 19 ++-- .../dd_established_at_and_last_seen_at_to_users.rb | 27 +++++ .../261130100100_create_invitation_email_usages.rb | 13 +++ db/schema.rb | 15 +++- docker-compose.production.yml | 13 +++ docs/sign_in_providers.md | 8 ++- podman-compose.production.yml | 9 ++ podman-compose.staging.yml | 4 + test/controllers/anti_bot_gate_test.rb | 175 ++++++++++++++++++++++++++++++ .../email_confirmations_controller_test.rb | 95 +++++++++++++++++ test/controllers/launch_fixes_test.rb | 133 +++++++++++++++++++++++ test/controllers/passwords_controller_test.rb | 46 ++++++++ test/controllers/registration_bot_checks_test.rb | 135 +++++++++++++++++++++++- test/integration/login_throttle_test.rb | 39 +++++++ test/jobs/purge_stale_unverified_users_job_test.rb | 85 +++++++++++++++ test/models/hosting_limits_race_test.rb | 22 ++++ test/models/last_seen_test.rb | 21 ++++ test/support/hosting_helpers.rb | 7 +- 55 files changed, 1467 insertions(+), 141 deletions(-)