From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Deus Max Newsgroups: gmane.emacs.devel Subject: Re: Tramp and crypted files Date: Tue, 19 May 2020 11:51:22 +0300 Message-ID: <87h7wcwbn9.fsf@aia00820.aia.gr> References: <865zd1h3ru.fsf@duenenhof-wilhelm.de> <875zd15rze.fsf@gmx.de> <87wo5gjfbr.fsf@gmx.de> <87eermkdov.fsf@gmx.de> <87r1vlipg4.fsf@gmx.de> <86lflrttxn.fsf@duenenhof-wilhelm.de> <874ksdhdmp.fsf_-_@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="16292"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: "H. Dieter Wilhelm" , ndame@protonmail.com, Richard Stallman , emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 19 10:55:05 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jay1h-00048A-7E for ged-emacs-devel@m.gmane-mx.org; Tue, 19 May 2020 10:55:05 +0200 Original-Received: from localhost ([::1]:38550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jay1g-0000Zp-0N for ged-emacs-devel@m.gmane-mx.org; Tue, 19 May 2020 04:55:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jaxyJ-0005x9-Iv for emacs-devel@gnu.org; Tue, 19 May 2020 04:51:35 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:53837) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jaxyI-0004JX-CD; Tue, 19 May 2020 04:51:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1589878289; bh=2TIx47tnapzTUVVSdC5OEZnNozc5IXWtUlPa6zCH5o8=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=C7rvzSeExAnsju1cY6zAPyxWhcyA6XxUCPDNIhnMqTqWSZDD9y0BACAnED0SlNB6D ISTntYqlU0/yYjUDAMYzOvgvuugrSLICG7fRHZfVAtQOkJ/PxNJxxeYCQCUcFjpthZ IA8xW26Lh3Xnk3TcEl+rtrWfNZynv5FeEFMpcq9s= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from aceraspire5 ([46.176.158.134]) by mail.gmx.com (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MXp9Y-1jZwKL0UOq-00Y9T7; Tue, 19 May 2020 10:51:29 +0200 In-Reply-To: <874ksdhdmp.fsf_-_@gmx.de> (Michael Albinus's message of "Mon, 18 May 2020 10:05:18 +0200") X-Provags-ID: V03:K1:zwvoe1bLDE5g+IxTzYVDQyKwrvL3jAU2v22hwISxVdmr54vp+rE EHwkEP0E++iCFw6cxHA76qLO+szPw0652JpCfyIcO39yRGXTKIjcOITdc4R7YKtnYXasCLA izGZoQtucX7fuqmn8Q1maTS7XqJCJ3dOQkxMf+vMgRwzkOl2cn2lk1jySz4o2VvOa0IMnme p1tIovYH3xQwfKkHbApdQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:WegWZzeViM8=:ozFue+FDi3sQvC34XCxHuM 9d2VmdeoL9MhV1iIUIRtyQiYsw6QB52IgiCwLHA9ngTcQLk89bPu/7iA8oseR7NXXyS3o7WHe AK0s7LAHZ480cxZziLq9WXmPH+Zhw9P77dEu3KAHyGyKNF8LoMdHqfSngDF7Op5hTgPl0LBe7 PC665VASwTXqLmUgc8uXs2oIS2oKt0cfrKS+KamwnMI+JXveJip1uVygqVPgVmoB6XKTyah1a FG0sR83nzVTbKCBFWxW6/Be6u6WmI60Fw37QsaC62sfbCu6y3ar+wlqC9qydoX/91xctS4YVa zudwHcsmSzbNuZ7DeFzeNk5coV6eq0yrSXaXcSsBld9gZ5DUw1kKYw+t/TvZrkfL9NCUsKyXN 9D/oE5/40J9L/WbUSBSy6/nCPTTSrAnbXahg7EfBtjG9Pe7gTGCPYTPshXTjRIq/ovczqzbcL KgoiVtxrLfgle+ni/oMpQYTWeRES4fIsyhdo6MEdyrQRXe7L/lpb84+Y3LliQLrJ90uebgB6M sXfSNo1Dh45tUo/GPfCRaWuJBnh1o3ELwx/8une31SYhXZsgo/fQaVhg9A/eQWLLn1aknxKqd HTPPP/Y8v45zQOOIrpu4yDgvXpHp/RDRynfj4FGKVCo3xzi5awJ+rxnmGi3v/WZBGPhRdI8oZ xa51r+hZ4uw84TwE1nkJlagfev+w7ow7ttv6CoJMyA1/2D+3SmOveixvfzZCn87CjrdbIc6vL 1Fdi4eTZ8/xnedPzRjF/9h5umQF5PvLjq6V+Aiy+p9+ep9GntebxsWjrUat+QDr0tjG6qgDf Received-SPF: pass client-ip=212.227.17.20; envelope-from=deusmax@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/19 04:51:31 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:250894 Archived-At: On Mon, May 18 2020, Michael Albinus wrote: > Richard Stallman writes: > >> Since we can't determine whether any given user will want the >> auto-encrypt-decrypt, we should let users specify yes or no. >> Eventually we might develop ideas for defaults more sophisticated >> than just "yes" and "no". > > As I said the other thread, we could create a new connection method > "nextcloud-crypt" which does the job. A user could decide whether she > uses "nextcloud" or "nextcloud-crypt" when accessing a given file. This > could happen even in parallel for different files on the same server. > > Another approach might be to create a new file name handler, which just > performs the encryption/decryption job, plus proper handling of file > names. This could be enabled for dedicated remote servers only, and > works in combination with Tramp. That new file name handlers performs the > encryption/deryption locally, and Tramp is responsible for copying > from/to the server. > Hi Michael, I wrote a bash script that manages davfs2 and encfs for uploading the data to the cloud with WebDAV. See for details https://github.com/deusmax/cloud-davfs-encfs. I have tested the package only with nextcloud, but the whole setup seems to be generic webdav. Should work with other cloud providers that support webdav. Tramp uses the GOA library. I don't know if this is plus or a minus compared to davfs2. I should look into supporting GOA, anyway. I would be happy to port it to Tramp. You think it may work ? Can someone give me a pointer to start ? This work could result into creating connection methods like "davs-enc" or "nextcloud-enc". DeusMax