Decouple Idunn runtime from Epiphany
This commit is contained in:
parent
afb67d9f43
commit
325442a0fa
2 changed files with 7 additions and 12 deletions
|
|
@ -5599,13 +5599,9 @@ impl Options {
|
|||
"--release-authority-store is required for yggdrasil-local release targets"
|
||||
));
|
||||
}
|
||||
if swarm_profile.as_deref() == Some("yggdrasil-local")
|
||||
&& common.trusted_epiphany_health_identity_store.is_none()
|
||||
{
|
||||
return Err(anyhow!(
|
||||
"--trusted-epiphany-health-identity-store is required for yggdrasil-local"
|
||||
));
|
||||
}
|
||||
// Epiphany is one supervised target, not a prerequisite for Idunn.
|
||||
// Without its migration trust anchor only Epiphany's legacy signed
|
||||
// health is inadmissible; unrelated targets retain their authority.
|
||||
if swarm_profile.as_deref() == Some("yggdrasil-local")
|
||||
&& (common.deployment_brake_store_path.is_none()
|
||||
|| common.deployment_brake_operator_anchor_path.is_none())
|
||||
|
|
@ -7675,9 +7671,7 @@ mod tests {
|
|||
assert!(
|
||||
!unit.contains("--deployment-brake-store /var/lib/gamecult/idunn/deployment-brake.cc")
|
||||
);
|
||||
assert!(unit.contains(
|
||||
"--trusted-epiphany-health-identity-store /etc/gamecult/idunn/epiphany-health-identity.ccmp"
|
||||
));
|
||||
assert!(!unit.contains("--trusted-epiphany-health-identity-store"));
|
||||
assert!(actuator.contains("deploy:epiphany|restart:epiphany"));
|
||||
assert!(actuator.contains("/usr/local/bin/idunn validate-release-authority"));
|
||||
assert!(
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ User=idunn
|
|||
Group=idunn
|
||||
# Operational cancellation ceiling only. Target daemons own readiness through
|
||||
# typed health; this duration must never be interpreted as deployment success.
|
||||
ExecStart=/usr/local/bin/idunn --swarm-profile yggdrasil-local --repo-root /srv/odin/source --store /var/lib/gamecult/idunn/yggdrasil.keepalive.cc --release-authority-store /srv/bifrost/state/repository-release-authority.cc --deployment-brake-store /var/lib/gamecult/idunn-authority/deployment-brake.cc --deployment-brake-operator-anchor /etc/gamecult/idunn/deployment-brake-operator-anchor.cc --rudp-health-bind 10.77.0.1:17870 --trusted-epiphany-health-identity-store /etc/gamecult/idunn/epiphany-health-identity.ccmp --command-timeout-seconds 21600 --execute
|
||||
ExecStart=/usr/local/bin/idunn --swarm-profile yggdrasil-local --repo-root /srv/odin/source --store /var/lib/gamecult/idunn/yggdrasil.keepalive.cc --release-authority-store /srv/bifrost/state/repository-release-authority.cc --deployment-brake-store /var/lib/gamecult/idunn-authority/deployment-brake.cc --deployment-brake-operator-anchor /etc/gamecult/idunn/deployment-brake-operator-anchor.cc --daemon-health-trust-store /etc/gamecult/idunn/daemon-health-trust.cc --rudp-health-bind 10.77.0.1:17870 --service-identity-store /var/lib/gamecult/idunn/idunn-service-identity.cc --public-health-store /var/lib/gamecult/idunn/authenticated-provider-health.cc --public-health-query-bind 127.0.0.1:17871 --command-timeout-seconds 21600 --execute
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
TimeoutStopSec=20
|
||||
|
|
@ -19,7 +19,8 @@ UMask=027
|
|||
PrivateTmp=yes
|
||||
ProtectHome=yes
|
||||
ProtectSystem=full
|
||||
ReadWritePaths=/var/lib/gamecult/idunn /srv/build /srv/voidbot
|
||||
ReadWritePaths=/etc/gamecult/idunn /var/lib/gamecult/idunn /srv/build /srv/voidbot
|
||||
ReadOnlyPaths=/var/lib/gamecult/idunn-authority
|
||||
ReadOnlyPaths=/var/lib/gamecult/idunn-authority
|
||||
|
||||
[Install]
|
||||
|
|
|
|||
Loading…
Reference in a new issue