Skip to content

fix(tenancy): require scoped cloud-key agreement - #29

Merged
KilianBoute merged 1 commit into
mainfrom
fix/scoped-device-cloud-key
Aug 25, 2026
Merged

fix(tenancy): require scoped cloud-key agreement#29
KilianBoute merged 1 commit into
mainfrom
fix/scoped-device-cloud-key

Conversation

@KilianBoute

@KilianBoute KilianBoute commented Aug 25, 2026

Copy link
Copy Markdown
Member

Description

This change tightens device tenancy resolution by requiring cloud-key agreement when resolving scoped devices.

Previously, scoped lookups only matched on device identifiers and tenancy boundaries. In environments where the same device key can exist across different cloud contexts, this could allow ambiguous matches or resolve the wrong device. By including analytics.cloudpublickey in every scoped filter path, device resolution now verifies both tenancy scope and cloud ownership.

The update improves isolation between cloud environments, reduces the risk of cross-cloud device collisions, and makes device resolution more deterministic and secure. Tests were updated to ensure the cloud key is consistently applied across project-scoped lookups.

@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 b85566e into main Aug 25, 2026
6 checks passed
@KilianBoute
KilianBoute deleted the fix/scoped-device-cloud-key branch August 25, 2026 15:24
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