[yocto-security] [PATCH] busybox: use openssl for TLS connections whenever possible
Add the oe-core list where patches are
usually discussed.
On 2021-04-17 10:41 a.m., Shachar
Menashe wrote:
I think you should add some of the comments you made in the bugzilla here: --- By enabling the
busybox feature: WGET_OPENSSL it means that in builds WITH openssl
(ex. sato) --- Thanks for the explanation.
http://docs.yoctoproject.org/ref-manual/variables.html?highlight=rrecommends#term-RSUGGESTS I don't use that feature at all and it's not widely used in
oe-core so hopefully someone ../Randy
-- # Randy MacLeod # Wind River Linux |
|
Andre McCurdy
On Tue, Apr 20, 2021 at 10:23 AM Randy MacLeod
<randy.macleod@...> wrote:
Signed-off-by: Shachar Menashe <shachar@...>This was discussed on the list last year. The conclusion was that FEATURE_WGET_HTTPS should be disabled by default (ie giving anyone who needs to fetch from https URLs to clear hint that that should be using full featured wget or curl) rather than enabling a hacky solution to have busybox call out to the openssl command line tool. Has something changed since then? |
|
Shachar Menashe
Last time we talked about this I thought we would need to change something in openssl build settings to make the openssl binary get built just for this solution, and that was what got rejected.
But actually now I see (or perhaps it got changed) that the openssl binary is built anyways, in any build that already relies on openssl. So my suggestion is to enable this feature. Like I said in builds with openssl it will make everything more secure in a transparent manner, and in builds without openssl it will display a warning just like today. I wouldn't consider it a hacky solution since this is the official solution for this issue. This is also exacerbated due to the fact that there are no other alternatives for secure download from CLI (ex. the sato build doesn't contain the "curl" standalone binary) |
|
On Tue, Apr 20, 2021 at 1:46 PM Shachar Menashe <shachar@...> wrote:
How much does busybox size grow with this? I think we will have to add openssl dependency on it, or else default wget behavious will be less than ideal. right now perhaps using gnu wget is a standalone solution but I do understand that it may not be usable in some cases. I wouldn't consider it a hacky solution since this is the official solution for this issue.certainly, add curl to default reference images would be fine. |
|
Andre McCurdy
On Tue, Apr 20, 2021 at 1:46 PM Shachar Menashe <shachar@...> wrote:
It's very clearly a hack. Maybe it's the "official solution" for supporting https with busybox wget, but OE has a wider scope - we're not limited to busybox wget if a better overall solution is available. This is also exacerbated due to the fact that there are no other alternatives for secure download from CLI (ex. the sato build doesn't contain the "curl" standalone binary)I don't see an issue with adding curl to any OE reference image which needs an https client. |
|
Shachar Menashe
On Tue, Apr 20, 2021 at 1:46 PM Shachar Menashe <shachar@...> wrote:
It's very clearly a hack. Maybe it's the "official solution" for supporting https with busybox wget, but OE has a wider scope - we're not limited to busybox wget if a better overall solution is available. This is also exacerbated due to the fact that there are no other alternatives for secure download from CLI (ex. the sato build doesn't contain the "curl" standalone binary)I don't see an issue with adding curl to any OE reference image which needs an https client. OK, so do you suggest adding curl and removing wget? (that would be a patch with a configuration change to busybox) |
|
Andre McCurdy
On Wed, Apr 21, 2021 at 2:22 AM Shachar Menashe <shachar@...> wrote:
On Tue, Apr 20, 2021 at 1:46 PM Shachar Menashe <shachar@...> wrote:Yes, sounds good to me. |
|