Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add certificate based authentication to c8y-auth-proxy #2397

Closed
wants to merge 1 commit into from

Conversation

jarhodes314
Copy link
Contributor

@jarhodes314 jarhodes314 commented Nov 2, 2023

Proposed changes

This adds HTTPS support and (opt-in) certificate-based authentication to the c8y auth proxy.

At the moment this is a draft PR as the agent currently doesn't handle the device certificate not being present. It also doesn't yet document the API changes (HTTP -> HTTPS), nor does it touch the integration tests.

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Improvement (general improvements like code refactoring that doesn't explicitly fix a bug or add any new functionality)
  • Documentation Update (if none of the other choices apply)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Paste Link to the issue


Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the CLA (in all commits with git commit -s)
  • I ran cargo fmt as mentioned in CODING_GUIDELINES
  • I used cargo clippy as mentioned in CODING_GUIDELINES
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

When the only authentication scheme available for software updates was bearer tokens, the mapper simply supplied the token along with the request, which the agent would simply use. As this adds certificate authentication, the mapper requires the agent to also use certificate authentication (if configured). This has the advantage of us being able to delegate authentication largely to a trusted library, but does add complexity in the agent code and adds possible error states, due to the way certificates need to be configured.

The most significant changes to the agent centre around the generic authentication strategy supported by DownloadInfo. DownloadInfo has been modified to support an incoming request from the mapper (which would simply tell the agent to use a certificate, if required), a request that is being processed (at which point the agent will add the required certificate) and a response (which has the authentication anonymised for security/because we cannot clone reqwest::Identity, which represents the certificate/key pair in use).

Due to this complexity, it may be desirable to add an alternative authentication scheme to the auth proxy. This could involve the mapper generating its own bearer token, and the agent consuming this as it does currently. This would ensure backwards compatibility with the existing software update API (if someone is using a custom agent implementation). It would also remove the burden of the agent (possibly) needing to supply certificates, which is difficult to handle errors for proactively before a user attempts to e.g. update software and finds the agent configuration is broken. The difficulty arises from the fact certificates may not be required, either due to not specifying trusted certificates for the auth proxy, or not connecting thin-edge to Cumulocity (in which case the auth proxy isn't running). If the mapper could decide itself how to authenticate a request to itself (e.g. by creating a JWT using the certificate used for the HTTPS connection), this alleviates the need for the agent to care how the request should be authenticated. Certificate-based authentication would still be useful for thin-edge users to connect to the API themselves (if no certificates are provided, the mapper could just disable authentication entirely, both for external users and agents).

Copy link

codecov bot commented Nov 2, 2023

Codecov Report

Merging #2397 (8cb6bc0) into main (45d241f) will decrease coverage by 0.2%.
The diff coverage is 64.0%.

Additional details and impacted files
Files Coverage Δ
crates/core/c8y_api/src/json_c8y.rs 86.9% <100.0%> (-0.1%) ⬇️
...re/c8y_api/src/smartrest/smartrest_deserializer.rs 93.2% <100.0%> (ø)
crates/core/tedge_actors/src/macros.rs 75.0% <100.0%> (ø)
...s/core/tedge_agent/src/software_manager/builder.rs 75.0% <100.0%> (ø)
...tes/core/tedge_agent/src/software_manager/tests.rs 92.7% <100.0%> (ø)
...tedge_agent/src/tedge_operation_converter/actor.rs 74.7% <100.0%> (+1.3%) ⬆️
...dge_agent/src/tedge_operation_converter/builder.rs 91.6% <100.0%> (+0.3%) ⬆️
...tedge_agent/src/tedge_operation_converter/tests.rs 91.9% <100.0%> (+0.4%) ⬆️
crates/core/tedge_api/src/error.rs 0.0% <ø> (ø)
crates/core/tedge_api/src/lib.rs 100.0% <100.0%> (ø)
... and 30 more

... and 1 file with indirect coverage changes

Copy link
Contributor

github-actions bot commented Nov 2, 2023

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
15 341 2 356 4.21 51m45.363999999s

Failed Tests

Name Message ⏱️ Duration Suite
Publish measurements to te measurement topic Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.063 s Aws Telemetry
Publish measurements to te measurement topic with measurement type Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.064 s Aws Telemetry
Publish service measurements to te measurement topic with measurement type Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.044 s Aws Telemetry
Publish child measurements to te measurement topic with measurement type Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.046 s Aws Telemetry
Publish main device event to te event topic with event type Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.058 s Aws Telemetry
Publish child device event to te event topic with event type Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.059 s Aws Telemetry
Publish main device alarm to te alarm topic with alarm type Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.059 s Aws Telemetry
Publish child device alarm to te alarm topic with alarm type Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.058 s Aws Telemetry
Publish health status message for main device service Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.091 s Aws Telemetry
Publish measurements to te measurement topic with measurement type Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.068 s Azure Telemetry
Publish measurements to te measurement topic without measurement type Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.079 s Azure Telemetry
Publish service measurements to te measurement topic with measurement type Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.246 s Azure Telemetry
Publish child measurements to te measurement topic with measurement type Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.153 s Azure Telemetry
Publish main device event to te event topic with event type Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.256 s Azure Telemetry
Publish main device event to te event topic without event type Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.205 s Azure Telemetry
Publish child device event to te event topic with event type Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.333 s Azure Telemetry
Publish main device alarm to te alarm topic with alarm type Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.174 s Azure Telemetry
Publish main device alarm to te alarm topic without alarm type Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.236 s Azure Telemetry
Publish child device alarm to te alarm topic with alarm type Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.169 s Azure Telemetry
Publish health status message for main device service Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.176 s Azure Telemetry
Prerequisite Parent Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.061 s Child Conf Mgmt Plugin
Prerequisite Child Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.051 s Child Conf Mgmt Plugin
Child device bootstrapping Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.056 s Child Conf Mgmt Plugin
Snapshot from device Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.053 s Child Conf Mgmt Plugin
Child device config update Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.062 s Child Conf Mgmt Plugin
Configuration types should be detected on file change (without restarting service) Supported configuration fragment is missing c8y_SupportedConfigurations from managed object 85.403 s Inotify Crate
Check lock file existence in default folder Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.184 s Lock File
Check PID number in lock file Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.154 s Lock File
Check PID number in lock file after restarting the services Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.212 s Lock File
Check starting same service twice Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.178 s Lock File
Switch off lock file creation Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.236 s Lock File
Publish measurements varying period Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.248 s Benchmarks
Publish measurements varying count Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.272 s Benchmarks
Publish measurements varying beats Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.198 s Benchmarks
Publish measurements varying beats_delay Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.388 s Benchmarks
Set Configuration when file does not exist Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.070 s Configuration Operation
Set Configuration when file exists Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.087 s Configuration Operation
Set configuration with broken url Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.100 s Configuration Operation
Get Configuration from Main Device Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.108 s Configuration Operation
Get Configuration from Child Device Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.083 s Configuration Operation
Get Unknown Configuration Type From Device Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.137 s Configuration Operation
Get non existent configuration file From Device Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.059 s Configuration Operation
Update configuration plugin config via cloud Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.058 s Configuration Operation
Modify configuration plugin config via local filesystem modify inplace Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.065 s Configuration Operation
Modify configuration plugin config via local filesystem overwrite Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.055 s Configuration Operation
Update configuration plugin config via local filesystem copy Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.061 s Configuration Operation
Update configuration plugin config via local filesystem move (different directory) Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.075 s Configuration Operation
Update configuration plugin config via local filesystem move (same directory) Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.107 s Configuration Operation
Manual config_snapshot operation request Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.086 s Configuration Operation
Manual config_update operation request Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.129 s Configuration Operation
Update the custom operation dynamically Setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 86.918 s Dynamically Reload Operation
Custom operation successful Setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 86.579 s Custom Operation
Custom operation fails Setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 67.965 s Custom Operation
Successful firmware operation Setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 82.801 s Firmware Operation
Install with empty firmware name Setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 66.397 s Firmware Operation
Prerequisite Parent Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.101 s Firmware Operation Child Device
Prerequisite Child Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.089 s Firmware Operation Child Device
Child device firmware update Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.094 s Firmware Operation Child Device
Child device firmware update with cache Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.108 s Firmware Operation Child Device
Firmware plugin supports restart via service manager #1932 Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.078 s Firmware Operation Child Device Retry
Update Inventory data via inventory.json Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.122 s Inventory Update
Inventory includes the agent fragment with version information Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.166 s Inventory Update
Retrieve a JWT tokens Setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 69.502 s Jwt Request
Successful log operation Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.135 s Log Operation
Request with non-existing log type Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.162 s Log Operation
Manual log_upload operation request Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.181 s Log Operation
Successful log operation Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.306 s Log Operation Child
Mapper recovers and processes output of ongoing software update request Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.265 s Recover And Publish Software Update Message
Check running collectd Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.185 s Monitor Device Collectd
Is collectd publishing MQTT messages? Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.126 s Monitor Device Collectd
Check thin-edge monitoring Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.137 s Monitor Device Collectd
Check grouping of measurements Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.325 s Monitor Device Collectd
Main device registration Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.074 s Device Registration
Child device registration Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.056 s Device Registration
Register child device with defaults via MQTT Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.054 s Device Registration
Register child device with custom name and type via MQTT Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.071 s Device Registration
Register child device with custom id via MQTT Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.077 s Device Registration
Register nested child device using default topic schema via MQTT Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.078 s Device Registration
Register service on a child device via MQTT Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.067 s Device Registration
Register devices using custom MQTT schema Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.069 s Device Registration
Register tedge-agent when tedge-mapper-c8y is not running #2389 Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.068 s Device Registration
Register tedge-configuration-plugin when tedge-mapper-c8y is not running #2389 Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.050 s Device Registration
Register tedge-log-plugin when tedge-mapper-c8y is not running #2389 Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.063 s Device Registration
Install c8y-remote-access-plugin Setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 57.880 s Test Remote Access
Supports restarting the device Setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 58.841 s Restart Device
Supports restarting the device without sudo and running as root Setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 57.078 s Restart Device
tedge-mapper-c8y does not react to local restart operations transitions Setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 53.873 s Restart Device
Support restarting the device Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.085 s Restart Device Child
Restart operation should be set to failed when an non-existent command is configured Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.087 s Restart Device Child
Restart operation should be set to failed when command is not allowed by sudo Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.083 s Restart Device Child
Restart operation should be set to failed when the command does not restart the device Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.069 s Restart Device Child
Restart operation should be set to failed if the restart command times out Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.085 s Restart Device Child
Restart operation should be set to failed when the command has been killed by a signal Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.068 s Restart Device Child
Default restart timeout supports the default 60 second delay of the linux shutdown command Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.087 s Restart Device Child
Update tedge version from previous using Cumulocity Expected operation (id=8046871) to be SUCCESSFUL, but got: EXECUTING (failureReason: ) [RETRY] FAIL on 1. retry. 234.993 s Tedge Self Update
Test if all c8y services are up Setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 64.243 s Service Monitoring
Test if all c8y services are down Setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 62.964 s Service Monitoring
Test if all c8y services are using configured service type Setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 58.538 s Service Monitoring
Test if all c8y services using default service type when service type configured as empty Setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 64.711 s Service Monitoring
Check health status of tedge-mapper-c8y service on broker stop start Setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 71.426 s Service Monitoring
Check health status of tedge-mapper-c8y service on broker restart Setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 61.163 s Service Monitoring
Check health status of child device service Setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 63.591 s Service Monitoring
Successful shell command with output Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.069 s Shell Operation
Check Successful shell command with literal double quotes output Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.072 s Shell Operation
Execute multiline shell command Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.058 s Shell Operation
Failed shell command Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.068 s Shell Operation
Limit number of packages Managed object does not have a c8y_SoftwareList fragment 50.477 s Sm-Plugin
Limit number of packages to 1 Managed object does not have a c8y_SoftwareList fragment 49.194 s Sm-Plugin
Don't limit number of packages Managed object does not have a c8y_SoftwareList fragment 55.467 s Sm-Plugin
sm-plugins should work without sudo installed and running as root Managed object does not have a c8y_SoftwareList fragment 65.032 s Sm-Plugin
sm-plugins download files from Cumulocity Expected operation (id=8046879) to be SUCCESSFUL, but got: PENDING (failureReason: ) 102.158 s Sm-Plugin
Software list should be populated during startup Setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 64.720 s Software
Install software via Cumulocity Setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 59.212 s Software
tedge-agent should terminate on SIGINT while downloading file Setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 56.680 s Software
Software list should only show currently installed software and not candidates Setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 64.553 s Software
Manual software_list operation request Setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 69.669 s Software
Manual software_update operation request Setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 52.955 s Software
Software list should be populated during startup Setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out Also teardown failed: Variable '${CHILD_SN}' not found. 64.835 s Software-Update-Child
Install software via Cumulocity Setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out Also teardown failed: Variable '${CHILD_SN}' not found. 60.078 s Software-Update-Child
Create and publish the tedge agent supported operations on mapper restart Setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 57.278 s Mapper-Publishing-Agent-Supported-Ops
Agent gets the software list request once it comes up Setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 54.483 s Mapper-Publishing-Agent-Supported-Ops
Define Child device 1 ID Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.055 s C8Y Child Alarms Rpi
Normal case when the child device does not exist on c8y cloud Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.051 s C8Y Child Alarms Rpi
Normal case when the child device already exists Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.057 s C8Y Child Alarms Rpi
Reconciliation when the new alarm message arrives, restart the mapper Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.064 s C8Y Child Alarms Rpi
Reconciliation when the alarm that is cleared Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.069 s C8Y Child Alarms Rpi
Child devices support sending simple measurements Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.088 s Child Device Telemetry
Child devices support sending simple measurements with custom type in topic Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.084 s Child Device Telemetry
Child devices support sending simple measurements with custom type in payload Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.078 s Child Device Telemetry
Child devices support sending custom measurements Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.076 s Child Device Telemetry
Child devices support sending custom events Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.063 s Child Device Telemetry
Child devices support sending custom events overriding the type Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.083 s Child Device Telemetry
Child devices support sending custom events without type in topic Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.080 s Child Device Telemetry
Child devices support sending custom alarms #1699 Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.096 s Child Device Telemetry
Child devices support sending alarms using text fragment Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.064 s Child Device Telemetry
Child devices support sending inventory data via c8y topic Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.075 s Child Device Telemetry
Child devices support sending inventory data via tedge topic with type Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.091 s Child Device Telemetry
Child devices supports sending inventory data via tedge topic to root fragments Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.092 s Child Device Telemetry
Child device supports sending custom child device measurements directly to c8y Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.077 s Child Device Telemetry
Nested child devices support sending inventory data via tedge topic Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.095 s Child Device Telemetry
Send measurements to an unregistered child service Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.075 s Child Device Telemetry
Send measurements to a registered child service Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.067 s Child Device Telemetry
Send alarms to an unregistered child service Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.074 s Child Device Telemetry
Send alarms to a registered child service Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.072 s Child Device Telemetry
Send events to an unregistered child service Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.057 s Child Device Telemetry
Send events to a registered child service Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.076 s Child Device Telemetry
Nested child devices support sending measurement Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.065 s Child Device Telemetry
Nested child devices support sending alarm Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.074 s Child Device Telemetry
Nested child devices support sending event Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.118 s Child Device Telemetry
Nested child device service support sending simple measurements Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.085 s Child Device Telemetry
Nested child device service support sending events Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.072 s Child Device Telemetry
Nested child device service support sending alarm Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.105 s Child Device Telemetry
Check retained alarms Setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 57.833 s Raise Alarms
Thin-edge devices support sending simple measurements Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.067 s Thin-Edge Device Telemetry
Thin-edge devices support sending simple measurements with custom type Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.061 s Thin-Edge Device Telemetry
Thin-edge devices support sending simple measurements with custom type in topic Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.059 s Thin-Edge Device Telemetry
Thin-edge devices support sending simple measurements with custom type in payload Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.091 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom measurements Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.070 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom events Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.058 s Thin-Edge Device Telemetry
Thin-edge devices support sending large events Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.084 s Thin-Edge Device Telemetry
Thin-edge devices support sending large events using legacy api Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.132 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom events overriding the type Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.064 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom events without type in topic Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.077 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom alarms #1699 Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.131 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom alarms overriding the type Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.146 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom alarms without type in topic Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.096 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom alarms without severity in payload Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.099 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom alarms with unknown severity in payload Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.149 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom alarms without text in payload Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.165 s Thin-Edge Device Telemetry
Thin-edge devices support sending alarms using text fragment Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.112 s Thin-Edge Device Telemetry
Thin-edge device supports sending custom Thin-edge device measurements directly to c8y Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.087 s Thin-Edge Device Telemetry
Thin-edge device support sending inventory data via c8y topic Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.071 s Thin-Edge Device Telemetry
Thin-edge device support sending inventory data via tedge topic Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.099 s Thin-Edge Device Telemetry
Thin-edge device supports sending inventory data via tedge topic to root fragments Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.091 s Thin-Edge Device Telemetry
Previously cleared property should be sent to cloud when set again #2365 Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.082 s Thin-Edge Device Telemetry
Send measurements to an unregistered service Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.128 s Thin-Edge Device Telemetry
Send measurements to a registered service Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.127 s Thin-Edge Device Telemetry
Send alarms to an unregistered service Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.082 s Thin-Edge Device Telemetry
Send alarms to a registered service Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.098 s Thin-Edge Device Telemetry
Send events to an unregistered service Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.093 s Thin-Edge Device Telemetry
Send events to a registered service Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.087 s Thin-Edge Device Telemetry
Validate updated data path used by tedge-agent Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.138 s Data Path Config
Validate updated data path used by c8y-firmware-plugin Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.302 s Data Path Config
Validate updated data path used by tedge-agent Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.232 s Log Path Config
Check existence of init directories Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.093 s Tedge Init
Tedge init and check creation of folders Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.081 s Tedge Init
Check ownership of the folders Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.090 s Tedge Init
Change user/group and check the change Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.094 s Tedge Init
Tedge init and check if default values are restored Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.075 s Tedge Init
Support starting and stopping services mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 56.490 s Service-Control
Supports a reconnect mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 65.151 s Test-Commands
Supports disconnect then connect mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 72.161 s Test-Commands
Update unknown setting mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 61.764 s Test-Commands
Update known setting mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 64.775 s Test-Commands
It checks MQTT messages using a pattern Setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 61.134 s Test-Mqtt
Stop tedge-mapper Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.117 s Health Tedge Mapper C8Y
Update the service file Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.103 s Health Tedge Mapper C8Y
Reload systemd files Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.095 s Health Tedge Mapper C8Y
Start tedge-mapper Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.099 s Health Tedge Mapper C8Y
Start watchdog service Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.079 s Health Tedge Mapper C8Y
Check PID of tedge-mapper Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.083 s Health Tedge Mapper C8Y
Kill the PID Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.082 s Health Tedge Mapper C8Y
Recheck PID of tedge-mapper Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.084 s Health Tedge Mapper C8Y
Compare PID change Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.091 s Health Tedge Mapper C8Y
Stop watchdog service Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.101 s Health Tedge Mapper C8Y
Remove entry from service file Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.077 s Health Tedge Mapper C8Y
Watchdog does not kill mapper if it responds Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.101 s Health Tedge Mapper C8Y
Stop tedge-agent Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.149 s Health Tedge-Agent
Update the service file Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.106 s Health Tedge-Agent
Reload systemd files Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.140 s Health Tedge-Agent
Start tedge-agent Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.132 s Health Tedge-Agent
Start watchdog service Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.089 s Health Tedge-Agent
Check PID of tedge-mapper Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.123 s Health Tedge-Agent
Kill the PID Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.076 s Health Tedge-Agent
Recheck PID of tedge-agent Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.099 s Health Tedge-Agent
Compare PID change Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.108 s Health Tedge-Agent
Stop watchdog service Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.149 s Health Tedge-Agent
Remove entry from service file Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.115 s Health Tedge-Agent
Stop tedge-configuration-plugin Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.078 s Health Tedge-Configuration-Plugin
Update the service file Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.080 s Health Tedge-Configuration-Plugin
Reload systemd files Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.106 s Health Tedge-Configuration-Plugin
Start tedge-configuration-plugin Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.095 s Health Tedge-Configuration-Plugin
Start watchdog service Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.080 s Health Tedge-Configuration-Plugin
Check PID of tedge-configuration-plugin Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.118 s Health Tedge-Configuration-Plugin
Kill the PID Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.106 s Health Tedge-Configuration-Plugin
Recheck PID of tedge-configuration-plugin Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.118 s Health Tedge-Configuration-Plugin
Compare PID change Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.075 s Health Tedge-Configuration-Plugin
Stop watchdog service Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.105 s Health Tedge-Configuration-Plugin
Remove entry from service file Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.112 s Health Tedge-Configuration-Plugin
Stop tedge-log-plugin Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.079 s Health Tedge-Log-Plugin
Update the service file Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.065 s Health Tedge-Log-Plugin
Reload systemd files Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.073 s Health Tedge-Log-Plugin
Start tedge-log-plugin Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.078 s Health Tedge-Log-Plugin
Start watchdog service Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.069 s Health Tedge-Log-Plugin
Check PID of tedge-log-plugin Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.082 s Health Tedge-Log-Plugin
Kill the PID Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.066 s Health Tedge-Log-Plugin
Recheck PID of tedge-log-plugin Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.089 s Health Tedge-Log-Plugin
Compare PID change Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.083 s Health Tedge-Log-Plugin
Stop watchdog service Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.076 s Health Tedge-Log-Plugin
Remove entry from service file Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.109 s Health Tedge-Log-Plugin
Watchdog does not kill mapper if it responds Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.097 s Health Tedge-Mapper-Aws
Stop tedge-mapper-az Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.172 s Health Tedge-Mapper-Az
Update the service file Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.092 s Health Tedge-Mapper-Az
Reload systemd files Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.155 s Health Tedge-Mapper-Az
Start tedge-mapper-az Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.146 s Health Tedge-Mapper-Az
Start watchdog service Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.132 s Health Tedge-Mapper-Az
Check PID of tedge-mapper-az Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.131 s Health Tedge-Mapper-Az
Kill the PID Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.151 s Health Tedge-Mapper-Az
Recheck PID of tedge-mapper-az Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.115 s Health Tedge-Mapper-Az
Compare PID change Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.140 s Health Tedge-Mapper-Az
Stop watchdog service Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.151 s Health Tedge-Mapper-Az
Remove entry from service file Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.124 s Health Tedge-Mapper-Az
Watchdog does not kill mapper if it responds Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.136 s Health Tedge-Mapper-Az
Stop tedge-mapper-collectd Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.107 s Health Tedge-Mapper-Collectd
Update the service file Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.097 s Health Tedge-Mapper-Collectd
Reload systemd files Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.090 s Health Tedge-Mapper-Collectd
Start tedge-mapper-collectd Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.079 s Health Tedge-Mapper-Collectd
Start watchdog service Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.093 s Health Tedge-Mapper-Collectd
Check PID of tedge-mapper-collectd Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.071 s Health Tedge-Mapper-Collectd
Kill the PID Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.115 s Health Tedge-Mapper-Collectd
Recheck PID of tedge-mapper-collectd Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.112 s Health Tedge-Mapper-Collectd
Compare PID change Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.100 s Health Tedge-Mapper-Collectd
Stop watchdog service Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.087 s Health Tedge-Mapper-Collectd
Remove entry from service file Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.073 s Health Tedge-Mapper-Collectd
tedge-collectd-mapper health status Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.081 s Health Tedge-Mapper-Collectd
tedge-log-plugin health status Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.095 s MQTT health endpoints
tedge-configuration-plugin health status Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.077 s MQTT health endpoints
Publish events to subscribed topic Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.112 s Custom Sub Topics Tedge-Mapper-Aws
Publish measurements to unsubscribed topic Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.130 s Custom Sub Topics Tedge-Mapper-Aws
Publish events to subscribed topic Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.234 s Custom Sub Topics Tedge-Mapper-Az
Publish measurements to unsubscribed topic Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.217 s Custom Sub Topics Tedge-Mapper-Az
Publish events to subscribed topic Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.124 s Custom Sub Topics Tedge-Mapper-C8Y
Publish measurements to unsubscribed topic Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.160 s Custom Sub Topics Tedge-Mapper-C8Y
Check remote mqtt broker #1773 systemctl is-active tedge-mapp... returned an unexpected exit code stdout: activating stderr: 30.353 s Remote Mqtt Broker
Apply name filter Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.131 s Filter Packages List Output
Apply maintainer filter Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.126 s Filter Packages List Output
Apply both filters Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.058 s Filter Packages List Output
No filters Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.067 s Filter Packages List Output
Both filters but name filter as empty string Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.056 s Filter Packages List Output
Both filters but maintainer filter as empty string Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.053 s Filter Packages List Output
Both filters as empty string Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.064 s Filter Packages List Output
Wrong package name Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.068 s Improve Tedge Apt Plugin Error Messages
Wrong version Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.062 s Improve Tedge Apt Plugin Error Messages
Wrong type Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.078 s Improve Tedge Apt Plugin Error Messages
Converter and file transfer service are not running on a child device Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.074 s Tedge Agent
tedge_connect_test_positive Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.054 s Tedge Connect Test
Non-root users should be able to read the mosquitto configuration files #2154 Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.070 s Tedge Connect Test
tedge_connect_test_negative Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.111 s Tedge Connect Test
tedge_connect_test_sm_services Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.060 s Tedge Connect Test
tedge_disconnect_test_sm_services Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.067 s Tedge Connect Test
Convert main device measurement topic Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.060 s Convert Tedge Topics To Te Topics
Convert main device empty measurement topic Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.059 s Convert Tedge Topics To Te Topics
Convert child device measurement topic Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.056 s Convert Tedge Topics To Te Topics
Convert main device event topic Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.068 s Convert Tedge Topics To Te Topics
Convert main device empty event topic Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.127 s Convert Tedge Topics To Te Topics
Convert child device event topic Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.166 s Convert Tedge Topics To Te Topics
Convert main device alarm topic Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.153 s Convert Tedge Topics To Te Topics
Convert main device alarm topic and retain Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.150 s Convert Tedge Topics To Te Topics
Convert child device alarm topic Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.174 s Convert Tedge Topics To Te Topics
Convert clear alarm topic Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.102 s Convert Tedge Topics To Te Topics
Convert empty alarm message Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.081 s Convert Tedge Topics To Te Topics
tedge config list Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.057 s Call Tedge Config List
tedge config list --all Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.059 s Call Tedge Config List
set/unset device.type Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.060 s Call Tedge Config List
set/unset device.key_path Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.055 s Call Tedge Config List
set/unset device.cert_path Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.047 s Call Tedge Config List
set/unset c8y.root_cert_path Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.060 s Call Tedge Config List
set/unset c8y.smartrest.templates Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.064 s Call Tedge Config List
set/unset c8y.topics Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.050 s Call Tedge Config List
set/unset az.root_cert_path Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.040 s Call Tedge Config List
set/unset az.topics Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.057 s Call Tedge Config List
set/unset aws.topics Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.058 s Call Tedge Config List
set/unset aws.url Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.047 s Call Tedge Config List
set/unset aws.root_cert_path Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.048 s Call Tedge Config List
set/unset aws.mapper.timestamp Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.049 s Call Tedge Config List
set/unset az.mapper.timestamp Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.059 s Call Tedge Config List
set/unset mqtt.bind.address Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.056 s Call Tedge Config List
set/unset mqtt.bind.port Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.054 s Call Tedge Config List
set/unset http.bind.port Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.056 s Call Tedge Config List
set/unset tmp.path Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.047 s Call Tedge Config List
set/unset logs.path Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.047 s Call Tedge Config List
set/unset run.path Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.055 s Call Tedge Config List
set/unset firmware.child.update.timeout Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.048 s Call Tedge Config List
set/unset c8y.url Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.059 s Call Tedge Config List
set/unset az.url Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.067 s Call Tedge Config List
set/unset mqtt.external.bind.port Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.071 s Call Tedge Config List
mqtt.external.bind.address Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.051 s Call Tedge Config List
mqtt.external.bind.interface Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.055 s Call Tedge Config List
set/unset mqtt.external.ca_path Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.049 s Call Tedge Config List
set/unset mqtt.external.cert_file Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.051 s Call Tedge Config List
set/unset mqtt.external.key_file Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.044 s Call Tedge Config List
set/unset software.plugin.default Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.050 s Call Tedge Config List
set/unset apt.name Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.059 s Call Tedge Config List
set/unset apt.maintainer Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.044 s Call Tedge Config List
Get Put Delete Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out Also parent suite teardown failed: Name not found existing device adapters: ['TST_express_binding_blowfish'] 0.061 s Http File Transfer Api
Set keys should return value on stdout Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.077 s Tedge Config Get
Unset keys should not return anything on stdout and warnings on stderr Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.059 s Tedge Config Get
Invalid keys should not return anything on stdout and warnings on stderr Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.056 s Tedge Config Get
Set configuration via environment variables Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.055 s Tedge Config Get
Set configuration via environment variables for topics Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.054 s Tedge Config Get
Set unknown configuration via environment variables Parent suite setup failed: mosquitto_sub -t &#39;te/device/ma... returned an unexpected exit code stdout: stderr: Timed out 0.061 s Tedge Config Get

Copy link
Contributor

@didier-wenzek didier-wenzek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before going further, it would be good to sketch a user documentation telling how to deploy certificates over misc thin-edge devices for the c8y_auth_proxy to serve only HTTPS requests to authenticated services. Such a documentation would really help to clarify the design and understand the code.

@@ -111,6 +111,7 @@ rand = "0.8"
rcgen = { version = "0.9", features = ["pem", "zeroize"] }
regex = "1.4"
reqwest = { version = "0.11", default-features = false }
ring = "0.16"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that it would be better to avoid a direct dependency on ring as this crate supports fewer architectures than we would ideally like to support.

.context("creating identity from configured client certificate and private key")
})
.transpose()?
.unwrap();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This unwrap() panics when running the agent with no specific certificate settings.

