attackprotectionadvancedconfig

package
v1.61.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AttackTypes = struct {
	Any           AttackType
	CmdInjection  AttackType
	JndiInjection AttackType
	SqlInjection  AttackType
	Ssrf          AttackType
}{
	"ANY",
	"CMD_INJECTION",
	"JNDI_INJECTION",
	"SQL_INJECTION",
	"SSRF",
}
View Source
var BlockingStrategies = struct {
	Block   BlockingStrategy
	Monitor BlockingStrategy
	Off     BlockingStrategy
}{
	"BLOCK",
	"MONITOR",
	"OFF",
}

Functions

This section is empty.

Types

type AttackHandling

type AttackHandling struct {
	BlockingStrategy BlockingStrategy `json:"blockingStrategy"` // Possible Values: `BLOCK`, `MONITOR`, `OFF`
}

func (*AttackHandling) MarshalHCL

func (me *AttackHandling) MarshalHCL(properties hcl.Properties) error

func (*AttackHandling) Schema

func (me *AttackHandling) Schema() map[string]*schema.Schema

func (*AttackHandling) UnmarshalHCL

func (me *AttackHandling) UnmarshalHCL(decoder hcl.Decoder) error

type AttackType

type AttackType string

type BlockingStrategy

type BlockingStrategy string

type Criteria

type Criteria struct {
	AttackType   AttackType `json:"attackType"`             // Possible Values: `ANY`, `CMD_INJECTION`, `JNDI_INJECTION`, `SQL_INJECTION`, `SSRF`
	ProcessGroup *string    `json:"processGroup,omitempty"` // Process group
}

func (*Criteria) MarshalHCL

func (me *Criteria) MarshalHCL(properties hcl.Properties) error

func (*Criteria) Schema

func (me *Criteria) Schema() map[string]*schema.Schema

func (*Criteria) UnmarshalHCL

func (me *Criteria) UnmarshalHCL(decoder hcl.Decoder) error

type Metadata

type Metadata struct {
	Comment string `json:"comment"`
}

func (*Metadata) MarshalHCL

func (me *Metadata) MarshalHCL(properties hcl.Properties) error

func (*Metadata) Schema

func (me *Metadata) Schema() map[string]*schema.Schema

func (*Metadata) UnmarshalHCL

func (me *Metadata) UnmarshalHCL(decoder hcl.Decoder) error

type Settings

type Settings struct {
	AttackHandling *AttackHandling `json:"attackHandling"` // Step 2: Define attack control for chosen criteria
	Criteria       *Criteria       `json:"criteria"`       // Step 1: Define criteria
	Enabled        bool            `json:"enabled"`        // This setting is enabled (`true`) or disabled (`false`)
	Metadata       *Metadata       `json:"metadata"`       // Step 3: Leave comment
	InsertAfter    string          `json:"-"`
}

func (*Settings) MarshalHCL

func (me *Settings) MarshalHCL(properties hcl.Properties) error

func (*Settings) Name

func (me *Settings) Name() string

func (*Settings) Schema

func (me *Settings) Schema() map[string]*schema.Schema

func (*Settings) UnmarshalHCL

func (me *Settings) UnmarshalHCL(decoder hcl.Decoder) error

Jump to

Keyboard shortcuts

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