-
Notifications
You must be signed in to change notification settings - Fork 135
securing the bluetooth pairing with pin code #218
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
Comments
Code change is implemented locally but I need to carefully think about impacts to existing users |
@sle118 great news, hope you'll release it soon, I can test it if you want, I don't care if I need to repair everything. |
I'd love to have a look at this; it's one of the things I really want- anyone outside my place can hook into my garage speakers…. |
@sle118 Any news on this feature ? Is it available in any other branch ? |
Spare time has been sparse in the past few months so no update. Three main issue with this change is that pin code security is a compile time configuration that will break everyone's config. |
I understand now this would be a breaking changes. But what if it's clearly stated as such or even in another branch ? I get that you might not want to have to support it but if the code is written already would you mind sharing it over in a gist for other to look at or decide to compile on their own ? As some people mentioned having Bluetooth wide open is far from ideal in certain physical setup conditions. |
So, as far as I can tell, the relevant sdkconfig parameter is I tried to disable SSP, with Would it maybe be possible to adjust the sink driver to look up the pin during boot, like the device name, from the NVS config? If you want to stay fully backwards compatible, make the default behavior for BT GAP a dynamic pin and only request a fixed pin w/o SSP when explicitly configured by the user. I'm not too familiar with the esp-idf API for BT, but this seems doable and not necessarily a breaking change. It would require changes to the |
I want to leave this here, so that other people can find it more easily:
I also share the opinion, that implementing some kind of pairing mode should be preferred over pin pairing, not only because it can use modern Secure Simple Pairing, but also because it is more in line with what traditional bluetooth audio devices do. |
Discussed in #217
Originally posted by DariBer January 14, 2023
I have a question regarding securing Bluetooth pairing a device like iPhone with a Squeezelite-ESP32 . When pairing an iPhone or what ever using bluetooth, do you know if I can secure that process with maybe a 4 digit code? Cause now anyone who’s near (like on the street, neighbours in the house) can connect to it and start to play music, as it doesn’t need any code. So is there a chance to set a pin code and only the one who know that code can pair and start use the device for streaming?
The text was updated successfully, but these errors were encountered: