misconf

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDataFS

func CreateDataFS(dataPaths []string, options ...string) (fs.FS, []string, error)

func CreatePolicyFS

func CreatePolicyFS(policyPaths []string) (fs.FS, []string, error)

func NewCauseWithCode

func NewCauseWithCode(underlying scan.Result) types.CauseMetadata

func ResultsToMisconf

func ResultsToMisconf(configType string, scannerName string, results scan.Results) []types.Misconfiguration

ResultsToMisconf is exported for vul-plugin-aqua purposes only

Types

type Scanner

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

func NewAzureARMScanner

func NewAzureARMScanner(filePatterns []string, opt ScannerOption) (*Scanner, error)

func NewCloudFormationScanner

func NewCloudFormationScanner(filePatterns []string, opt ScannerOption) (*Scanner, error)

func NewDockerfileScanner

func NewDockerfileScanner(filePatterns []string, opt ScannerOption) (*Scanner, error)

func NewHelmScanner

func NewHelmScanner(filePatterns []string, opt ScannerOption) (*Scanner, error)

func NewKubernetesScanner

func NewKubernetesScanner(filePatterns []string, opt ScannerOption) (*Scanner, error)

func NewTerraformPlanScanner

func NewTerraformPlanScanner(filePatterns []string, opt ScannerOption) (*Scanner, error)

func NewTerraformScanner

func NewTerraformScanner(filePatterns []string, opt ScannerOption) (*Scanner, error)

func (*Scanner) Scan

func (s *Scanner) Scan(ctx context.Context, fsys fs.FS) ([]types.Misconfiguration, error)

type ScannerOption

type ScannerOption struct {
	Trace                    bool
	RegoOnly                 bool
	Namespaces               []string
	PolicyPaths              []string
	DataPaths                []string
	DisableEmbeddedPolicies  bool
	DisableEmbeddedLibraries bool

	HelmValues          []string
	HelmValueFiles      []string
	HelmFileValues      []string
	HelmStringValues    []string
	TerraformTFVars     []string
	TfExcludeDownloaded bool
	K8sVersion          string
}

func (*ScannerOption) Sort

func (o *ScannerOption) Sort()

Jump to

Keyboard shortcuts

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