Documentation
¶
Overview ¶
Package dastworkflow coordinates the governed DAST verification lifecycle.
It deliberately reuses Synapse's existing approval and safety gate primitives instead of inventing a second approval path: propose creates an intrusive, approval-required action; decide records a human decision; run re-admits the decided action through safety.Gate and then calls the safe dastrunner.
Index ¶
- type Proposal
- type Service
- func (s *Service) Decide(ctx context.Context, human string, engagementID, actionID shared.ID, ...) (agent.ApprovalDecision, error)
- func (s *Service) Propose(ctx context.Context, actor string, engagementID shared.ID, ...) (Proposal, error)
- func (s *Service) Run(ctx context.Context, actor string, engagementID, actionID shared.ID, ...) (dastrunner.Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proposal ¶
type Proposal struct {
Action agent.ProposedAction `json:"action"`
Decision agent.ApprovalDecision `json:"decision"`
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(gate *safety.Gate, approvals *approval.Service, store ports.ApprovalStore, runner *dastrunner.Service, clock ports.Clock, ids ports.IDGenerator) (*Service, error)
Click to show internal directories.
Click to hide internal directories.