You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
preserve conversation source ownership across API key rotation #5007
Rotating an API key for the same organization-owned integration makes an existing mirrored conversation source unusable for delivery claims.
Reproduction
Create an organization-owned API key A.
Sync a conversation using source <source>.
Create replacement key B for the same organization-owned integration.
Claim deliveries for the existing source with key B.
The request returns 403 INTEGRATION_NOT_OWNED.
Expected behavior
A replacement key for the same integration should retain access to existing mirrored sources and queued deliveries. A key belonging to a different integration should remain blocked.
Acceptance criteria
Key rotation preserves ownership of existing sources.
Queued deliveries remain claimable after rotation.
Different integrations still receive INTEGRATION_NOT_OWNED.
Existing source bindings are migrated without duplicate conversations.
Changing the source name is only a workaround because it strands replies already queued under the original source.
Fixed on the stable train by "fix(platform): keep API mirror ownership across key rotation" (09fabf551; it reaches main with the next train pull request, and the commit closes this issue then). It builds on #5008. A mirror now belongs to whom the key belongs to (the person for a personal key and for a key made for a member, the team or the organization for a key made for one), so a replacement key continues the mirror and claims the replies queued before the swap.
Two keys made for the same team or organization share their mirrors; separate integrations need different teams or members (CONV-R14 and the API reference say so). Migration 0235 backfills the owner of the existing mirrors and keeps a trigger for the rows an older image inserts during a roll.
Activity
fix(platform): keep API mirror ownership across key rotation
yannickmonney commentedon Nov 3, 2026
Fixed on the stable
trainby "fix(platform): keep API mirror ownership across key rotation" (09fabf551; it reachesmainwith the next train pull request, and the commit closes this issue then). It builds on #5008. A mirror now belongs to whom the key belongs to (the person for a personal key and for a key made for a member, the team or the organization for a key made for one), so a replacement key continues the mirror and claims the replies queued before the swap.Two keys made for the same team or organization share their mirrors; separate integrations need different teams or members (CONV-R14 and the API reference say so). Migration
0235backfills the owner of the existing mirrors and keeps a trigger for the rows an older image inserts during a roll.