dastengine

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package dastengine runs authenticated DAST plans through a dedicated helper.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunHelper

func RunHelper(ctx context.Context, in io.Reader, out io.Writer) error

RunHelper accepts the public plan on stdin. Its request authorization protocol is intentionally separate from stdin so credentials cannot cross the control channel.

Types

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

Engine uses a ToolRunner; it never creates an HTTP client in the API process.

func New

func New(runner ports.ToolRunner, helper string, timeout time.Duration, maxOut int) (*Engine, error)

func (*Engine) Run

func (e *Engine) Run(ctx context.Context, plan ports.DASTPlan, secretEnv []string, authorize func(context.Context, ports.DASTRequest) error) (ports.DASTOutcome, error)

Jump to

Keyboard shortcuts

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