Repository navigation
POST /fmsgid: claim an address for a quota pool - #9
Merged
Merged
Conversation
With claim, an address is registered for its quota pool only: created in the pool, or used when it is already there. An existing address anywhere else gets 409 and is left unchanged. A service deriving sub-addresses from an owner's name (@alice_bot from @alice) can then no longer move someone else's address into its pool or reinstate it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
markmnl
added a commit
to markmnl/fmsg-webapi
that referenced
this pull request
Oct 29, 2026
A derived address (@alice_bot from @alice) may already be someone else's: an identity provider can let anyone sign up as alice_bot. Registration now claims the address in fmsgid, so one outside the owner's quota pool gets 409 instead of being moved into the pool, reinstated, and handed to the owner with an API key. The owner's own deleted sub-accounts are still reinstated. Needs fmsgid with claim (markmnl/fmsgid#9). Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an optional
claimtoPOST /fmsgid. Withclaim: true(which needsquota_pool), the address is registered for that pool only:Why: fmsg-webapi derives sub-addresses from the owner's name (
@alice_botfrom@alice) and registers them withquota_pool. If@alice_botis already someone else's address, today's upsert moves it into Alice's pool and reinstates it, and webapi then issues Alice a key for it. A security review found this as an account takeover. fmsg-webapi will sendclaim(separate PR).Without
claimnothing changes, so admins can still move addresses between pools.TestPostCreateAddress_Claimcovers new, in-pool reinstate, someone else's address in no pool, another pool, own pool, and the 400.go test ./...against Postgres 17 passes.claimand the 409.🤖 Generated with Claude Code