feat: import prepared Catalog bindings through authenticated services
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user