From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WxJUDX8/FmP3PgEAbAwnHQ (envelope-from ) for ; Mon, 05 Sep 2022 20:27:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id aO8tDH8/FmMGEAEA9RJhRA (envelope-from ) for ; Mon, 05 Sep 2022 20:27:11 +0200 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 D2F8F2A2C7 for ; Mon, 5 Sep 2022 20:27:10 +0200 (CEST) Received: from localhost ([::1]:37810 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVGoP-0005Ia-NB for larch@yhetil.org; Mon, 05 Sep 2022 14:27:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44724) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVGmo-0005F3-IN for emacs-orgmode@gnu.org; Mon, 05 Sep 2022 14:25:31 -0400 Received: from mail-yb1-xb2f.google.com ([2607:f8b0:4864:20::b2f]:37543) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVGmi-0002Yz-VR for emacs-orgmode@gnu.org; Mon, 05 Sep 2022 14:25:30 -0400 Received: by mail-yb1-xb2f.google.com with SMTP id t184so13807106yba.4 for ; Mon, 05 Sep 2022 11:25:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date; bh=kNvE2z+4D/erG749hhO2MchGR482+rNx9FDy95kSDFU=; b=HdNSIcvv985YqR47tH914humEn9QsCtV+S5+IWTg5PmMelyMNL6QPqZhFJkYzvmRNr hPD7Btd2Ab91T4b5gVwg15gr6MmOdx+tp/UKIB/l/NuoXzaxx7O5fvfYOzR/gZE+UXXj +6DykN0DlYwe7H/0s0ZX5VPBHf8S5nalZeyHvhcj/EmvRhbM7gz+vaGVRbCqTLcs3Wlp 8ztyea/VxQ6nzEPhzdzY6CLW9E47ERZCmq+y76VuN1B64kU2SxP7ExyQ2GZ0IMZmwBVV v+pubEN+GtLMsln4R+9K4Tivhnezf9zBuGsN3gp36L/sPOdwyMBatQGJCHAvvg/tiJIP yWEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date; bh=kNvE2z+4D/erG749hhO2MchGR482+rNx9FDy95kSDFU=; b=Kw87zwVUfeGM9JQvYIQeJJ/lCFvyrcMOxl0xCVCS2f8xpHTRvoHhEr92MAHBPTagez yjlajlRbWjGsLV69GdRxXkLQiqn2WMvsvN34gnT5Z+usX40OuaHzQEfkzEypjh0cr/3A 1cw2TfCDosA9EKA8v9UAtcXMaC/rypPW6/Oj2JyRRaDE7Evjk+AeqklFO5y8rlKTImOF 9rsnQnt1/Nt6ZWOGNwgN081QVUePWD2jcFQDKtMV8XMR3jS/skETvjb+2rtohHvaKNl5 WA9SuUcdryjlYowpiJWpdql78ANhG2ohb/3/2xL2yB8y0PHsbxhcSNhVG5VX0hlN1dth Q9lg== X-Gm-Message-State: ACgBeo1d0j9pu4CgzFt0oXzpKsz7N7n066EGECJUT3JINLfojZdM7+rU RoT6m+Ig9hva85ZJTizZCocv/14zGuFgh/T8wUl+Z0pt X-Google-Smtp-Source: AA6agR4SpjoWl/IKyd50htXmpLkMONWTHVQg+OUZZYVae3IFs33f66/OqtaIdb2b9holEvG/3l4UrYKUc9I6LzQbycY= X-Received: by 2002:a25:e485:0:b0:694:a701:c557 with SMTP id b127-20020a25e485000000b00694a701c557mr34453996ybh.243.1662402322069; Mon, 05 Sep 2022 11:25:22 -0700 (PDT) MIME-Version: 1.0 From: Felix Dorner Date: Mon, 5 Sep 2022 20:25:11 +0200 Message-ID: Subject: Secrets in org-babel To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000e1852705e7f23397" Received-SPF: pass client-ip=2607:f8b0:4864:20::b2f; envelope-from=felix.dorner@gmail.com; helo=mail-yb1-xb2f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1662402431; 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=kNvE2z+4D/erG749hhO2MchGR482+rNx9FDy95kSDFU=; b=IWkYljhxmY15FiQVfTB2JvROEMAqxVx8Rg/lmjZA7ljqqn1uKdgZeI5Zg/6+ovxs6n0Hp6 ZTkETn/KWsspQi5YV82CjByCEkMQ/3R++8zLB3TRV0UAv43jGxK2Q2kpoPqnhpntWOjIJK TgIa7yYXvyXNViCuyCs7ItUcLBRqVvxEVdcVMSGz6nDB7GMAJTD7r/TFEwMzCy5FGcQwpr 2LU37U6wCQ2/SIezVHXDHlYnY5LhSFCj1WwdBsbAu2qAbayOiVKMIlq8SOmEhqcSbEBD9r wXkjYk7SCUlwWoiFNnTuZJx+SPguMIVYfCr5AMOjPRK6HfsHQu9p00fUCXUULQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662402431; a=rsa-sha256; cv=none; b=JMRL/FRgSjE6dv0LZjjfHdVwsobtB/J7M4kRrkx/3ch1DGpOvab38nqERCpsky6i0krmd4 9XyUXJmiSgd04AAddidIsmBQ0mZAriDDYNnvXm8MBHh81To7/k/Ctkzsr3ATn0IYKnSLwb 9772PCe7gC4atHN+nvjb2nDNcvvBC64Iyq6gyXBAzD9b4Gf08gbuMOwY0rPv4RRBkdPxqA uT8R4pP3tris+Tnhql/fb++i6cdirwpNkcZSr3aod3YKV8xtKvn5G1hUi8J6Cbm8/WMvHa 1fdktKiNORH6vV4ew8IcMqmwRod8IGgQKi9IjStUSdZI5gslw0pEMbYOYto6cw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=HdNSIcvv; dmarc=pass (policy=none) header.from=gmail.com; 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: -2.27 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=HdNSIcvv; dmarc=pass (policy=none) header.from=gmail.com; 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-Queue-Id: D2F8F2A2C7 X-Spam-Score: -2.27 X-Migadu-Scanner: scn1.migadu.com X-TUID: Gib+pg5E5Ug9 --000000000000e1852705e7f23397 Content-Type: text/plain; charset="UTF-8" New org user, fascinated by org-babel, but stumbled over something I have no good solution for: I have mostly shell blocks, and very often have to retrieve secrets from aws secretsmanager before I can do anything useful, e.g. query a database in several places. What I've been doing is to put the secret retrieval into a named block and can then inject the secret into other blocks with a parameter that calls that block. But then, the secret value is also echoed to the messages buffer, which I'd like to avoid? I'd also like to avoid repeating the secrets-retrieval code all over the place. Thanks for any tips. Felix -- Linux. The choice of a GNU generation. --000000000000e1852705e7f23397 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
New org user, fascinated by org-babel, but stumbled o= ver something I have no good solution for: I have mostly shell blocks, and = very often have to retrieve secrets from aws secretsmanager before I can do= anything useful, e.g. query a database in several places. What I've be= en doing is to put the secret retrieval into a named block and can then inj= ect the secret into other blocks with a parameter that calls that block. Bu= t then, the secret value is also echoed to the messages buffer, which I'= ;d like to avoid? I'd also like to avoid repeating the secrets-retrieva= l code all over the place.
Thanks for any tips.
Felix



--
Linux. The choice of a GNU generation.
--000000000000e1852705e7f23397--