From nobody Wed Mar 23 20:28:51 2022 X-Original-To: fs@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 21E0A1A2739D for ; Wed, 23 Mar 2022 20:28:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KP0LW6Xj9z4cmR for ; Wed, 23 Mar 2022 20:28:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C122B1E67 for ; Wed, 23 Mar 2022 20:28:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 22NKSpSc064692 for ; Wed, 23 Mar 2022 20:28:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22NKSpCc064691 for fs@FreeBSD.org; Wed, 23 Mar 2022 20:28:51 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: fs@FreeBSD.org Subject: [Bug 262468] (13038) zfskeys_enable: encryption key file stored on ZFS not found during normal system startup Date: Wed, 23 Mar 2022 20:28:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: 0mp@FreeBSD.org X-Bugzilla-Flags: mfc-stable13? mfc-stable12- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648067332; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5mOSRNgDe+SVD+9lWhFtazZmwK1D9WYv1ZQieqo6v5k=; b=XZ5WXGx2F2JI9cPw0rot7UvJnJo0a21jPjRjJNi1qE9328AtUk7o/EHrJqVucNCKgeTOMr cNTLIxOau/AvjLFARzCjunR8ZV5qee8rZjCyTOf/vnwVGeWYr+EzyfnKHjJWfB18neRcog sutdvcda9pESlkKapYqiL+XdNYGu+GltcTuDz8tnllRav78jqQda8BpakLW3CKQsB19YKY jppw2tgzqpKt5O5aJLX8nZ2CdQP5YMSPllaQ0EwAEZPxf5LnYp3ob5LyhOWPayJ+l+YXC5 YAx0/hTG3e/hbdwzeGYXSz7/mixQLdhXfDaN1jOEpSE+4tp7MhpVRfB6Xbeyqw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648067332; a=rsa-sha256; cv=none; b=lH0rqj2erHOJ1NsDcvJ6FDAt+zuxbBpy73LF3is5qL45M6espQrA9SCrmaq2WB5IpMEVaK ntSald0MZ4jFkUEIc+7yumlQwVrcY3D19ydxl+o4hOqzfmuIrpmgmFn+ovvBmuwxHVXCvm L2HqKKVnqKOw7JunoGkqNCYgo/vyRi61PjpQ6EwIdeJcpUwLQtkR/+WsKngmApWcJEyb6Y 1EknP0gjKY4KUzXx7k7uqWmxwvnnTkncV+ITvNbqt8TJw8mpYgfC0u5Mzj+eMLIPAYopb7 3rn4X1OP9wURgzduoikanmkDIDST32JJYdFwPbZhKs98NZmH5XIdVwXDyLpgZQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262468 --- Comment #6 from commit-hook@FreeBSD.org --- A commit in branch releng/13.1 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Df23b24655f7cb3626d69f64f60b215a48= 70c3722 commit f23b24655f7cb3626d69f64f60b215a4870c3722 Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2022-03-18 12:35:16 +0000 Commit: Glen Barber CommitDate: 2022-03-23 20:27:44 +0000 zfskeys: Support autoloading of keys stored on ZFS The zfskeys service script starts before the zfs service script, so that dataset decryption keys are available when `zfs mount -a` is run. One of the potential edge cases of this design is that if a key is stored on ZFS it won't be loaded until `zfs mount -a` is issued. In order to address that let's try to load the additional keys and mount related ZFS datasets after the zfs script finishes its standard mounting procedure. PR: 262468 Reported by: Graham Perrin Reviewed by: allanjude Approved by: re (delphij) Approved by: allanjude (src) Fixes: 33ff39796ffe Add zfskeys rc.d script for auto-loading encryption keys Sponsored by: Modirum Sponsored by: Klara Inc. Differential Revision: https://reviews.freebsd.org/D34601 (cherry picked from commit 97aeda2243568b386d792514996a06daec55eece) (cherry picked from commit 2411090f69401998569f24144b08ffc050e3cebc) libexec/rc/rc.d/zfs | 12 ++++++++++++ 1 file changed, 12 insertions(+) --=20 You are receiving this mail because: You are on the CC list for the bug.=