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

Run cargo update to pass cargo audit #1925

Merged
merged 1 commit into from
Apr 21, 2023

Conversation

Bravo555
Copy link
Contributor

Proposed changes

cargo-audit tool in PR check reported a vulnerability in h2 crate, used as a dependency by reqwest and hyper crates, which were in turn used by almost all the crates in our workspace. cargo update bumped patch versions of our dependencies, resolving the audit failure.

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

`cargo-audit` tool in PR check reported a vulnerability in h2 crate,
used as a dependency by reqwest and hyper crates, which were in turn
used by almost all the crates in our workspace. `cargo update` bumped
patch versions of our dependencies, resolving the audit failure.

Signed-off-by: Marcel Guzik <marcel.guzik@inetum.com>
@Bravo555 Bravo555 changed the title Run cargo update to pass cargo-check Run cargo update to pass cargo audit Apr 21, 2023
@Bravo555 Bravo555 temporarily deployed to Test Pull Request April 21, 2023 12:48 — with GitHub Actions Inactive
@github-actions
Copy link
Contributor

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass %
172 0 5 172 100

Passed Tests

Name ⏱️ Duration Suite
Define Child device 1 ID 0.006 s C8Y Child Alarms Rpi
Normal case when the child device does not exist on c8y cloud 2.096 s C8Y Child Alarms Rpi
Normal case when the child device already exists 1.241 s C8Y Child Alarms Rpi
Reconciliation when the new alarm message arrives, restart the mapper 1.404 s C8Y Child Alarms Rpi
Reconciliation when the alarm that is cleared 5.43 s C8Y Child Alarms Rpi
Prerequisite Parent 19.02 s Child Conf Mgmt Plugin
Prerequisite Child 0.619 s Child Conf Mgmt Plugin
Child device bootstrapping 16.397 s Child Conf Mgmt Plugin
Snapshot from device 61.491 s Child Conf Mgmt Plugin
Child device config update 62.608 s Child Conf Mgmt Plugin
Configuration types should be detected on file change (without restarting service) 67.493 s Inotify Crate
Check lock file existence in default folder 2.5140000000000002 s Lock File
Check PID number in lock file 2.377 s Lock File
Check PID number in lock file after restarting the services 3.197 s Lock File
Check starting same service twice 1.654 s Lock File
Switch off lock file creation 2.748 s Lock File
Successful firmware operation 78.888 s Firmware Operation
Install with empty firmware name 65.909 s Firmware Operation
Prerequisite Parent 21.16 s Firmware Operation Child Device
Prerequisite Child 8.017 s Firmware Operation Child Device
Child device firmware update 6.289 s Firmware Operation Child Device
Child device firmware update with cache 6.437 s Firmware Operation Child Device
Update Inventory data via inventory.json 1.355 s Inventory Update
Retrieve a JWT tokens 67.425 s Jwt Request
Main device registration 1.591 s Device Registration
Child device registration 2.512 s Device Registration
Supports restarting the device 73.15 s Restart Device
Update tedge version from previous using Cumulocity 109.392 s Tedge Self Update
Test if all c8y services are up 65.713 s Service Monitoring
Test if all c8y services are down 65.298 s Service Monitoring
Test if all c8y services are using configured service type 72.205 s Service Monitoring
Test if all c8y services using default service type when service type configured as empty 57.787 s Service Monitoring
Check health status of tedge-mapper-c8y service on broker stop start 33.375 s Service Monitoring
Check health status of tedge-mapper-c8y service on broker restart 34.465 s Service Monitoring
Check health status of child device service 26.681 s Service Monitoring
Successful shell command with output 3.769 s Shell Operation
Check Successful shell command with literal double quotes output 3.614 s Shell Operation
Execute multiline shell command 3.613 s Shell Operation
Failed shell command 3.225 s Shell Operation
Software list should be populated during startup 54.788 s Software
Install software via Cumulocity 77.012 s Software
Software list should only show currently installed software and not candidates 57.304 s Software
Child devices support sending simple measurements 3.801 s Child Device Telemetry
Child devices support sending custom measurements 1.3559999999999999 s Child Device Telemetry
Child devices support sending custom events 1.267 s Child Device Telemetry
Child devices support sending custom events overriding the type 1.415 s Child Device Telemetry
Child devices support sending custom alarms #1699 1.068 s Child Device Telemetry
Child devices support sending inventory data via c8y topic 1.204 s Child Device Telemetry
Main device support sending inventory data via c8y topic 1.106 s Child Device Telemetry
Child device supports sending custom child device measurements directly to c8y 1.778 s Child Device Telemetry
Main device supports sending custom child device measurements directly to c8y 1.492 s Child Device Telemetry
Check retained alarms 53.735 s Raise Alarms
Validate updated data path used by tedge-agent 0.951 s Data Path Config
Validate updated data path used by c8y-firmware-plugin 12.525 s Data Path Config
Stop tedge-agent service 0.315 s Log Path Config
Customize the log path 0.168 s Log Path Config
Initialize tedge-agent 0.193 s Log Path Config
Check created folders 0.11 s Log Path Config
Remove created custom folders 0.153 s Log Path Config
Install thin-edge via apt 52.031 s Install Apt
Install latest via script (from current branch) 29.743 s Install Tedge
Install specific version via script (from current branch) 23.235 s Install Tedge
Install latest tedge via script (from main branch) 31.482 s Install Tedge
Install then uninstall latest tedge via script (from main branch) 71.542 s Install Tedge
Support starting and stopping services 42.083 s Service-Control
Supports a reconnect 59.22 s Test-Commands
Supports disconnect then connect 61.918 s Test-Commands
Update unknown setting 48.769 s Test-Commands
Update known setting 28.798000000000002 s Test-Commands
Stop c8y-configuration-plugin 0.115 s Health C8Y-Configuration-Plugin
Update the service file 0.192 s Health C8Y-Configuration-Plugin
Reload systemd files 0.377 s Health C8Y-Configuration-Plugin
Start c8y-configuration-plugin 0.127 s Health C8Y-Configuration-Plugin
Start watchdog service 10.237 s Health C8Y-Configuration-Plugin
Check PID of c8y-configuration-plugin 0.151 s Health C8Y-Configuration-Plugin
Kill the PID 0.394 s Health C8Y-Configuration-Plugin
Recheck PID of c8y-configuration-plugin 0.164 s Health C8Y-Configuration-Plugin
Compare PID change 0.001 s Health C8Y-Configuration-Plugin
Stop watchdog service 0.204 s Health C8Y-Configuration-Plugin
Remove entry from service file 0.168 s Health C8Y-Configuration-Plugin
Stop c8y-log-plugin 0.262 s Health C8Y-Log-Plugin
Update the service file 0.254 s Health C8Y-Log-Plugin
Reload systemd files 1.099 s Health C8Y-Log-Plugin
Start c8y-log-plugin 0.371 s Health C8Y-Log-Plugin
Start watchdog service 10.752 s Health C8Y-Log-Plugin
Check PID of c8y-log-plugin 0.075 s Health C8Y-Log-Plugin
Kill the PID 0.123 s Health C8Y-Log-Plugin
Recheck PID of c8y-log-plugin 2.2439999999999998 s Health C8Y-Log-Plugin
Compare PID change 0.001 s Health C8Y-Log-Plugin
Stop watchdog service 0.201 s Health C8Y-Log-Plugin
Remove entry from service file 0.114 s Health C8Y-Log-Plugin
Stop tedge-mapper 0.315 s Health Tedge Mapper C8Y
Update the service file 0.246 s Health Tedge Mapper C8Y
Reload systemd files 0.686 s Health Tedge Mapper C8Y
Start tedge-mapper 0.155 s Health Tedge Mapper C8Y
Start watchdog service 10.229 s Health Tedge Mapper C8Y
Check PID of tedge-mapper 0.083 s Health Tedge Mapper C8Y
Kill the PID 0.179 s Health Tedge Mapper C8Y
Recheck PID of tedge-mapper 0.098 s Health Tedge Mapper C8Y
Compare PID change 0.001 s Health Tedge Mapper C8Y
Stop watchdog service 0.092 s Health Tedge Mapper C8Y
Remove entry from service file 0.106 s Health Tedge Mapper C8Y
Stop tedge-agent 0.126 s Health Tedge-Agent
Update the service file 0.158 s Health Tedge-Agent
Reload systemd files 0.325 s Health Tedge-Agent
Start tedge-agent 0.099 s Health Tedge-Agent
Start watchdog service 10.175 s Health Tedge-Agent
Check PID of tedge-mapper 0.099 s Health Tedge-Agent
Kill the PID 0.179 s Health Tedge-Agent
Recheck PID of tedge-agent 0.216 s Health Tedge-Agent
Compare PID change 0.001 s Health Tedge-Agent
Stop watchdog service 0.386 s Health Tedge-Agent
Remove entry from service file 0.271 s Health Tedge-Agent
Stop tedge-mapper-az 0.214 s Health Tedge-Mapper-Az
Update the service file 0.13 s Health Tedge-Mapper-Az
Reload systemd files 0.961 s Health Tedge-Mapper-Az
Start tedge-mapper-az 0.265 s Health Tedge-Mapper-Az
Start watchdog service 10.459 s Health Tedge-Mapper-Az
Check PID of tedge-mapper-az 0.101 s Health Tedge-Mapper-Az
Kill the PID 0.322 s Health Tedge-Mapper-Az
Recheck PID of tedge-agent 0.126 s Health Tedge-Mapper-Az
Compare PID change 0.001 s Health Tedge-Mapper-Az
Stop watchdog service 0.188 s Health Tedge-Mapper-Az
Remove entry from service file 0.222 s Health Tedge-Mapper-Az
Stop tedge-mapper-collectd 0.249 s Health Tedge-Mapper-Collectd
Update the service file 0.232 s Health Tedge-Mapper-Collectd
Reload systemd files 1.032 s Health Tedge-Mapper-Collectd
Start tedge-mapper-collectd 0.218 s Health Tedge-Mapper-Collectd
Start watchdog service 10.323 s Health Tedge-Mapper-Collectd
Check PID of tedge-mapper-collectd 0.122 s Health Tedge-Mapper-Collectd
Kill the PID 0.389 s Health Tedge-Mapper-Collectd
Recheck PID of tedge-mapper-collectd 0.187 s Health Tedge-Mapper-Collectd
Compare PID change 0.001 s Health Tedge-Mapper-Collectd
Stop watchdog service 0.352 s Health Tedge-Mapper-Collectd
Remove entry from service file 0.22 s Health Tedge-Mapper-Collectd
tedge-collectd-mapper health status 5.9559999999999995 s Health Tedge-Mapper-Collectd
c8y-log-plugin health status 5.818 s MQTT health endpoints
c8y-configuration-plugin health status 5.825 s MQTT health endpoints
Publish on a local insecure broker 0.329 s Connect Broker
Publish on a local secure broker 3.782 s Connect Broker
Wrong package name 0.124 s Improve Tedge Apt Plugin Error Messages
Wrong version 0.109 s Improve Tedge Apt Plugin Error Messages
Wrong type 0.28 s Improve Tedge Apt Plugin Error Messages
tedge_connect_test_positive 0.484 s Tedge Connect Test
tedge_connect_test_negative 1.112 s Tedge Connect Test
tedge_connect_test_sm_services 7.874 s Tedge Connect Test
tedge_disconnect_test_sm_services 0.981 s Tedge Connect Test
Install thin-edge.io 26.147 s Call Tedge
call tedge -V 0.101 s Call Tedge
call tedge -h 0.137 s Call Tedge
call tedge -h -V 0.165 s Call Tedge
call tedge help 0.2 s Call Tedge
tedge config list 0.085 s Call Tedge Config List
tedge config list --all 0.094 s Call Tedge Config List
set/unset device.type 0.478 s Call Tedge Config List
set/unset device.key.path 0.375 s Call Tedge Config List
set/unset device.cert.path 0.395 s Call Tedge Config List
set/unset c8y.root.cert.path 0.324 s Call Tedge Config List
set/unset c8y.smartrest.templates 0.6 s Call Tedge Config List
set/unset az.root.cert.path 0.761 s Call Tedge Config List
set/unset az.mapper.timestamp 0.95 s Call Tedge Config List
set/unset mqtt.bind_address 1.004 s Call Tedge Config List
set/unset mqtt.port 0.866 s Call Tedge Config List
set/unset tmp.path 0.465 s Call Tedge Config List
set/unset logs.path 0.572 s Call Tedge Config List
set/unset run.path 0.51 s Call Tedge Config List
Get Put Delete 3.208 s Http File Transfer Api
Set keys should return value on stdout 0.326 s Tedge Config Get
Unset keys should not return anything on stdout and warnings on stderr 0.411 s Tedge Config Get
Invalid keys should not return anything on stdout and warnings on stderr 0.584 s Tedge Config Get
Set configuration via environment variables 1.6640000000000001 s Tedge Config Get
Set unknown configuration via environment variables 0.204 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.

Approved.

@didier-wenzek didier-wenzek merged commit bbb7da8 into thin-edge:main Apr 21, 2023
15 checks passed
@Bravo555 Bravo555 deleted the clippy-fix branch April 21, 2023 13:18
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.

None yet

2 participants