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 NgHFHDNKFmOZBQEAbAwnHQ (envelope-from ) for ; Mon, 05 Sep 2022 21:12:51 +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 eImmGzNKFmOE6AAA9RJhRA (envelope-from ) for ; Mon, 05 Sep 2022 21:12:51 +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 B13A42CEB6 for ; Mon, 5 Sep 2022 21:12:50 +0200 (CEST) Received: from localhost ([::1]:39170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVHWb-0001yx-DC for larch@yhetil.org; Mon, 05 Sep 2022 15:12:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43144) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVHW3-0001yn-76 for emacs-orgmode@gnu.org; Mon, 05 Sep 2022 15:12:15 -0400 Received: from relay-egress-host.us-east-2.a.mail.umich.edu ([18.219.209.13]:58678 helo=discrete-nisien.relay-egress.a.mail.umich.edu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVHW0-0001bn-T9 for emacs-orgmode@gnu.org; Mon, 05 Sep 2022 15:12:14 -0400 Received: from veridical-ogre.authn-relay.a.mail.umich.edu (ip-10-0-72-89.us-east-2.compute.internal [10.0.72.89]) by discrete-nisien.relay-egress.a.mail.umich.edu with ESMTPS id 63164A07.26C0FA1B.14A6AC1C.580564; Mon, 05 Sep 2022 15:12:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=relay-2018-08-29; t=1662405127; bh=HPE/Yr6zMJxjC31dVw9D5RuurZlElwBbrtGtNOm8+34=; h=To:cc:From:Subject:In-reply-to:References:Date; b=gEREx7BWA6mLGQ7qeqd4qe7Xoi411NMM4v+nqf3gaUpZnaSofemxGFT/gjjpI/LEm 8A4ldXX8OqcazpWpflvbC2Lym42rW/kdYR2jlhltzurbibqht9bFtsDyr0pXoQlmI+ t3zqVLQc0ME67EQdqqwHEbIAxqWoC0XtR911ys9HQHaO3jPFQWJPW7dFEl4CflBsa0 i3qegZ23v2KVxVt1A5sy1DwT7VrqEaoHrHakq8iJ/6pv7l8A5nJyDEKhsNtJuc5+6X cVbrqE/L521Yq+1kxdbUChYur6PCR7dkCTYLPJ+ZQ99s1ZvDHWwRRuqxBYdijTDJqI 4uGh1pk5FfQLw== Received: from localhost (Mismatch [85.103.37.149]) by veridical-ogre.authn-relay.a.mail.umich.edu with ESMTPSA id 63164A05.35362800.589C420B.421756; Mon, 05 Sep 2022 15:12:06 -0400 To: Felix Dorner cc: emacs-orgmode@gnu.org From: Greg Minshall Subject: Re: Secrets in org-babel In-reply-to: References: Comments: In-reply-to Felix Dorner message dated "Mon, 05 Sep 2022 20:25:11 +0200." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 28.1.91 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <524940.1662405115.1@archlinux> Content-Transfer-Encoding: quoted-printable Date: Mon, 05 Sep 2022 22:11:55 +0300 Message-ID: <524941.1662405115@archlinux> Received-SPF: pass client-ip=18.219.209.13; envelope-from=minshall@umich.edu; helo=discrete-nisien.relay-egress.a.mail.umich.edu 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, 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=1662405170; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=HPE/Yr6zMJxjC31dVw9D5RuurZlElwBbrtGtNOm8+34=; b=mgEUWgFMI8RL2Icc//PGksxxWwq2waCXOKIBArz7S854AnMlkQBb/TiEL++WxMfPxt9Ja3 8eRsAbZOnO3Dm8uK2f8yT1Nozouc5+9GG1PNkdu3+v3QzMg+QlshkC2DJvEW4FzhcW3tgu U1s3v4Z4pmr0l9C2y0M2583z1CjF04CBRX56nABQodsngxvMblXRB5mzIfulKxTi/3iKp7 tEw/8yw7f1Ohh/1ka2CCDbUe4oXjFQy8cCjpIeDwvBi/1H2mm+aJNaqYhcn97/lQi1BhyO JGwkcMFdYFYPHmLNopznK+nnb0r+Lw4CBgCjby1/pbSLOBwB3L+qbMQ0lu0eXQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662405170; a=rsa-sha256; cv=none; b=S9pd+20Kr/eR4tp+Gjw/xKxhHNjCnCRv1jr2qQh0+pbfcUrpLB2iACtBtOM1MphvytVMk5 OfIPbcfKgKoxo5d6cjWWj/IbR+LzzAZ/usapgy/6/8JcC66yew8nnqsLrFHqNcyieRfTtv ML4znkWwUGC1c7bQKPHk9F9oNcsWSCCAa5dywbjw0LBK5tYpFG2l4QBmcjWUiJmhGnSRC5 41nD63DTWhPoFHp5vQpQk/sp/T9K90mrVbUWag2qfHGMpJU69bceIjRKDKiPsZCHqd6lOJ ++EnvJo57XAQAQ5ykzHHdU1yOdJzv9gBH8tIpZSRX/0CPwGCii5DG+ZABKjDpw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=umich.edu header.s=relay-2018-08-29 header.b=gEREx7BW; dmarc=pass (policy=none) header.from=umich.edu; 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.78 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=umich.edu header.s=relay-2018-08-29 header.b=gEREx7BW; dmarc=pass (policy=none) header.from=umich.edu; 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: B13A42CEB6 X-Spam-Score: -2.78 X-Migadu-Scanner: scn1.migadu.com X-TUID: Wf8mEvphVEXe Felix, my setup is probably too complicated. and, i don't really know what "aws secretsmanager" is, or how you interact with it. but, in case this helps... i put ("long-term") secrets in pass ---- https://www.passwordstore.org/ ---- for "programmatic access" (in particular, for passwords needed by e-mail sending and retrieving programs), avoiding having to enter my password every ten minutes (or so), i wrote something called credeface/credepass ---- https://gitlab.com/minshall/credeface ---- which uses git's (!) credential cache for this service ---- https://git-scm.com/docs/git-credential ---- in your case, you might just use `credeface` to first store, then later retrieve, whatever secrets you get from "aws secretsmanager". occasionally (`--timeout`), you should be asked by `credeface` to refresh that value. ---- bash archlinux (master): {1315} credeface --username ipsilon --host exampl= e.com store this is that bash archlinux (master): {1316} credeface --username ipsilon --host exampl= e.com get cannot display secrets on the terminal bash archlinux (master): {1317} credeface --username ipsilon --host exampl= e.com get | cat this is that ---- cheers, Greg