summaryrefslogtreecommitdiffstats
path: root/man/systemd-nspawn.xml
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-07-23 17:43:18 +0200
committerLennart Poettering <lennart@poettering.net>2020-08-25 19:46:14 +0200
commit60cc90b95989371268ba7ef5f9cabb72643c26b5 (patch)
treea4b54f4116ab8041a4683922eec03a4f173b2b19 /man/systemd-nspawn.xml
parentman: document pid1's new credentials logic (diff)
downloadsystemd-60cc90b95989371268ba7ef5f9cabb72643c26b5.tar.xz
systemd-60cc90b95989371268ba7ef5f9cabb72643c26b5.zip
man: document nspawn's new credential switches
Diffstat (limited to '')
-rw-r--r--man/systemd-nspawn.xml44
1 files changed, 44 insertions, 0 deletions
diff --git a/man/systemd-nspawn.xml b/man/systemd-nspawn.xml
index 69558ac85c..e1fec3d7a8 100644
--- a/man/systemd-nspawn.xml
+++ b/man/systemd-nspawn.xml
@@ -1402,7 +1402,51 @@
<listitem><para>Equivalent to <option>--console=pipe</option>.</para></listitem>
</varlistentry>
+ </variablelist>
+
+ </refsect2><refsect2>
+ <title>Credentials</title>
+
+ <variablelist>
+ <varlistentry>
+ <term><option>--load-credential=</option><replaceable>ID</replaceable>:<replaceable>PATH</replaceable></term>
+ <term><option>--set-credential=</option><replaceable>ID</replaceable>:<replaceable>VALUE</replaceable></term>
+
+ <para>Pass a credential to the container. These two options correspond to the
+ <varname>LoadCredential=</varname> and <varname>SetCredential=</varname> settings in unit files. See
+ <citerefentry><refentrytitle>systemd.exec</refentrytitle><manvolnum>5</manvolnum></citerefentry> for
+ details about these concepts, as well as the syntax of the option's arguments.</para>
+
+ <para>Note:</para>
+
+ <orderedlist>
+ <listitem><para>When <command>systemd-nspawn</command> runs as systemd system service it can make
+ use and propagate credentials it received via
+ <varname>LoadCredential=</varname>/<varname>SetCredential=</varname> to the container
+ payload.</para></listitem>
+
+ <listitem><para>A systemd service manager running as PID 1 in the container can make use of
+ credentials passed in this way, and propagate them further to services it itself
+ runs.</para></listitem>
+ </orderedlist>
+
+ <para>Thus it is possible to easily propagate credentials from a host service manager to a
+ <command>systemd-nspawn</command> service and from there into its payload and services running within
+ it.</para>
+ <para>In order to embed binary data into
+ the credential data for <option>--set-credential=</option> use C-style escaping
+ (i.e. <literal>\n</literal> to embed a newline, or <literal>\x00</literal> to embed a NUL byte. Note
+ that the invoking shell might already apply unescaping once, hence this might require double
+ escaping!).</para>
+ </varlistentry>
+
+ </variablelist>
+
+ </refsect2><refsect2>
+ <title>Other</title>
+
+ <variablelist>
<xi:include href="standard-options.xml" xpointer="no-pager" />
<xi:include href="standard-options.xml" xpointer="help" />
<xi:include href="standard-options.xml" xpointer="version" />