From nobody Mon Mar 21 14:49:59 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 84FDF1A30A42 for ; Mon, 21 Mar 2022 14:50:00 +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 4KMcwS2L9Qz4mbW for ; Mon, 21 Mar 2022 14:50:00 +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 209D81D067 for ; Mon, 21 Mar 2022 14:50:00 +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 22LEo0dq055655 for ; Mon, 21 Mar 2022 14:50:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22LEo0Ld055652 for fs@FreeBSD.org; Mon, 21 Mar 2022 14:50:00 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: Mon, 21 Mar 2022 14:49:59 +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=1647874200; 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=c3NeFjEmAniW94s9TWAX51jxeOS4ahLysnQ0WtiQXcI=; b=ncsYY0KG1jMqtPk10098i5bWez+nuMpPUG7SNNZN0YSONXMqTiE99f4fhSDHcVwjYHXlap VvfblyDBAGZd6XIYP7LKoQAHI4yv9CqdaUlYS07q6gRfnfysE9U+1ViZORRaC0dzvYAWlR BuRAjMBIHgoM9HF8J6KrTbfup6qhzOvXVUXcr3+WKJeIqJHxDKlMX/dLiDHdYfi3gw3O6C sOmftxddKGBgjDnctDynUG6oDVyxX9UpDrZka3kc6QoF0KbRisg6Be5H+xROqhKdlKRIof cj6qLKjTkDLUwnTpw0Xp4ibFF5e0imecY1zR00CXMhbdicgCeI+bWfZD9CrUsA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647874200; a=rsa-sha256; cv=none; b=xsJW9+zAFnA3U2bZI+hD+2OoemtZNvJ81zGqb787beLCMUvW/vuGRYb1TdBDpl0hN1DHaG EB94Zvh3wCHAhETJSNDKh94Fn70J1I8ANmLc+i2xCiesJPtVruLjk3RlCCFraL4zdYe2Sv 5bYiFbHLXEp6C2fDB+F4td6U5KE/79NUaxtl/h+okMkNlsKmsFyYj92LIm3FJbE/eYbMHm eQSjDAc9siCwg3wTyaxy0fdEASL95KdcD105MkeLPD5o8hrHKlPKRDCDtOBuuCAe0I95yO IsDs+7/hx887mfFpaH3Ndn5iYii242K3MiH9ARQp2z0W/zmYm1og+CC6HuxFhQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262468 --- Comment #5 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D2411090f69401998569f24144b08ffc05= 0e3cebc commit 2411090f69401998569f24144b08ffc050e3cebc Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2022-03-18 12:35:16 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2022-03-21 14:47:20 +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: allanjude (src) Fixes: 33ff39796ffe Add zfskeys rc.d script for auto-loading encryption keys MFC after: 3 days Sponsored by: Modirum Sponsored by: Klara Inc. Differential Revision: https://reviews.freebsd.org/D34601 (cherry picked from commit 97aeda2243568b386d792514996a06daec55eece) 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.=