feat(secrets): initial support for 'x-command' and 'driver: exec' secrets, referenced as secret://name in environment (#403)

This commit is contained in:
Pasha Sviderski
2026-06-26 12:00:16 +10:00
committed by GitHub
parent e5b205391e
commit 925695a44a
7 changed files with 809 additions and 1 deletions
+6
View File
@@ -65,6 +65,12 @@ func (d *Deployment) Plan(ctx context.Context) (Plan, error) {
}
var plan Plan
// Resolve 'secret://name' references to actual secret values (if there are some and they haven't been resolved yet)
// before building service specs from the project.
if err := ResolveSecrets(ctx, d.Project); err != nil {
return plan, fmt.Errorf("resolve secrets: %w", err)
}
// Generate service specs for all services in the project.
var serviceSpecs []api.ServiceSpec
var mu sync.Mutex