give the secrets unit a private tmp for its prefetched secrets
This commit is contained in:
parent
5541e3606b
commit
92f79622f9
2 changed files with 6 additions and 0 deletions
|
|
@ -1215,6 +1215,10 @@ in
|
|||
storeRetry.serviceConfig
|
||||
// {
|
||||
LoadCredential = lib.attrNames storeFiles;
|
||||
# `store_prefetch` keeps secret values in files under the
|
||||
# temporary directory. A private one is removed by systemd when
|
||||
# the unit stops, which a kill at the start timeout is too.
|
||||
PrivateTmp = true;
|
||||
# Bounds one run, and so the container's boot when the store
|
||||
# accepts a connection and never answers: this unit is in the
|
||||
# boot wait of a container with a one-minute start limit.
|
||||
|
|
|
|||
|
|
@ -558,6 +558,8 @@ let
|
|||
phases = lib.filter (lib.hasPrefix "phase_done ") lines;
|
||||
in
|
||||
(unit secretPublisherHere).serviceConfig.TimeoutStartSec == 30
|
||||
&& (unit secretPublisherHere).serviceConfig.PrivateTmp or false
|
||||
&& !((unit secretPublisherNoIdentity).serviceConfig ? PrivateTmp)
|
||||
&& lib.length calls == 1
|
||||
&& lib.length clientLeaves >= 4
|
||||
&& lib.all hasLeaf clientLeaves
|
||||
|
|
|
|||
Loading…
Reference in a new issue