Repository navigation
Conversation
- Introduce V2 asset ID mapping using all 22 characters of the gateway ID to reduce mapping collisions - Preserve legacy V1 mapping for gateways registered before the upgrade to version 1.34.0 - Track first activation timestamps of normalized application versions to maintain a stable mapping cutoff across upgrades, restarts and rollbacks - Enforce gateway asset ownership for creates, updates, deletions and attribute events using persisted asset ancestry - Add database locking to prevent concurrent changes from bypassing ownership checks - Reject conflicting asset IDs and invalid synchronization inventories to prevent unintended asset modifications or deletions - Abort gateway synchronization when asset operations fail instead of continuing with inconsistent state - Add unit and integration tests covering ID mapping, version tracking, ownership isolation and synchronization failures Closes #2427
wborn
force-pushed
the
gateway-data-leakage
branch
from
November 5, 2026 15:43
1325e32 to
418dd84
Compare
richturner
reviewed
Nov 5, 2026
- Serialize empty asset inventories so gateways can complete valid empty syncs - Use inserts for gateway assets to prevent ID collisions from overwriting existing assets - Add regression tests for inventory serialization and independent asset creation
|
This branch has not been deployed
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.



Description
Closes #2427
Checklist