emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Felix Dorner <felix.dorner@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Secrets in org-babel
Date: Mon, 5 Sep 2022 20:25:11 +0200	[thread overview]
Message-ID: <CALG+_hDo2+UsbdkFu_buf+v7w2Fd_2HUV-phqx1Kyi=mu_86dw@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 667 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 894 bytes --]

             reply	other threads:[~2022-09-05 18:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-05 18:25 Felix Dorner [this message]
2022-09-05 19:11 ` Secrets in org-babel Greg Minshall
2022-09-06 13:19 ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CALG+_hDo2+UsbdkFu_buf+v7w2Fd_2HUV-phqx1Kyi=mu_86dw@mail.gmail.com' \
    --to=felix.dorner@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).