Merge pull request 'fix: close OpenBao recovery probe input' (#36) from fix/openbao-recovery-probe into main

Reviewed-on: #36
This commit is contained in:
eding 2026-09-08 17:47:24 +02:00
commit 00cb4ead63

View file

@ -163,6 +163,7 @@ func validateRecoveryRecipient(recipient, bundlePath string) error {
} }
defer os.Remove(probePath) defer os.Remove(probePath)
cmd := exec.Command("age", "-r", recipient, "-o", probePath) cmd := exec.Command("age", "-r", recipient, "-o", probePath)
cmd.Stdin = bytes.NewReader(nil)
if output, err := cmd.CombinedOutput(); err != nil { if output, err := cmd.CombinedOutput(); err != nil {
return fmt.Errorf("validate OpenBao recovery recipient: %w: %s", err, bytes.TrimSpace(output)) return fmt.Errorf("validate OpenBao recovery recipient: %w: %s", err, bytes.TrimSpace(output))
} }