-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Mbedtls certificate time validation and board-config fragments. #9658
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
Conversation
28933be
to
ef13017
Compare
* This is a reimplementation of micropython#8854 for the stm32 port.
ef13017
to
9c94080
Compare
Rebased on the common |
I'm not sure about this, about having the options repeated in the board config fragment. The idea of the common mbedtls config file is that all ports and boards behave as similar as possible. This follows the general trend of trying to unify the behaviour of all ports/boards, so users aren't confused why one board works with some feature while another doesn't. Adding custom mbedtls config per board goes against that goal. We are careful about backwards incompatible changes, so these common mbedtls options will not be easily disabled. If you are concerned about it, maybe it's better to add a test (in |
I can remove the repeated config options (although I think they double as documentation for the board, I can comment them out maybe ?), however there's nothing I can do about the custom mebdtls config options, they need to be turned on/off somehow per-board. I don't think |
What you really want to document is not these options, but the fact that the board should be able to connect via SSL to a given website. That website may change its security protocol and hence you may need to update the mbedtls options to continue to connect to it. As I said, I think a test is the best way to document this requirement. And a comment in the board config file about needing to connect to a given site would also be fine.
Yes, I agree. So for that I think |
9c94080
to
ee48a74
Compare
ee48a74
to
032160e
Compare
This is implemented now, but not with |
fix doc markup problem
This PR enables CA certificate validation (a straightforward port of #8854) for
stm32
port, and enables support for mbedtls board-level config fragments, forrp2
andstm32
ports. Some boards require specific (very flash consuming) features to be enabled, that are not very useful in general. I imagine this is preferred over enabling these features on port level. Additionally, two board-level configuration files are added for Arduino boards.