<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:26:28 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-16374] Implement backup/restore of encrypted files</title>
                <link>https://jira.whamcloud.com/browse/LU-16374</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Implement backup/restore of encrypted files, according the the HLD as available at &lt;a href=&quot;https://datadirectnetworks-my.sharepoint.com/:w:/g/personal/sbuisson_ddn_com/EeWD3Q7Ku69Anntda03QPDUBs6oxRCxtlxELM7xxy-S1qQ&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://datadirectnetworks-my.sharepoint.com/:w:/g/personal/sbuisson_ddn_com/EeWD3Q7Ku69Anntda03QPDUBs6oxRCxtlxELM7xxy-S1qQ&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This effort can be divided into the following steps:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;security.encdata xattr getting at ldiskfs level&lt;/li&gt;
	&lt;li&gt;security.encdata xattr setting at ldiskfs level&lt;/li&gt;
	&lt;li&gt;security.encdata xattr getting at llite level&lt;/li&gt;
	&lt;li&gt;security.encdata xattr setting at llite level&lt;/li&gt;
	&lt;li&gt;Lustre support for O_TMPFILE open flag&lt;/li&gt;
	&lt;li&gt;lfs fscrypt read&lt;/li&gt;
	&lt;li&gt;lfs fscrypt write&lt;/li&gt;
	&lt;li&gt;tar modifications for backup/restore&lt;/li&gt;
	&lt;li&gt;HSM POSIX copytool modifications for backup/restore&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="73530">LU-16374</key>
            <summary>Implement backup/restore of encrypted files</summary>
                <type id="2" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11311&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="sebastien">Sebastien Buisson</assignee>
                                    <reporter username="sebastien">Sebastien Buisson</reporter>
                        <labels>
                    </labels>
                <created>Thu, 8 Dec 2022 10:54:19 +0000</created>
                <updated>Tue, 14 Nov 2023 22:37:51 +0000</updated>
                                            <version>Lustre 2.16.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="356459" author="gerrit" created="Wed, 14 Dec 2022 18:07:03 +0000"  >&lt;p&gt;&quot;Sebastien Buisson &amp;lt;sbuisson@ddn.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49410&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49410&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16374&quot; title=&quot;Implement backup/restore of encrypted files&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16374&quot;&gt;LU-16374&lt;/a&gt; ldiskfs: round-up enc file size&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 93f5269fa71b058ced93bb52c8d276f78cc3b0aa&lt;/p&gt;</comment>
                            <comment id="356993" author="gerrit" created="Tue, 20 Dec 2022 15:21:49 +0000"  >&lt;p&gt;&quot;Sebastien Buisson &amp;lt;sbuisson@ddn.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49456&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49456&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16374&quot; title=&quot;Implement backup/restore of encrypted files&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16374&quot;&gt;LU-16374&lt;/a&gt; ldiskfs: implement security.encdata xattr&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 92434a9ebdc807936524c5ca6bfaf3a01f8bfa87&lt;/p&gt;</comment>
                            <comment id="358295" author="gerrit" created="Mon, 9 Jan 2023 15:58:41 +0000"  >&lt;p&gt;&quot;Sebastien Buisson &amp;lt;sbuisson@ddn.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49581&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49581&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16374&quot; title=&quot;Implement backup/restore of encrypted files&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16374&quot;&gt;LU-16374&lt;/a&gt; enc: align Base64 encoding with RFC 4648 base64url&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: a2c20af51ca45120faf91ad277f333f46c32e5a8&lt;/p&gt;</comment>
                            <comment id="360979" author="gerrit" created="Tue, 31 Jan 2023 02:34:06 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49581/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49581/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16374&quot; title=&quot;Implement backup/restore of encrypted files&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16374&quot;&gt;LU-16374&lt;/a&gt; enc: align Base64 encoding with RFC 4648 base64url&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 583ee6911b6cac7f2867a37101cc069b4011b73f&lt;/p&gt;</comment>
                            <comment id="362064" author="adilger" created="Wed, 8 Feb 2023 08:42:00 +0000"  >&lt;p&gt;Sebastien, can you please add a test case for the bas64 vs. base64url compatibility.&lt;/p&gt;

