Skip to content

Code signing for [OTA] Updates #8141

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

Open
1 task done
tushev opened this issue May 1, 2023 · 3 comments
Open
1 task done

Code signing for [OTA] Updates #8141

tushev opened this issue May 1, 2023 · 3 comments
Labels
Type: Feature request Feature request for Arduino ESP32

Comments

@tushev
Copy link

tushev commented May 1, 2023

Related area

Updater library, Build process, OTA

Hardware specification

ESP32-S3 specifically. Generally, every ESP32.

Is your feature request related to a problem?

I'm missing the possibility to enforce signed OTA updates with ESP32, which are possible with ESP8266. This is critical to ensure that only authorized code will run on end devices, even if update server gets compromised.

Describe the solution you'd like

The same procedure as with ESP8266:
https://arduino-esp8266.readthedocs.io/en/latest/ota_updates/readme.html#advanced-security-signed-updates

// <in globals>
BearSSL::PublicKey signPubKey( ... key contents ... );
BearSSL::HashSHA256 hash;
BearSSL::SigningVerifier sign( &signPubKey );
//...
//<in setup()>
Update.installSignature( &hash, &sign );

Possibly should work for any update sources, including https://github.com/espressif/arduino-esp32/blob/master/libraries/Update/examples/SD_Update/SD_Update.ino

Describe alternatives you've considered

No response

Additional context

No response

I have checked existing list of Feature requests and the Contribution Guide

  • I confirm I have checked existing list of Feature requests and Contribution Guide.
@Parsaabasi
Copy link

Hello,

Due to the overwhelming volume of issues currently being addressed, we have decided to close the previously received tickets. If you still require assistance or if the issue persists, please don't hesitate to reopen the ticket.

Thanks.

@tushev
Copy link
Author

tushev commented Jan 16, 2025

This is still a very important feature for anyone who needs to perform authenticated OTA updates.

Please consider prioritizing it.

@me-no-dev
Copy link
Member

@Parsaabasi please add this to the active feature requests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature request Feature request for Arduino ESP32
Projects
Development

No branches or pull requests

3 participants