Skip to content

Resolve device cloud-key locators - #30

Merged
KilianBoute merged 1 commit into
mainfrom
feat/device-cloud-key-locator
Aug 26, 2026
Merged

Resolve device cloud-key locators#30
KilianBoute merged 1 commit into
mainfrom
feat/device-cloud-key-locator

Conversation

@KilianBoute

@KilianBoute KilianBoute commented Aug 25, 2026

Copy link
Copy Markdown
Member

Description

Adds support for resolving devices using the (device key, cloud key) pair without requiring organisation, project, or legacy owner scope information.

This improves lookup flexibility for flows where the cloud key is already available and acts as a strong secondary identifier. By matching on both properties.DeviceKey and analytics.cloudpublickey, the resolver can uniquely identify devices in a more direct and reliable way.

The change also preserves the existing fail-closed behaviour by rejecting duplicate matches for the same locator pair, preventing ambiguous device resolution and reducing the risk of resolving the wrong device.

New tests cover:

  • successful resolution using device key + cloud key
  • validation of the generated MongoDB filter
  • rejection of duplicate matches for the same locator pair

Allow authenticated ingress to select a device directly by its non-secret device key and public cloud key while retaining bounded ambiguity rejection.
@codecov

codecov Bot commented Aug 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@KilianBoute
KilianBoute merged commit 0982a2b into main Aug 26, 2026
6 checks passed
@KilianBoute
KilianBoute deleted the feat/device-cloud-key-locator branch August 26, 2026 06:57
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