emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Greg Minshall <minshall@umich.edu>
To: Felix Dorner <felix.dorner@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Secrets in org-babel
Date: Mon, 05 Sep 2022 22:11:55 +0300	[thread overview]
Message-ID: <524941.1662405115@archlinux> (raw)
In-Reply-To: <CALG+_hDo2+UsbdkFu_buf+v7w2Fd_2HUV-phqx1Kyi=mu_86dw@mail.gmail.com>

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 example.com store
this is that
bash archlinux (master): {1316} credeface --username ipsilon --host example.com get
cannot display secrets on the terminal
bash archlinux (master): {1317} credeface --username ipsilon --host example.com get | cat
this is that
----

cheers, Greg


  reply	other threads:[~2022-09-05 19:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-05 18:25 Secrets in org-babel Felix Dorner
2022-09-05 19:11 ` Greg Minshall [this message]
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=524941.1662405115@archlinux \
    --to=minshall@umich.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=felix.dorner@gmail.com \
    /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).