&lt;p&gt;Best would be to update &lt;tt&gt;test32_newtarball()&lt;/tt&gt; to add a 2.14.0 directory with data-only encryption and a 2.15.0 directory with filename encryption (with base64 name encoding) enabled.  The &lt;tt&gt;test_32&lt;/tt&gt; script should contain an &quot;ls -l&quot; of the encrypted directories to verify they are all unchanged.  This listing would fail for the 2.15.0 filename encrypted directory with a master client due to the base64url encoding, unless &lt;tt&gt;llite.*.filename_enc_use_old_base64=1&lt;/tt&gt; is set. &lt;/p&gt;</comment>
                            <comment id="362118" author="gerrit" created="Wed, 8 Feb 2023 15:16:34 +0000"  >&lt;p&gt;&quot;Sebastien Buisson &amp;lt;sbuisson@ddn.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49945&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49945&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16374&quot; title=&quot;Implement backup/restore of encrypted files&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16374&quot;&gt;LU-16374&lt;/a&gt; enc: align Base64 encoding with RFC 4648 base64url&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_15&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: d26efca6180f3997d89d9853a3891ee13115d5e8&lt;/p&gt;</comment>
                            <comment id="366762" author="gerrit" created="Tue, 21 Mar 2023 23:14:23 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49410/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49410/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16374&quot; title=&quot;Implement backup/restore of encrypted files&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16374&quot;&gt;LU-16374&lt;/a&gt; ldiskfs: round-up enc file size&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: ea95b07c6c3869dad6bd925754dec5ea173a3c43&lt;/p&gt;</comment>
                            <comment id="368695" author="gerrit" created="Thu, 6 Apr 2023 16:30:51 +0000"  >&lt;p&gt;&quot;Sebastien Buisson &amp;lt;sbuisson@ddn.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/50561&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/50561&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16374&quot; title=&quot;Implement backup/restore of encrypted files&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16374&quot;&gt;LU-16374&lt;/a&gt; ldiskfs: implement backup/restore of enc files&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: b9338f73057f3f11faa8946fccbac657cf52ee8b&lt;/p&gt;</comment>
                            <comment id="368977" author="gerrit" created="Tue, 11 Apr 2023 00:05:57 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49945/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49945/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16374&quot; title=&quot;Implement backup/restore of encrypted files&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16374&quot;&gt;LU-16374&lt;/a&gt; enc: align Base64 encoding with RFC 4648 base64url&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_15&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 3a12414a169a6199a5d187ed801aa9577c9f1192&lt;/p&gt;</comment>
                            <comment id="369601" author="adilger" created="Sun, 16 Apr 2023 20:32:17 +0000"  >&lt;p&gt;I noticed while running &lt;tt&gt;strace tar&lt;/tt&gt; that it is always opening files with the equivalent of &lt;tt&gt;O_FILE_ENC&lt;/tt&gt;:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;#define O_FILE_ENC              (O_NOCTTY | O_NDELAY)

openat(AT_FDCWD, &quot;/mnt/testfs/sparse&quot;, O_RDONLY|O_NOCTTY|O_NONBLOCK|O_NOFOLLOW|O_CLOEXEC) = 3
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;because of &lt;tt&gt;include/uapi/asm-generic/fcntl.h&lt;/tt&gt;:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
#ifndef O_NDELAY
#define O_NDELAY        O_NONBLOCK
#endif
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I think this is &lt;em&gt;mostly&lt;/em&gt; saved by the additional requirement for &lt;tt&gt;O_DIRECT&lt;/tt&gt; (which is &lt;b&gt;not&lt;/b&gt; part of &lt;tt&gt;O_FILE_ENC&lt;/tt&gt;, but should be).  We should consider changing this to use a different flag combination for &lt;tt&gt;O_FILE_ENC&lt;/tt&gt; to avoid the risk of accidental issues if &lt;tt&gt;tar&lt;/tt&gt; ever starts reading with &lt;tt&gt;O_DIRECT&lt;/tt&gt; before we can get the xattr handling implemented.&lt;/p&gt;

