-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Integrate secure pairing with example app and device controller #2230
Conversation
This pull request introduces 1 alert when merging f508a95 into 4af7537 - view on LGTM.com new alerts:
|
Do I understand correctly that this commit takes away the ability to test examples other than the echo-server as they don't implement rendezvous over BLE yet and the manual key exchange has been dropped? I wonder if it would be possible to keep the manual key exchange path in the controller, possibly guarded by a compile-time switch, to support testing examples which are not ready yet. Perhaps even if all examples switch to a proper rendezvous method the possibility to test a connection with fixed encryption keys could be useful (?). |
@Damian-Nordic we can add provisions to have a test Do we have any test controller applications that are checked in CHIP repo that can interact with test device examples besides echo-server? I can help migrate the test and example application over to deriving security keys from test secret. |
Size increase report for "gn_nrf-example-build"
Full report output
|
Size increase report for "gn_linux-example-build"
Full report output
|
Size increase report for "nrf-example-build"
Full report output
|
Size increase report for "nrfconnect-example-build"
Full report output
|
Size increase report for "linux-example-build"
Full report output
|
Size increase report for "esp32-example-build"
Full report output
|
LGTM seems to also complain about non virtual destructors. |
That should be fixed in the current set of commits. It complained about it earlier yesterday. |
@pan-apple we were using specifically I'm fine with the shared secret approach and I can implement it in our example, but I wonder if we can have the possibility to bypass rendezvous in chip-tool or we should write another test controller. |
@Damian-Nordic , yes, as an immediate fix, the rendezvous would be bypassed in the chip-tool. We can add a temporary API to CHIPDeviceController that can initialize the security session from a test secret. Once we have support for Rendezvous in chip-tool, this API can be removed. |
@saurabhst, @jelderton, @BroderickCarlin, do you have any review feedback? |
Not sure if I should press the big green button here or not. I believe 32f9903 uses the deleted function, but we do not have a CI test for it. Are we ok to have a temporary breakage? |
I am adding support for using test secret for key derivation here (pan-apple#1). I can amend that PR to take care of the EFR32 scenario as well. The other PR is in my fork as of right now. I'll submit it for review here once this merges. |
…er (project-chip#2230)" This reverts commit ade4ad6.
Problem
Missing secure pairing integration
Summary of Changes
Integrated secure pairing with accessory and device controller.
fixes #611
fixes #612