Entering a passphrase interactively in a runit script

From: Christophe-Marie Duquesne <chmd_at_chmd.fr>
Date: Wed, 25 May 2016 12:50:50 +0200

Hi,

I am trying to write a runit script that would require a passphrase
when starting. This passphrase must not exist in clear on the
filesystem, and it would require user interaction.

I tried to have runit read the passphrase into the environment of the script:

read -s PASSPHRASE
exec prog # reads PASSPHRASE from the environment

but starting this with runit triggers no interaction, and the
PASSPHRASE variable ends up being empty.

Any idea how to proceed?

Cheers,
Christophe-Marie
Received on Wed May 25 2016 - 10:50:50 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:19 UTC