Skip to content

chore(dup): add MQTT control/keyAgreement topic for Encrypted Endpoints#1994

Open
mizzet1 wants to merge 3 commits into
astarte-platform:masterfrom
mizzet1:controltopic
Open

chore(dup): add MQTT control/keyAgreement topic for Encrypted Endpoints#1994
mizzet1 wants to merge 3 commits into
astarte-platform:masterfrom
mizzet1:controltopic

Conversation

@mizzet1
Copy link
Copy Markdown
Contributor

@mizzet1 mizzet1 commented May 27, 2026

This PR aims to add the MQTT control/keyAgreement topic for the Encrypted Endpoints feature, in particular for the handshake between Astarte and Devices to exchange messages

mizzet1 added 2 commits May 26, 2026 15:26
Signed-off-by: Riccardo Nalgi <riccardo.nalgi@secomind.com>
Signed-off-by: Riccardo Nalgi <riccardo.nalgi@secomind.com>
@mizzet1 mizzet1 force-pushed the controltopic branch 2 times, most recently from a1fe2bd to 70a6450 Compare May 27, 2026 15:55
Add backend support for the <realm>/<device>/control/keyAgreement
MQTT control topic, enabling devices to request a Data Encryption Key
(DEK) from Astarte.
@mizzet1 mizzet1 requested review from a team, AliouneGaye21, Annopaolo, Copilot and noaccOS and removed request for a team and Copilot May 27, 2026 15:55
@codecov
Copy link
Copy Markdown

codecov Bot commented May 27, 2026

Codecov Report

❌ Patch coverage is 75.60976% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.64%. Comparing base (7db95a9) to head (040695d).
⚠️ Report is 3825 commits behind head on master.

Files with missing lines Patch % Lines
...rte_secrets/lib/astarte_secrets/astarte_secrets.ex 58.33% 5 Missing ⚠️
...rte_secrets/test/support/helpers/encryption_key.ex 57.14% 3 Missing ⚠️
libs/astarte_secrets/lib/astarte_secrets/core.ex 88.23% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #1994       +/-   ##
===========================================
+ Coverage   67.67%   86.64%   +18.96%     
===========================================
  Files         264      679      +415     
  Lines        6456    12014     +5558     
===========================================
+ Hits         4369    10409     +6040     
+ Misses       2087     1605      -482     
Files with missing lines Coverage Δ
...updater_plant/data_updater/core/control_handler.ex 88.88% <100.00%> (ø)
libs/astarte_secrets/lib/astarte_secrets/core.ex 91.45% <88.23%> (ø)
...rte_secrets/test/support/helpers/encryption_key.ex 57.14% <57.14%> (ø)
...rte_secrets/lib/astarte_secrets/astarte_secrets.ex 71.79% <58.33%> (ø)

... and 561 files with indirect coverage changes

Flag Coverage Δ
astarte_adapters 100.00% <ø> (?)
astarte_appengine_api 86.46% <ø> (+3.98%) ⬆️
astarte_data_access 84.97% <ø> (?)
astarte_data_access_generators 100.00% <ø> (?)
astarte_data_updater_plant 87.06% <100.00%> (+23.06%) ⬆️
astarte_events 80.27% <ø> (?)
astarte_fdo 81.53% <ø> (?)
astarte_fdo_core 77.99% <ø> (?)
astarte_generators 97.56% <ø> (?)
astarte_housekeeping 86.26% <ø> (+38.42%) ⬆️
astarte_realm_management 88.64% <ø> (+22.33%) ⬆️
astarte_rpc 88.23% <ø> (?)
astarte_secrets 86.13% <72.22%> (?)
astarte_test_suite 100.00% <ø> (?)
astarte_trigger_engine 82.67% <ø> (+38.69%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant