feat: import prepared Catalog bindings through authenticated services

This commit is contained in:
Codex
2026-10-06 18:04:07 +02:00
parent d720da721b
commit af4c7b5df9
29 changed files with 835 additions and 35 deletions
+6
View File
@@ -237,6 +237,9 @@ func CollectInputs(installation config.Installation, workspace, bootstrap, manif
return nil, "", invalidPlan()
}
var bindings struct {
Authentication struct {
PasswordFile string `yaml:"passwordFile"`
} `yaml:"authentication"`
Databases []struct {
SecretFiles map[string]string `yaml:"secretFiles"`
EvidenceSecretFiles map[string]string `yaml:"evidenceSecretFiles"`
@@ -245,6 +248,9 @@ func CollectInputs(installation config.Installation, workspace, bootstrap, manif
if yaml.Unmarshal(data, &bindings) != nil {
return nil, "", invalidPlan()
}
if bindings.Authentication.PasswordFile != "" {
paths = append(paths, bindings.Authentication.PasswordFile)
}
for _, entry := range bindings.Databases {
for _, values := range []map[string]string{entry.SecretFiles, entry.EvidenceSecretFiles} {
for _, path := range values {