From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jens Schmidt Newsgroups: gmane.emacs.devel Subject: Re: Storing sensitive data indefinitely in variables or buffers: Whether and how to fix? Date: Wed, 31 May 2023 21:37:50 +0200 Message-ID: <46880634-f4bd-f036-9d85-0d17ce213112@vodafonemail.de> References: <87fs7dnd1u.fsf@localhost> <6503151d-13be-f299-24a2-76bb9d6fecc8@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5393"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Cc: emacs-devel@gnu.org To: Adam Porter , yantar92@posteo.net Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 31 21:38:52 2023 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 1q4Rel-0001Fn-Tp for ged-emacs-devel@m.gmane-mx.org; Wed, 31 May 2023 21:38:51 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q4ReC-0000K4-1M; Wed, 31 May 2023 15:38:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q4ReA-0000Jd-QA for emacs-devel@gnu.org; Wed, 31 May 2023 15:38:14 -0400 Original-Received: from mr5.vodafonemail.de ([145.253.228.165]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q4Re8-0008TH-4W for emacs-devel@gnu.org; Wed, 31 May 2023 15:38:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-mb-mr2-21dec; t=1685561888; bh=i6NNtu8CY0b9EvyjTErmuEz8nKfP9Kkou9R9N6IdxdY=; h=Message-ID:Date:User-Agent:Subject:To:References:Content-Language: From:In-Reply-To:Content-Type:From; b=bEG1CxaQPewbAnO2Nc88H1/6iDwY4R5pGReD59io8+NlLJnKMA3iLCcnPkAqXK1gt xsACBTv9U3hxNiyiwJAlBYfKIm2JjMcijVyJzMuV3VtYKUWseh5+o6eoLhA6YqhhX/ 3+58SZd4KYgVPddeSDL5/UrM3LBpzC88m6cfPFGo= Original-Received: from smtp.vodafone.de (unknown [10.0.0.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mr5.vodafonemail.de (Postfix) with ESMTPS id 4QWfgh4dPdz1yMM; Wed, 31 May 2023 19:38:08 +0000 (UTC) Original-Received: from [192.168.178.41] (port-92-194-41-108.dynamic.as20676.net [92.194.41.108]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.vodafone.de (Postfix) with ESMTPSA id 4QWfgV1DxLz9s65; Wed, 31 May 2023 19:37:54 +0000 (UTC) Content-Language: de-DE-frami, en-US In-Reply-To: <6503151d-13be-f299-24a2-76bb9d6fecc8@alphapapa.net> X-purgate-type: clean X-purgate: clean X-purgate-size: 1183 X-purgate-ID: 155817::1685561884-0FFFE4F8-6E7F291F/0/0 Received-SPF: pass client-ip=145.253.228.165; envelope-from=jschmidt4gnu@vodafonemail.de; helo=mr5.vodafonemail.de X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.091, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:306462 Archived-At: On 2023-05-31 18:39, Adam Porter wrote: > I think Emacs needs a new library to store Lisp data securely. > Ideally the API would simply return a Lisp object which could be > used with common functions like alist-get, gethash, etc. to read > data. For writing, perhaps some kind of simple macro or function > wrapper that would store the data securely, as-configured, without > the application needing to know the details. Er, that's what I thought plstore.el is about: Persisting sensitive and non-sensitive data in a structured way, securely, with on-demand decryption. It certainly has rough edges, and almost no UI at all, but I liked the basic idea. See so far https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63627 and https://lists.gnu.org/archive/html/emacs-devel/2023-05/msg00327.html > Even more ideally, such a feature would be part of `persist' and/or > `multisession', or at least be built on top of them, to avoid having > yet-another data-persistence library. That would make three persistence solutions, then, which is still less than 15 (https://xkcd.com/927). I haven't checked 'persist' nor 'multisession' yet, TBH.