From nobody Tue Sep 24 19:16:04 2024 X-Original-To: freebsd-arch@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XCqMs0MPnz5YBnc for ; Tue, 24 Sep 2024 19:16:09 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-il1-x141.google.com (mail-il1-x141.google.com [IPv6:2607:f8b0:4864:20::141]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XCqMr38SVz4nr5 for ; Tue, 24 Sep 2024 19:16:08 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Authentication-Results: mx1.freebsd.org; none Received: by mail-il1-x141.google.com with SMTP id e9e14a558f8ab-3a056727fdfso20693855ab.3 for ; Tue, 24 Sep 2024 12:16:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd.org; s=google; t=1727205367; x=1727810167; darn=freebsd.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=xYK083mtO0h3eYtudxgfRgEpST1uNpLHMN9pJCPeEsU=; b=Oa7I7usSihSHjLgLbGSaLyVrbjDDwvUE/XB6N3NCAsYPipDDWzPxPiD1WrNoL6A3tv c+0oTduLJiHEa/hunk7fatXfMQ4CpUw/4mMjZjCROVuEzrMyWsm8ONghU1EOIU+sgAys zxtvRO1qC29NEtCUmJ8qpvkTB6OMCxamjvI1DRn+KrO4VvUmeDiCqBrQrwnxZ/rUX5mp y6VX9bHGN98XD9t3K9c35pTz5OYTC2c4DES37HmGozyv2qtYzmGjy497XvoQsnKxBMjy W5jkgdx6NRYSxnUd+TZ3lOLV0eSfhCiuOdpWXFM1k0WT/t4LmO8KebmsCjbeJTdLjFGz bqIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727205367; x=1727810167; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=xYK083mtO0h3eYtudxgfRgEpST1uNpLHMN9pJCPeEsU=; b=aoJvXXlgpfGJ4mnIKcMCrq5HXNOlXLLS8s7Sl1ByP8qJZd7WNNkeR7nCNgwquu3ftu OLIpLUepeT653DqzJFm7gFbNI1eYRqz4GYBNOYjti/h0ljvhjlherKx54oWUGPCuNpW0 4b7KYJLZDDEUFpL3wSejD9ZjrOmkRmSCwWrSaZz3xA3rf36wVrocTP+gIE/gl7E0N/2S qQ2UXz5wUP5D9xQbFk4/cVJ7Dx2XYxqRM3zCJre0FVZGJXe4jzEwV0FdK1vXSUG8czck iy4Q+JcmdWVn4st3V92R2sFk6EBso8GS03yi5ec7uZIK7DlFLuKTwTIF+MK75EGrAfIV t3Ag== X-Gm-Message-State: AOJu0Yzyz77ZLPlFFIb11LWbZ3XhbuqIRdhyLrqD9/OFF1vQo8xwCYEq tfHC6xCum7+/1RT7tqL/1GZB1kDa0EnoEO2sxiIEHt9mmThV1HyERDGJSulvqfQ= X-Google-Smtp-Source: AGHT+IHJMYnVGAxiXFHS3cXKOwlxE9WVBRDjZrhmZPTyoWzAsVALz6cFoqwSA/CtpZeZZLLv11JgfA== X-Received: by 2002:a05:6e02:20ed:b0:3a0:9829:100b with SMTP id e9e14a558f8ab-3a26d7e4c11mr6369395ab.21.1727205367058; Tue, 24 Sep 2024 12:16:07 -0700 (PDT) Received: from mutt-hbsd (174-24-73-190.clsp.qwest.net. [174.24.73.190]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-3a1a56c34aesm5546815ab.13.2024.09.24.12.16.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Sep 2024 12:16:05 -0700 (PDT) Date: Tue, 24 Sep 2024 19:16:04 +0000 From: Shawn Webb To: Colin Percival Cc: freebsd-arch@freebsd.org, Li-Wen Hsu , Ronald Klop Subject: Re: Deprecating RSA ssh host keys in 16 Message-ID: X-Operating-System: FreeBSD mutt-hbsd 15.0-CURRENT-HBSD FreeBSD 15.0-CURRENT-HBSD X-PGP-Key: https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/blob/master/Shawn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc References: <0100019225563885-e7f0aed8-cff8-4247-8bcd-861aed3e5cc7-000000@email.amazonses.com> List-Id: Discussion related to FreeBSD architecture List-Archive: https://lists.freebsd.org/archives/freebsd-arch List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arch@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="dyfjfljtd52fzlwq" Content-Disposition: inline In-Reply-To: <0100019225563885-e7f0aed8-cff8-4247-8bcd-861aed3e5cc7-000000@email.amazonses.com> X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4XCqMr38SVz4nr5 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated --dyfjfljtd52fzlwq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 24, 2024 at 06:41:00PM UTC, Colin Percival wrote: > Hi all, >=20 > Last week I turned off RSA host key generation for SSH in EC2 instances, > because (a) modern SSH clients support ecdsa and ed25519 keys, and (b) > generating RSA host keys was taking over 10% of the boot time when EC2 > instances booted for the first time. >=20 > I don't think we should turn off RSA host key generation in general in > 15.x since for non-VM/cloud images the first boot time is less relevant > (if you're installing from an ISO image, the installer will take far > longer than the host key generation) but I think it would make sense to > deprecate RSA host keys in 15 and then turn them off by default in 16. >=20 > I'm not sure if there's any good way to announce the deprecation beyond > putting it into the release notes; we could print a warning in 15 when > RSA host keys are generated, but that will always fire regardless of > whether they're being *used* and I don't think there's any practical way > to warn specifically when RSA host keys are *used*. So unless I'm > missing something, the deprecation would just take the form of a few lines > in the release notes. >=20 > Thoughts? With commit e3f33c64ec168a48038309af0c237eda86d10c74[1], introduced on 14 Nov 2024, HardenedBSD has disabled the generation of RSA host keys by default. We haven't seen any reports of any breakage. While the change might be considered a POLA violation, it seems pretty harmless on today's 15-CURRENT systems. We have a number of 15-CURRENT users, though we don't have any hard data, and likely pales in comparison to the FreeBSD side--enough so that the sample is too small to be a significant or reliable data point. I have this commit taged as MFC-able, though I haven't MFC'd just yet. It completely spaced my mind and I'll likely MFC shortly after sending this email. [1]: https://git.hardenedbsd.org/hardenedbsd/HardenedBSD/-/commit/e3f33c64e= c168a48038309af0c237eda86d10c74 Thanks, --=20 Shawn Webb Cofounder / Security Engineer HardenedBSD Tor-ified Signal: +1 303-901-1600 / shawn_webb_opsec.50 https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/raw/master/Shawn_Webb/03A= 4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc --dyfjfljtd52fzlwq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAmbzD+0ACgkQ/y5nonf4 4frLBxAAh3O+J8tPSX5p3SuvoPop/XoXt6dBl0svZkQhLatAmT3DNoXSxwNLOBV7 8U6CBMRH8JT1f0aT7R0WCjdsZTT7Bw0n7/HdlLjgw3Y+Mdltdd74mSxWcXfMjNtQ 5a+01q8Bg46cPNL9YgdSJX3emOUY86eQ6bWpbuJUxobN3iVtuKUhMzSxi4U1yfX+ bJhegd+Nf+DA1QgKAd6S0V97pc8+wgr/dNpNgpH+NRcGvfD2s8Ae/Fnzljvfd3WQ vucPBKipRZlU5nzx/eeziEkgNQghQD5w+0CkGlA9lshhmhz7/C/AA+wHhqWbS6MC lfKKMry1TF0aQPy62SUprAqnIMCm2bhsNbDdXB6jz9vTTKc+Db+pg976Jjcv3Nwe wb7Yiv+NDM64hZrsgEeK1reyzxSlGiqEHqBll7bsPPIcyvJLC925GV0TZPzqB1Sa gFyC2lOiC8BJweYlqzrF41HzeHolZHon78M6ww8N+C/ovl6e7JRVg2n5M3e8Kova x06pqDZXpUBp6K/BqsBS1Wfe/Yf7eGuvgvk1TYrUp9tMoseTweIDWm3vyb/iKQ9g i+E8n6faq7JuR9GZl5hBWuNrpYIoB0CKUOaIO3WaUi+spyRKIJfrVDF/+PNntoi5 ls2bHnscUHIswVYnI3JRza997M2u7FYvNbzhG7cvWrMzHrEnRrg= =Qlbi -----END PGP SIGNATURE----- --dyfjfljtd52fzlwq--