From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id qOgULSwTqWX/RAAA62LTzQ:P1 (envelope-from ) for ; Thu, 18 Jan 2024 13:01:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id qOgULSwTqWX/RAAA62LTzQ (envelope-from ) for ; Thu, 18 Jan 2024 13:01:48 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=KaI+p9k1; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705579308; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=XhQxKlp4jZGfvBCU2ODLyjvrSBZzQM8+Jos9mp1rnVM=; b=oR0ei76CYOnqFQMFxYEU9x8LqtwAZabQkKoVmWW72fT0eJQDylIGUJflSJvvcYO9a0lJU6 DGWhSWum6BFygtrWka0wtmWHqToOluYKxArOeX6aH81zUL3kqvh6RjmgF89nNJXytSm8+z 18qytF5575q3961Xoyxlea1C6BcIkQyM9DXxKxeuA1s8mP2YCxkRozf7FDtOnaEfbtOO0R IfJ4Tldlfajb077i9lAMdnaJPrRHx9kn3M5eumw65nmkXoCq+GHOkY/Q4WJdysBU2aed86 zWA562tQ2LCHZcnDVZ3jOGRcnlV5EAgPysv4Clt2nv8iqlwa0aZIX5i0q44HWg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=KaI+p9k1; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705579308; a=rsa-sha256; cv=none; b=L3HCtk3YGw8dhq20fKmuKewaDoRvcpwilvYaoKNBr4ocV/rUh0uW9ds2cq2mOxyIaz+T8D YguOFsRhsLvglrgwaKh7Da6j+T9Zl3mZ3Og3CvtHa9cvuN95ZbOKGM6diePH1xtHWKOyKc izqCwuiBWP9ZfmLw7mfdZ4GWtqT+TTEovqKb+IhoiUjNFWbbnXCSNhzquaeNRJMT6JOCAn B9G8UWv/N/VaT8QC+ZjN27szG8CYUq6zU5mxog2U00VayEsV9BkHx6EPa13LCoIYHoM+7k Cq15mtl4VNgKBy3heyYcIGoSYhRV/vWGlhT5G4aucjdfrd0gZ76BPpq8TB203A== 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 A1ACD5DABF for ; Thu, 18 Jan 2024 13:01:48 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQR4o-0000h6-Q9; Thu, 18 Jan 2024 07:00:54 -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 1rQR4n-0000gp-Dd for emacs-orgmode@gnu.org; Thu, 18 Jan 2024 07:00:53 -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 1rQR4l-0001pp-5s for emacs-orgmode@gnu.org; Thu, 18 Jan 2024 07:00:53 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 47CF9240033 for ; Thu, 18 Jan 2024 13:00:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1705579248; bh=dPvINA3W2sO9MeLAx0bioT4IX4ygeKLMVvJUe/OHoKQ=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:From; b=KaI+p9k1HH2lrWOVPoqj96UOm6lYQFroNut/aoRoqwsyszvm7QfHv9LbL0AsqHrCO 1zystDdUryuqAbebV2fJCQq5TScSCLOjd8BxGerpH1e89DD1dvnM4yJs4IGVlTuwKl 3FbzH0+KkH05Yl22ARqV2JFXN88rhTk/+YLFu1YuO41351cLoipH6hy2NWMbQdzwWC 3J6dg63HjwgDiVcTp00eLBl+Q/oomtl7dh1UY7AZ58+3m9QBZ9dGQ0zSH6PHAYFBWI jgpp6CHEf0jhLSm8pF8oRK7wv/DRI42p7vVHmiOBde2FOqgTSVcW8yTqb53IffPShk EoTbgfg5g6pNQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TG1Xn37cXz6v34 for ; Thu, 18 Jan 2024 13:00:41 +0100 (CET) From: Ihor Radchenko To: emacs-orgmode@gnu.org Subject: [FR] Tangling code blocks inside encrypted subtrees Date: Thu, 18 Jan 2024 12:03:56 +0000 Message-ID: <87edeej1ar.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, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-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 X-Migadu-Spam-Score: -7.11 X-Migadu-Queue-Id: A1ACD5DABF X-Spam-Score: -7.11 X-Migadu-Scanner: mx11.migadu.com X-TUID: SCWDV8UxC5PP Hello, Currently, Org mode never tangles code blocks when they reside inside encrypted subtrees. Never means that such code blocks will _not_ be tangled even if encrypted subtree is temporarily decrypted via org-decrypt-entry/org-decrypt-entries in the current buffer. The current approach is indeed safe as it prevents leaking potentially sensitive information. However, it is sometimes necessary to tangle the code blocks from inside encrypted trees as well. For example, if the file is a literate Org config - the whole point of such config is to tangle it, including encrypted parts. To allow tangling encrypted code, we may provide a special tag :TANGLE: or maybe a special heading property, like :TANGLE-ENCRYPTED: yes. If such property is set in the encrypted heading, Org will decrypt and tangle the code blocks inside. WDYT? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at