Relay sync path misclassifies update/deactivate flows as create flows #55

Closed
opened 2026-04-30 16:34:06 +00:00 by userAdityaa · 0 comments
Contributor

The update and status mutation logic incorrectly resets synced = 0, causing the system to treat existing relays as new. This forces create behavior (POST + secret regeneration) even during updates, instead of using PATCH with no secret changes.
As a result, updates or deactivations may fail if POST is strictly create-only, or worse, repeated secret regeneration can cause relay identity and credential drift.

The update and status mutation logic incorrectly resets synced = 0, causing the system to treat existing relays as new. This forces create behavior (POST + secret regeneration) even during updates, instead of using PATCH with no secret changes. As a result, updates or deactivations may fail if POST is strictly create-only, or worse, repeated secret regeneration can cause relay identity and credential drift.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: coracle/caravel#55