dast

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartDASTScan added in v0.4.0

func StartDASTScan(ctx context.Context, dast *DAST, nullifyClient *client.NullifyClient, logLevel string) error

func StartExternalScan added in v0.7.0

func StartExternalScan(
	ctx context.Context,
	nullifyClient *client.NullifyClient,
	githubOwner string,
	input *DASTExternalScanInput,
	forcePullImage bool,
	logLevel string,
) error

Types

type DAST added in v0.4.0

type DAST struct {
	AppName        string   `arg:"--app-name" help:"The unique name of the app to be scanned, you can set this to anything e.g. Core API"`
	Path           string   `arg:"--spec-path" help:"The file path to the OpenAPI file (both yaml and json are supported) e.g. ./openapi.yaml"`
	TargetHost     string   `arg:"--target-host" help:"The base URL of the API to be scanned e.g. https://api.nullify.ai"`
	AuthHeaders    []string `arg:"--header" help:"List of headers for the DAST agent to authenticate with your API"`
	Local          bool     `arg:"--local" help:"Test the given app locally for bugs and vulnerabilities in private networks"`
	Version        string   `arg:"--version" default:"latest" help:"Version of the DAST local image that is used for scanning"`
	ForcePullImage bool     `arg:"--pull" help:"Force a docker pull of the latest version of the DAST local image"`

	GitHubOwner      string `arg:"--github-owner" help:"The GitHub username or organisation"`
	GitHubRepository string `arg:"--github-repo" help:"The repository name to create the Nullify issue dashboard in e.g. cli"`
}

type DASTExternalScanInput added in v0.7.0

type DASTExternalScanInput struct {
	AppName      string            `json:"appName"`
	Host         string            `json:"host"`
	TargetHost   string            `json:"targetHost"`
	Version      string            `json:"version"`
	OpenAPISpec  map[string]any    `json:"openAPISpec"`
	AuthConfig   models.AuthConfig `json:"authConfig"`
	NullifyToken string            `json:"nullifyToken"`

	models.RequestProvider
	models.RequestDashboardTarget
}

type DASTExternalScanOutput added in v0.7.0

type DASTExternalScanOutput struct {
	Findings []models.DASTFinding `json:"findings"`
}

Jump to

Keyboard shortcuts

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