Skip to content

feat(storage): Add enclave_track to push subscription table #140

Open
Takaros999 wants to merge 3 commits intomainfrom
takis/push-storage-enclave-track
Open

feat(storage): Add enclave_track to push subscription table #140
Takaros999 wants to merge 3 commits intomainfrom
takis/push-storage-enclave-track

Conversation

@Takaros999
Copy link
Copy Markdown
Contributor

@Takaros999 Takaros999 commented Jan 9, 2026

This PR part of a bigger feature (DEV-2458) introducing multi-enclave support, essentially allowing multiple enclave sets running at once.

Our current setup assumes we never upgrade our enclave code and that all push ids are encrypted to the same enclave public key.

This PR introduces enclave_track to the push storage table, which will be used later to route the notification to the correct enclave.

Add enclave track version identifier to push subscriptions to support
multi-enclave track architecture. This enables routing notifications to
the correct enclave based on which track the subscription was created with.

Changes:
- Add EnclaveTrack enum to common-types with V2 (default) and V3 (placeholder)
- Add enclave_track field to PushSubscription struct in backend_storage
- Update subscription creation in backend routes
- Update all tests to include the new field
@Takaros999 Takaros999 marked this pull request as ready for review January 9, 2026 13:01
@Takaros999
Copy link
Copy Markdown
Contributor Author

@cursor review

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant