after_start deploy fields: asked after the start by this controller, still required for older ones (R-1028/R-1045, security review of catalog 0188430)
gates / gates (push) Successful in 47s

Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
2026-10-15 10:32:28 +02:00
parent 372d6e5994
commit f327bc53a9
4 changed files with 43 additions and 12 deletions
+2 -2
View File
@@ -390,8 +390,8 @@ func (m *Manager) DeployStack(req DeployRequest) (string, error) {
}
}
// Validate required fields
if field.Required && value == "" {
// Validate required fields (an after_start field is asked after the start — R-1028)
if field.Required && value == "" && !field.AfterStart {
clearDeploying()
return "", util.MsgErrorf(ErrRequiredField, "err.stacks.field_required", field.Label, field.EnvVar)
}