fix(windows): protect lifecycle and backup state

This commit is contained in:
2026-08-18 14:05:52 +02:00
parent b6396e66fa
commit ada3f9fc7f
7 changed files with 122 additions and 21 deletions
+6
View File
@@ -186,6 +186,12 @@ func createWithDependenciesTransaction(ctx context.Context, transaction *lifecyc
if err != nil {
return Result{}, err
}
if request.IncludeSecrets {
if err := safeio.ProtectPrivateRegular(reservation.path); err != nil {
_ = reservation.RemoveIfOwned()
return Result{}, errors.New("protect secret-bearing backup output")
}
}
published := false
defer func() {
if !published {