| SYSTEMD-IMDS-GENERATOR(8) | systemd-imds-generator | SYSTEMD-IMDS-GENERATOR(8) |
.SH "NAME" systemd-imds-generator - Generator to automatically
enable IMDS on supporting environments
.SH "SYNOPSIS"
.PP /usr/lib/systemd/system-generators/systemd-imds-generator
.SH "DESCRIPTION"
.PP systemd-imds-generator is a generator that enables IMDS (Instance
Metadata Service) functionality at boot on systems that support it.
Specifically it does three things:
.PP By default, whether to pull in these services or not is decided based on
hwdb(7) information, that detects various IMDS environments
automatically. However, this logic may be overridden via
systemd.imds=, see below.
.PP systemd-imds-generator implements systemd.generator(7).
.SH "KERNEL COMMAND LINE"
.PP systemd-imds-generator understands the following kernel command
line parameters:
.PP systemd.imds=
Takes a boolean argument or the special value auto, and may be used to enable
or disable the IMDS logic. Note that this controls only whether the relevant
services (as listed above) are automatically pulled into the initial
transaction, it has no effect if some other unit or the user explicitly
activates the relevant units. If this option is not used (or set to auto)
automatic detection of IMDS is used, see above.
Added in version 261.
.RE
.PP systemd.imds.network=
Takes one of off, locked, unlocked. Controls whether and how to set up
networking for IMDS endpoint access. Unless set to off early boot networking
is enabled, ensuring that the IMDS endpoint can be reached. If set to locked
direct access to the IMDS endpoint by regular unprivileged processes is
disabled via a "prohibit" route, so that any access must be done
through systemd-imdsd@.service or its associated tools. This also turns off
IPv4 reverse path filtering on all Ethernet links that the early boot
networking configures (see IPv4ReversePathFilter= in
systemd.network(5)). If set to unlocked (the default) this
"prohibit" route is not created, and regular unprivileged
processes can directly contact IMDS.
Some systems set net.ipv4.conf.all.rp_filter. With locked, IMDS then
cannot be reached. systemd-imdsd warns about this when setting up the
network. To allow IMDS access, turn it off with a sysctl.d(5)
drop-in, e.g. /etc/sysctl.d/90-imds.conf:
net.ipv4.conf.all.rp_filter = 0
systemd's 50-default.conf already turns on reverse path filtering for every
individual link, so all other links keep it.
Added in version 261.
.RE
.PP systemd.imds.import=
Takes a boolean argument. If false the systemd-imds-import.service (see
above) is not pulled into the initial transaction, i.e. no credentials are
imported from IMDS. Defaults to true in the initrd, and false otherwise.
Added in version 261.
.RE
.SH "SEE ALSO"
.PP systemd(1), systemd-imds(1),
systemd-imdsd@.service(8), systemd.system-credentials(7)
| systemd 262.2 |