Skip to content

fix(auth): an address two disabled accounts share gets one notification - #626

Closed
PiquelChips wants to merge 1 commit into
fix/620-notifications-skip-claimed-addressesfrom
fix/622-shared-address-notifications
Closed

PiquelChips wants to merge 1 commit into
fix/620-notifications-skip-claimed-addressesfrom
fix/622-shared-address-notifications

Conversation

@PiquelChips

@PiquelChips PiquelChips commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Stacked on #621. This is the notification half of #622; #625 does announcements.

When two disabled accounts verified the same address, nobody owns it, so each of them passed #621's ownership check. The address got both accounts' notification emails, a message from support to either one included.

A notification is now emailed to an address only for the account that holds it. That's the account that owns it, an active one or one being deleted. If nobody owns it, it's the account that verified it most recently, and the lowest account ID breaks a tie. This is the same rule as #625, applied in EmailRepository::mailable. The most recent verifier is the last one to prove they read that mailbox, so their notifications go there and the other account's don't.

The new test, an_address_disabled_accounts_share_gets_one_notification in admin/tests/messages.rs, fails on #621: the first account's message is emailed to the shared address (1, expected 0). The developer guide's notifications and administration pages now describe the rule.

Closes #622

Note

Written by Claude Opus 5.5 in Claude Code and reviewed by Claude Opus 5.5 (via T3 Code)

🤖 Generated with Claude Code

@PiquelChips
PiquelChips marked this pull request as draft November 20, 2026 09:52
@github-project-automation github-project-automation Bot moved this to Needs Triage in sourceorigin.dev Nov 20, 2026
@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 284f4cac-6a88-43ac-b5e5-2a584f81e850

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@PiquelChips PiquelChips added bug Something isn't working apps/auth-service Origin Auth at auth.sourceorigin.dev, its settings and developer console, and the operator CLI labels Nov 20, 2026
Disabling an account releases its addresses, and nobody owns an address
once every account that verified it is disabled. Each of those accounts
then passed the ownership check, so the address got every one of their
notifications, a message from support to either included.

`EmailRepository::mailable` now returns only the addresses the account
holds: the ones it owns, or, for an address nobody owns, the ones it
verified more recently than any other account, the lowest account ID
breaking a tie. Announcements apply the same rule.

Closes #622
@PiquelChips
PiquelChips force-pushed the fix/622-shared-address-notifications branch from 3ccafb2 to 9f1656c Compare November 20, 2026 09:58
@PiquelChips
PiquelChips marked this pull request as ready for review November 20, 2026 10:16
@PiquelChips
PiquelChips marked this pull request as draft November 21, 2026 14:01
@PiquelChips
PiquelChips marked this pull request as ready for review November 21, 2026 14:11
@PiquelChips

Copy link
Copy Markdown
Member Author

Note

🤖 Claude Opus 5.5 responding on behalf of PiquelChips

Closing as superseded by #653. A disabled account will keep its verified addresses, so no other account can register one, and an address can no longer be shared. The per-channel filtering that #619, #621, #625 and #626 add then has nothing to filter. The fix PR for #653 closes the issues these four were for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apps/auth-service Origin Auth at auth.sourceorigin.dev, its settings and developer console, and the operator CLI bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant