getsops/sops · error
connectStr: %s, err
Error message
connectStr: %s, err
What it means
Error "connectStr: %s, err" thrown in getsops/sops.
Source
Thrown at audit/audit.go:46
}
var conf config
err = yaml.Unmarshal(confBytes, &conf)
if err != nil {
log.WithField("error", err).Panicf("Error unmarshalling config")
}
// If we are running test, then don't create auditors.
// This is pretty hacky, but doing it The Right Way would require
// restructuring SOPS to use dependency injection instead of just using
// globals everywhere.
if flag.Lookup("test.v") != nil {
return
}
var auditErrors []error
for _, pgConf := range conf.Backends.Postgres {
auditDb, err := NewPostgresAuditor(pgConf.ConnStr)
if err != nil {
auditErrors = append(auditErrors, errors.Wrap(err, fmt.Sprintf("connectStr: %s, err", pgConf.ConnStr)))
}
auditors = append(auditors, auditDb)
}
if len(auditErrors) > 0 {
log.Errorf("connecting to audit database, defined in %s", configFile)
for _, err := range auditErrors {
log.Error(err)
}
log.Fatal("one or more audit backends reported errors, exiting")
}
}
// TODO: Make platform agnostic
const configFile = "/etc/sops/audit.yaml"
type config struct {
Backends struct {
Postgres []struct {View on GitHub (pinned to 13442bb981)
When it happens
Trigger: Thrown at audit/audit.go:46 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of getsops/sops@13442bb981 (2026-09-01).
Data as JSON: /api/errors/93e87be103142417.
Report an issue: GitHub.