From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KGXvAG4Sm2O9cQEAbAwnHQ (envelope-from ) for ; Thu, 15 Dec 2022 13:26:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id SAUSAG4Sm2N6TwEAG6o9tA (envelope-from ) for ; Thu, 15 Dec 2022 13:26:22 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AA917706F for ; Thu, 15 Dec 2022 13:26:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5nIp-0007jq-Ed; Thu, 15 Dec 2022 07:25:31 -0500 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 1p5nIe-0007iT-G4 for emacs-orgmode@gnu.org; Thu, 15 Dec 2022 07:25:22 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5nIc-0001XT-Du for emacs-orgmode@gnu.org; Thu, 15 Dec 2022 07:25:20 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 2B73F24002A for ; Thu, 15 Dec 2022 13:25:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1671107116; bh=u+kEaaCa7Ic7CSwXiInN/z048BaHCZsiRgOEyNZbo6o=; h=From:To:Cc:Subject:Date:From; b=DqimtjPGnoSL99sXq8jil6dLYAWV9dwQRA8hylnIINHuuuw5LyFjAnwDhd+/uHNKd Fn5VoQS6fs8qBl8w6Dx2WMUFJwBgkeui64AdBY0xFCdrRzihNKrgr+3OoQj8mIBush y82G/K1w05Gi+W6H8rPXcb/7dk07+lNPIwshPLdZTFIwR/nqV5ylkzYSJGTGeyBATS 7aTQU4VeSdsjfoQGx5TdVO6KyAYnevJKCErIEhICUMl68PoZZ/Jsau0eSU0klA/vFN cyraKY9hkeGeuGR9UZ+Vt8YG0bKqU2nQTo9l2MJxbsuMjVsNzfVwkdFlY63+Kd1ajt QHtNqTzw/IMiA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NXrzG5vv8z6tnq; Thu, 15 Dec 2022 13:25:14 +0100 (CET) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] ob-core: add org-confirm-babel-evaluate-cell custom variable In-Reply-To: References: <87359ld5ye.fsf@kyleam.com> <874ju0j538.fsf@localhost> <87len9uj5s.fsf@localhost> Date: Thu, 15 Dec 2022 12:25:12 +0000 Message-ID: <87ilicua53.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671107181; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=+C2TkXPYzO1NYPhEGxiGSUXIfo/B+1fM1a3PpSYr/Ic=; b=XjYkExvCA0bexJsj6HPmPCVCmtNNv+YoAdnRHMLWKRIFZxHOGax4NSs466cTyd4rE3AtWa EaSUrFcIdFJhTkvsUjpa3hHun2m0DAaCEtjgM9nj+gosjoajd0jgmGnuBsBjiCICDgRoLN qBrmI7SWfifBk2fiW9vlOaqNh+L2iKnePJf+zoggDmQ/u+Z/lhjh0BHTev4ws7GGEHUsgk is7Pq8mLghjiQGLp56hjLYWRrTIwq83gUH+NcWMZna/yTJk+H/hrs3U0iuPzNxiOT+QjGs Tm+aeGMY4cY872qZGK9WDQ4aolQLBym5iSaeFMwYTk1OhJPfzXLTjdgpf71sEQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=DqimtjPG; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671107181; a=rsa-sha256; cv=none; b=c7XC7HSMKclaxQtsgYvpIO3dgfkz9yvQKka2E1F2rUFU6xhIjKFDSFPB6XG9AtY/bjhQJe wfrfkMLDNrSE3hfl7wZsYtwwE7lAV3x00JOiGtHzjPi2lNO5480MCcrB8/0spa81MCOA1Y s3NtsMi5pO1p3CHVS8E1VWzmI5v8K+ytHtPxmMdPIO4eRqfK3R/Z/+TpgN7nmBKr/Z5SmF NXWKzQbK1sTKJjiWtHEdDZdfjjzR10OKsEglwGL7WPUTzJZbR1pPtZrS50/o13asbPCOIn yZ0KDYiVEminZxvUQFlY6BI9mpL1pJVtfOn1VED9oXQ93pvXXwDMZSG5U5Vr4A== X-Spam-Score: -5.89 X-Migadu-Queue-Id: AA917706F X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=DqimtjPG; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.89 X-TUID: p50+I5Xfj9XB Max Nikulin writes: >> Should we then extend `org-babel-check-evaluate' to accept "All" answer >> in the coming bugfix release? > > I would consider reverting the commit causing user prompt for every > variable. I disagree. If anything, we can set the default value of `org-confirm-babel-evaluate-cell' to nil and apply this patch. Then, we can get the old behaviour back yet allowing concerned users to have more security. > ... I believe, there should be single prompt on attempt to execute > a source block. I admit it is not easy to implement. This patch does not only affect src blocks. It affects all the users of `org-babel-read'. Note that my suggestion about "All" may as well include "All in current block/Yes". It should not be too hard to implement, I think. > I am not comfortable with attempts to consider Org as a format for web > browser similar to HTML: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=58774 > Features great for personal notebooks and authoring of documents are > disaster for documents from non-trusted sources. > > In particular, I consider the following reaction as unreasonably > optimistic. I am afraid, a lot of work is required to achieve such goal. > > https://list.orgmode.org/Y1uFDWOjZb85lk+3@protected.localdomain > Re: [BUG][Security] begin_src :var evaluated before the prompt to > confirm execution How is it related to the current discussion? The purpose of the security feature discussed here is not for web browsers or anything like that. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at