libvirt/src/secret
Michal Privoznik 9e3cc0ff5e secret: Inhibit shutdown for ephemeral secrets
Our secret driver divides secrets into two groups: ephemeral
(stored only in memory) and persistent (stored on disk). Now, the
aim of ephemeral secrets is to define them shortly before being
used and then undefine them. But 'shortly before being used' is a
very vague time frame. And since we default to socket activation
and thus pass '--timeout 120' to every daemon it may happen that
just defined ephemeral secret is gone among with the virtsecretd.

This is no problem for persistent secrets as their definition
(and value) is restored when the virtsecretd starts again, but
ephemeral secrets can't be restored.

Therefore, we could view ephemeral secrets as active objects that
the daemon manages and thus inhibit automatic shutdown (just like
hypervisor daemons do when a guest is running).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
2022-12-22 10:57:05 +01:00
..
meson.build meson: Add missing virt_install_dirs 2022-02-02 16:26:36 +01:00
secret_driver.c secret: Inhibit shutdown for ephemeral secrets 2022-12-22 10:57:05 +01:00
secret_driver.h src/secret: use #pragma once in headers 2019-06-19 17:12:31 +02:00
virtsecretd.init.in configure: Provide OpenRC scripts for sub-daemons 2019-12-16 10:11:22 +01:00
virtsecretd.service.in systemd: Use correct man page name in modular daemon service files 2022-02-01 13:20:11 +01:00