X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by lists.alpinelinux.org (Postfix) with ESMTP id 632475C052E for ; Thu, 8 Feb 2018 19:22:20 +0000 (GMT) Received: by mail-wm0-f45.google.com with SMTP id 143so11406320wma.5 for ; Thu, 08 Feb 2018 11:22:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=HQDk24PYkIsEFrZbxBHl1FBtg+Q1tFLQM1mG8bWYgHo=; b=evQOskYuaPi8LV/2p4hEqujmndwKbRayrT6xOMnbRmkt8J4zvD6Nh4UzZOeuGtJSg3 /N+r3b8aGA9y3pWL+cEG07qRmiEmCM8TSumuPqo0ZceKSBl+TEEjLyW39483YUK1SQ5l 47Mb7cw2hl8pS7o6Atmx5QQ9ec8I+1x2ShLcFNX7E/LJHGTorB0X969Tk7UTKzhAPKrZ i8x1kvXZv5k3Z6BUcQ/G9kzIrsh1haDL+LwojzbWF6H+J+tTPORWmeAFyo/j+k2BRL6Z P9Um5B3Q1zjxAXsyTqQCqnGKPkS9nC3I0jUAARdcUgyfVvQlhXkKizVr4PtMEd5wxtoZ iASg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HQDk24PYkIsEFrZbxBHl1FBtg+Q1tFLQM1mG8bWYgHo=; b=NzpbkkS2qg7EcVacfuUJHImerWdiV3CNIOpZ/iXi2u1//Zw0TV0uW45ltXv73mBDAk U5oXG1qUuCDb/rBDaHZzLtNkDQRB90b0vmcHB8tWBL18L/mwVIXPfm6luyuZb+RRhsn8 YwoJ7p+UoRcUkGyljpsSkuhjJwXaUgC2eGNvBLIQeYoWy8Wp+9a+2ZXJfAzOFN6dlaTF ASApOE6K9HgnZRLF2UOp/LCEKt2daghbbZ9BSsmyr+UqQ3ad2m3Yn213q+TtnCSpzQjV 7RShO7jhMFif+YwgWaIFiJyKM2eDhxqrHk12D4Bus1JhzHviwBwsnC3g3WZYfWlBjlPL yx9w== X-Gm-Message-State: APf1xPAeIzpTxhfBcCHzFYpnbP1c3dl4enX3gFkzDBVhOKWt65IGizou Gc67Yj85TcyhGv76kRdOKQxIvqo= X-Google-Smtp-Source: AH8x224SsxrfLjfKlecIo0nNMPD0ucF39tBXu1aLi7sHVcez+eO+7nSZVxwxhB8NEDQ2K7oU65twSg== X-Received: by 10.28.108.4 with SMTP id h4mr65762wmc.161.1518117739436; Thu, 08 Feb 2018 11:22:19 -0800 (PST) Received: from mechanicum.chadwicks.me.uk (mail.oesys.co. [82.71.11.172]) by smtp.gmail.com with ESMTPSA id r64sm663760wma.15.2018.02.08.11.22.18 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Feb 2018 11:22:19 -0800 (PST) Date: Thu, 8 Feb 2018 19:22:07 +0000 From: Kevin Chadwick To: alpine-dev Subject: Re: [alpine-devel] Proposed change: openssl 1.1 as default system openssl implementation Message-ID: <20180208192207.7e0da20a@mechanicum.chadwicks.me.uk> In-Reply-To: References: <20180208180544.3ff19e66@mechanicum.chadwicks.me.uk> X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 8 Feb 2018 12:53:06 -0600 > Hello, > > On Thu, Feb 8, 2018 at 12:05 PM, Kevin Chadwick > wrote: > > On Thu, 8 Feb 2018 11:23:26 -0600 > > > > > >> Meanwhile, the libressl guys have been removing > >> functionality we depend on, such as support for hardware > >> accelerators (ENGINE apis), switching from 64-bit TAIN date > >> calculations to time_t (because time_t is good enough on OpenBSD) > >> and dropping openssl 1.0.1 APIs they see as unsuitable. > > > > This is a strange take on the situation to say the least. > > I would argue that 32-bit systems not being able to validate > certificates from CAs who have expiry dates past year 2038 is a major > security problem. This is caused by the elimination of the TAI64N > date calculation code. That is not the part that I was referring to, however as I understand it this isn't an issue on OpenBSD or any constrained embedded system that I develop?? > > > Apis were dropped for good reasons and they have committed to > > implementing new API components that seem sensible and are most > > desired. However the primary goal is security not functionality and > > if anything you could argue that OpenSSL is still way too complex > > to be fit for purpose. > > > > Multiple CVEs have been avoided by LibreSSL already. > > Those CVEs were not avoided by removal of the functionality I listed > above. In fact, the removal of the functionality I listed above has > introduced security regressions. > That wasn't the point and I doubt you actually know that, but nvm. > >> libressl promised to retain compatibility with 1.0.1g APIs, but has > >> failed to do so. > > > > I am not clear on the versions but I do know that they promised to > > be a replacement at the time and whilst I am not really involved I > > have seen comments that OpenSSL seem to be purposefully causing > > issues. > > This is not the case; LibreSSL have removed APIs that were part of the > OpenSSL 1.0.1g set. It is possible today, to have a program which > successfully compiles under OpenSSL 1.0.1g (e.g. the release at the > time of the LibreSSL fork) and fails to compile under LibreSSL. > Accordingly, they broke their promise. > Christian Heimes - The situation is, LibreSSL hasn't been compatible with any supported OpenSSL version since 2017-01-01. The lack of compatibility with the industry standard OpenSSL either means: drop LibreSSL or don't improve security of Python's ssl module. 1 reply 0 retweets 1 like Mark Espie - you've got to realize that openssl deliberately broke compatibility with previous versions precisely to try to stop libressl. we're talking crypto, more fluffy interfaces are not necessarily better. Especially when they allow people to create insecure crypto. > >> As such, there is an increasing workload to keep > >> packages compatible with libressl as it evolves. Therefore, it is > >> obviously not truly a suitable provider for the openssl package, > >> and we should switch back to proper openssl as the default. We > >> will > > > > Do you have a list of packages at all? > > > > proper!?!? I guess LibreSSL has less resources and hope that is what > > you meant. > > By proper, I mean an implementation that is conformant with the > OpenSSL 1.0.1g API, which is what was promised by LibreSSL. > Is OpenSSL conformant, see above? > > I believe the key protection improvements were/are better in > > LibreSSL and so the fix for heartbleed was properly done! > > The protection improvements are the same: the custom memory management > code has been removed from both. > You clearly do not know about the extra protections and priviledge separation in LibreSSL!!! > > I understand your workload point and that Alpine is far from in > > control over this but I don't like how this mail has been written > > and wonder what environment caused that? Also, there are other > > libraries like mbedtls and boring ssl, aren't these packages > > breaking compatibility with them and reducing their scope? (Not an > > alpine issue of course) > > mbedtls has never implemented the OpenSSL API. BoringSSL is not > appropriate as a system openssl implementation, it is mostly to > support Chromium and other Google products. > But packages like python have been demonstrated to run on the constrained systems that they are designed for. OpenSSL is way too big. I agree this is a Linux rather than Alpine issue, except for your desire for more archs. > > So maybe the packages like Python have an agenda or should slow > > down? Python could also remove RWX memory requirements by default > > as a higher priority? > > Any interpreter which has the ability to JIT (such as Python 3.6 with > an appropriate JIT module loaded) requires RWX. PaX will never allow > a page which has been marked PROT_WRITE to ever become PROT_EXEC. It > is what it is, and it's also unrelated to the LibreSSL vs OpenSSL 1.1 > discussion. > The point was that maybe Python should sort that out before removing code here. > > A stand for what? LibreSSL has removed support for things we want, > such as cryptographic accelerators and TAIN-based date calculations. > Neither of those functionality were removed for security reasons, but > instead because the OpenBSD developers did not want to deal with > maintaining them. I can understand their decision in doing so, but > that doesn't mean that the cost-benefit analysis works out favorably > for us anymore. I disagree as explained at the time of their removal. You don't want hairy/dangerous code in a security library. I guess you think PAM is great too? --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---