Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2703947lqo; Tue, 14 May 2024 07:00:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVEr3wamp81tR9H4hMvbyoBv8EHm0PRa9/wAN9hD5YehabOi6r5WRuw+Vtd49DzTMlLDc5ATirPlP0/sVvg3f0HqsIG1wQhkfvPvE+khg== X-Google-Smtp-Source: AGHT+IH3CdtmoC8eq68eZa1km6BoOPZS3gtMo0uB5VRLCDpcsUi+02zqYGs8AYhLru9SiJ+fKVBk X-Received: by 2002:a05:6214:3c9c:b0:6a0:ac0f:a59c with SMTP id 6a1803df08f44-6a168258eefmr143540416d6.46.1715695235846; Tue, 14 May 2024 07:00:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715695235; cv=pass; d=google.com; s=arc-20160816; b=T+Tg/TJuBD7s4JffygXk4aKNvxxE6zheYikeFF1N+cAnQkG6dYf94ucJWMsoHASFhs qs7ynFTRGA18l3VfC7rDYZluBE5l2RvhkBS226huSHnzrTfCwjp8XajshQBfYy09p9oB Dp+/lg2glGrgv2bgWBQKn+XwV12VQFJUSdX+VV6Xi0vF4MtfJKAEG5nb0PDhMtsjy+TV RPShwtw58u4WW1S1qA2jFScu9QrFON9/J1lGMVVId1KzW25d1DraoD4SAF62h5GIjXxc IppSVu8dAKIo2uPlKizpB+eRNAks0bBWHZKyy8bvMX04TWhWCLt15YJCEYBh/hdrcZUO I/vw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=DzY99h6hvSpocHUC9pcpaprArMbcPGAqFKarLcyQBDY=; fh=qBiKyDO1JfLpdz+QRvyvPT5zeJoFP5o5Y+3OLRkt0zk=; b=gZi+jVyAJ9NIb+HpNK7A0HJT/2vGDIikC++4Q2dxxwysxDVp4edHqdLr3BIOWQ7w6w XDX1ipJh0D6Z22euBnZ1ZAyVlZhhS6+WASrG/lfCZF5Zzgz7ZzfTJD31C6tIeh9VLKB5 verxdZ3kn2iAzh1DC5JERg4Y6PDtbTYzPUzmmrXNByRcSIoFm0YDZTaTX+XIIgrULvzX 8Xk2aKaCb6lGx3o/OpQDHYKGpHG5vQWyWi2PyxJFuT5LP8XXvl2dzlZWoz80M8vWhj71 NFa6M6zet9iXmlu69LSqoq16ekNbDGhxmacsk+l9XxXD0Amaz++TUHMcd3hL8xS6Meh0 XvMA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZS7hjd5e; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-178772-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178772-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f30165fsi120465236d6.541.2024.05.14.07.00.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 07:00:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178772-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZS7hjd5e; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-178772-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178772-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id EE08A1C21957 for ; Tue, 14 May 2024 14:00:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D03821448FA; Tue, 14 May 2024 14:00:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZS7hjd5e" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F2BC06D1A7; Tue, 14 May 2024 14:00:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715695228; cv=none; b=ZU9y/AKtfIBr8nQXz3ZNoLEThY/2nVetChZHhXH2Rc1QjtTO8eaIEKyJRqtcYGkgrv/IY8tmITnQbRr0kGqMJrOPHK2SznmEUDny32eFaTHsUI7pb72GVbV7k6qN63FLGualOigz/1LNAT031JVmSkpOlb1Cd6Qzyqu++bX0rDA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715695228; c=relaxed/simple; bh=j0dzL0HrEyzT3iXZm85NNMPwglJU2P1cUebvjgEaIlY=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=gvzDXc1cP2kugt/Ez2geCjxl6NvZceDmnfT/tX1wj3CWQssTtwZHcnK77nE1pA5DvbgSodJH5/ISpe+dmmwF67nzc+b6jhFgJgbsMo72fV/5R4EZONo3Fuhzue9hPiuJW7+ScAczC9e0N9dzkZrjVlwGps0jG1e7sPQiCjSXnbY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZS7hjd5e; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FDBBC2BD10; Tue, 14 May 2024 14:00:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715695227; bh=j0dzL0HrEyzT3iXZm85NNMPwglJU2P1cUebvjgEaIlY=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=ZS7hjd5ens9YbfEG+awL6UZghjnt5JHEcDclEDGEtOT9/K+oEoBtSu5N12Ue3xYCz sJE7HcNH58JhIReebqGvl4RXC8ZHbY8PcEMWZUTviUMlMga97xdN6rsGIUf3Uidpp0 lpnvUiTOFDlLyRDiGnA81xS3TigtgWaKL4h3uSxtTSnDtTXOF4ZB8FP0Nkh3P0WIgI o2ke+DPxtYGoY24wSsKqSwWxqrJPu5axunilVi0fZO9wiWYZHHkmO1ABBxzpeZY5ef Q/sJpfgYsW0dxjokq97HJUE7ADRAfA3B7smB8Fd3KsTL8Ju6E+OKi1lu+NWKBGydhN SawgGBPqvWYJA== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 14 May 2024 17:00:23 +0300 Message-Id: Cc: "James Bottomley" , "Mimi Zohar" , "David Howells" , "Paul Moore" , "James Morris" , , , , , Subject: Re: [RFC PATCH 0/2] TPM derived keys From: "Jarkko Sakkinen" To: "Ignat Korchagin" X-Mailer: aerc 0.17.0 References: <20240503221634.44274-1-ignat@cloudflare.com> In-Reply-To: On Tue May 14, 2024 at 4:11 PM EEST, Ignat Korchagin wrote: > For example, a cheap NAS box with no internal storage (disks connected > externally via USB). We want: > * disks to be encrypted and decryptable only by this NAS box So how this differs from LUKS2 style, which also systemd supports where the encryption key is anchored to PCR's? If I took hard drive out of my Linux box, I could not decrypt it in another machine because of this. > * if someone steals one of the disks - we don't want them to see it > has encrypted data (no LUKS header) So what happens when you reconnect? > Additionally we may want to SSH into the NAS for configuration and we > don't want the SSH server key to change after each boot (regardless if > disks are connected or not). Right, interesting use case. Begin before any technical jargon exactly with a great example like this. Then it is easier to start to anchoring stuff and not be misleaded. BR, Jarkko