Ignore hidden entries during secrets bootstrap

This commit is contained in:
2026-09-21 13:26:01 +00:00
parent fbe7b61c79
commit b9425c9ae2
4 changed files with 49 additions and 5 deletions

View File

@@ -88,6 +88,7 @@ func (e *SecretsError) Diagnostics() []Diagnostic {
// LoadSecretsDir explicitly loads immediate regular files from directory into
// previously unset process environment variables. Applications should call it
// once during startup, before concurrent work; Load never calls it.
// Dot-prefixed entries are ignored and omitted from the report.
func LoadSecretsDir(directory string) (*SecretsReport, error) {
report, err := engine.LoadSecretsDir(directory)
result := &SecretsReport{value: report}