0.27.0 — Infisical hardening: runtime refresh, audit logging, CLI verify/audit, startup verification, SSH host key verification, interface consolidation
This commit is contained in:
@@ -3,6 +3,7 @@ package secrets
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"log/slog"
|
||||
"os"
|
||||
"os/exec"
|
||||
"strings"
|
||||
@@ -45,11 +46,13 @@ func (s *SOPSBackend) load() error {
|
||||
cmd := exec.Command("sops", "-d", path)
|
||||
out, err := cmd.Output()
|
||||
if err != nil {
|
||||
slog.Warn("sops: decryption failed", "file", entry.Name(), "error", err)
|
||||
continue // skip unreadable files
|
||||
}
|
||||
|
||||
var data map[string]any
|
||||
if err := yaml.Unmarshal(out, &data); err != nil {
|
||||
slog.Warn("sops: invalid yaml after decryption", "file", entry.Name(), "error", err)
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user