Fully autonomous AI Agents system capable of performing complex penetration testing tasks
Go ai-agentsai-security-toolanthropicautonomous-agentsgolanggptgraphqlmulti-agent-systemoffensive-securityopen-sourceopenaipenetration-testingpenetration-testing-toolsreactsecurity-automationsecurity-testingsecurity-toolsself-hosted
fix(graph): reject empty flow title, flow input, and assistant input
Sergey Kozyrenkobcef80de9977
diff --git a/backend/pkg/graph/schema.resolvers.go b/backend/pkg/graph/schema.resolvers.goindex dbe1c3d2..77fd77a6 100644--- a/backend/pkg/graph/schema.resolvers.go+++ b/backend/pkg/graph/schema.resolvers.go@@ -101,6 +101,10 @@ func (r *mutationResolver) PutUserInput(ctx context.Context, flowID int64, inputreturn model.ResultTypeError, err}+ if input == "" {+ return model.ResultTypeError, fmt.Errorf("user input is required")+ }+fields := logrus.Fields{"uid": uid,"flow": flowID,@@ -241,6 +245,10 @@ func (r *mutationResolver) RenameFlow(ctx context.Context, flowID int64, title sreturn model.ResultTypeError, err}+ if title == "" {+ return model.ResultTypeError, fmt.Errorf("flow title is required")+ }+r.Logger.WithFields(logrus.Fields{"uid": uid,"flow": flowID,@@ -355,6 +363,10 @@ func (r *mutationResolver) CallAssistant(ctx context.Context, flowID int64, assireturn model.ResultTypeError, err}+ if input == "" {+ return model.ResultTypeError, fmt.Errorf("user input is required")+ }+r.Logger.WithFields(logrus.Fields{"uid": uid,"flow": flowID,