emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to replace secrets during org-babel tangle/export without loosing the reproductibility of original script ?
@ 2020-09-10 19:55 rey-coyrehourcq
  0 siblings, 0 replies; only message in thread
From: rey-coyrehourcq @ 2020-09-10 19:55 UTC (permalink / raw)
  To: emacs-orgmode

Hi there, 

First thanks again guys for all the works you doing on org-mode !

I'm searching a way or an example of workflow for such a thing i consider as a common pattern for reproductibility
(reproductible papers in science for example).

For example, i'm starting writing a blog post with org-mode and org-babel to deploy, for example, a nixOS system on a
VPS. I wrote some bash scripts and a configuration.nix for nixOS which contains my gpg key, my vps password, and so
on... When everything works right, i'm ready to publish my full working tutorial on web.

BUT as you imagine, i don't want to share secrets/password ... 

- A first solution was to replace password by some "foo-bar" things, but doing that i lost all the reproductibility of
this script in the future ... so this is silly.

- A second solution, i suppose, was to dynamically choose if i want to replace or not password/secrets/etc by "foo-bar"
things during tangle/export of the script. 

Because i'm not an expert in org-babel headers (so much possibilities ...), if you have some ready to go template/script
to do that into org-babel, i'm interested !

Best !

-- 


Sébastien Rey-Coyrehourcq
Research Engineer UMR IDEES
02.35.14.69.30

{Stronger security for your email, follow EFF tutorial : https://ssd.eff.org/}





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-10 19:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-10 19:55 How to replace secrets during org-babel tangle/export without loosing the reproductibility of original script ? rey-coyrehourcq

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).