&lt;p&gt;One possibility includes &lt;tt&gt;O_DSYNC&lt;/tt&gt;, which doesn&apos;t make much sense for &lt;tt&gt;O_RDONLY&lt;/tt&gt; files, but would force &lt;b&gt;writes&lt;/b&gt; on encrypted restore to be synchronous.  With &lt;tt&gt;O_DIRECT&lt;/tt&gt; and large enough writes (32MB?) that might be OK, but not ideal for small files.  Another possibility is &lt;tt&gt;O_APPEND&lt;/tt&gt;, which would prevent multiple writers to an encrypted file during restore, but would otherwise be OK.  I haven&apos;t looked at any of the options in detail yet, just wanted to point out this issue.&lt;/p&gt;</comment>
                            <comment id="378421" author="gerrit" created="Wed, 12 Jul 2023 15:04:17 +0000"  >&lt;p&gt;&quot;Sebastien Buisson &amp;lt;sbuisson@ddn.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/51640&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/51640&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16374&quot; title=&quot;Implement backup/restore of encrypted files&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16374&quot;&gt;LU-16374&lt;/a&gt; enc: rename O_FILE_ENC to O_CIPHERTEXT&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: ecfbc16ad38eb514fb14d1919fdc4f24a96fd403&lt;/p&gt;</comment>
                            <comment id="380998" author="adilger" created="Wed, 2 Aug 2023 00:01:16 +0000"  >&lt;p&gt;For reference, there was a discussion about fscrypt file backup and restore on the linux-ext4, linux-fscrypt, and linux-fsdevel mailing lists in &quot;&lt;a href=&quot;https://lore.kernel.org/linux-ext4/03a87391-1b19-de2d-5c18-581c1d0c47ca@gmail.com/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Backup/restore of fscrypt files and directories&lt;/a&gt;&quot; and this also referenced other discussions &quot;&lt;a href=&quot;https://lore.kernel.org/linux-fscrypt/D1AD7D55-94D6-4C19-96B4-BAD0FD33CF49@dilger.ca/T/#u&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;backup/restore of fscrypt files&lt;/a&gt;&quot; and &quot;&lt;a href=&quot;https://lore.kernel.org/linux-fsdevel/CAHk-=wh74eFxL0f_HSLUEsD1OQfFNH9ccYVgCXNoV1098VCV6Q@mail.gmail.com&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;fs: interface for directly reading/writing compressed data&lt;/a&gt;&quot;.&lt;/p&gt;</comment>
                            <comment id="383051" author="gerrit" created="Sat, 19 Aug 2023 05:36:08 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/51640/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/51640/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16374&quot; title=&quot;Implement backup/restore of encrypted files&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16374&quot;&gt;LU-16374&lt;/a&gt; enc: rename O_FILE_ENC to O_CIPHERTEXT&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: ac522557b1fe3ea2b7275fa6d5df73691b8d06db&lt;/p&gt;</comment>
                            <comment id="384319" author="gerrit" created="Thu, 31 Aug 2023 06:28:50 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49456/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49456/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16374&quot; title=&quot;Implement backup/restore of encrypted files&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16374&quot;&gt;LU-16374&lt;/a&gt; ldiskfs: implement security.encdata xattr&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: d0a722cb8fb886380e24e8261e8efca09a3262d6&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="72909">LU-16259</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="64115">LU-14677</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10092" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>EX-5772</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i037d3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>