tedge-agent should be able to run with no Identity. Sure, it will be then unable to download software from the c8y auth proxy if the latter has been configured to enforce client authentication. But, it should work with a mapper that accepts anonymous connections.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

However, this improvement of the fan_in_message_type macro deserves its own PR ... to be merged sooner :-)

It would also be good to have an example in the doc comment.

#[derive(Error, Debug)]
#[derive(Error, Debug, miette::Diagnostic)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to have a specific PR introducing miette.

So we can discuss the pros and cons of using it and conclude,
rather than have a mix of miette and anyhow proponents and a bloated software.

Comment on lines -86 to +107
pub enum Auth {
pub enum RequiredAuth {
/// HTTP Bearer authentication
Bearer(String),
/// TLS certificate authentication
Certificate,
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand this change. This is even going in the reverse direction I was expecting.

  • In their first version, tedge-mapper and tedge-agent were exchanging over MQTT the credentials required to download a software package from c8y. This was not only a security issue (the Bearer being sent clear-text over MQTT), but also fragile (as the JWT token might expired before being used).
  • The introduction of c8y_auth_proxy makes the authentication to c8y an internal issue of the mapper. This is less fragile, but still not secure as any local process has full access to the c8y API which is exposed over non-TLS HTTP.
  • This PR aims to add HTTPS support with mutual TLS authentication of the mapper and the agent (the agent is possibly running on a different device). Each needs its own certificate (and private key). Each needs to trust the certificate of the other. But no identity and even no credentials have to be exchanged over MQTT between the mapper and the agent.
  • Hence, I was expecting the enum Auth to be deprecated, not augmented.

@jarhodes314
Copy link
Contributor Author

This is now entirely superseeded by #2430

@jarhodes314 jarhodes314 deleted the feat/auth-proxy-auth branch November 15, 2023 16:14
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.

2 participants