Add validation to secret names

This commit is contained in:
2023-02-14 20:39:03 -07:00
parent c0f6186eac
commit edafd5108a
2 changed files with 14 additions and 3 deletions
+1 -1
View File
@@ -172,7 +172,7 @@ func ExecutePipeline(pe PipelineExecution, db database.Database, pipelineConf co
}
for _, secret := range secrets {
// TODO: this doesn't validate either of these strings
// the env name is validated to be just uppercase letters, numbers, and underscores on ingestion
env = append(env, fmt.Sprintf("%v=%v", strings.ToUpper(secret.Name), secret.Secret))
}