dastworkflow

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

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

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)

func (*Service) Decide

func (s *Service) Decide(ctx context.Context, human string, engagementID, actionID shared.ID, approve bool, reason string) (agent.ApprovalDecision, error)

func (*Service) Propose

func (s *Service) Propose(ctx context.Context, actor string, engagementID shared.ID, probe dastrunner.Probe) (Proposal, error)

func (*Service) Run

func (s *Service) Run(ctx context.Context, actor string, engagementID, actionID shared.ID, probe dastrunner.Probe) (dastrunner.Result, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL