Documentation
¶
Overview ¶
Package idempotency_verifier provides idempotency validation for API endpoints for ZAP.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdempotencyParams ¶
type IdempotencyParams struct {
BaseURL string `json:"base_url"` // Base URL of the API
Endpoints []string `json:"endpoints,omitempty"` // Specific endpoints to verify
RepeatCount int `json:"repeat_count,omitempty"` // How many times to repeat the request (default: 2)
IncludeGET bool `json:"include_get,omitempty"` // Whether to verify GET/HEAD (usually idempotent by default)
}
IdempotencyParams defines parameters for idempotency verification.
type IdempotencyResult ¶
type IdempotencyResult struct {
TotalVerified int `json:"total_verified"`
IdempotentCount int `json:"idempotent_count"`
Violations []Violation `json:"violations"`
Summary string `json:"summary"`
}
IdempotencyResult represents the outcome of the verification.
type IdempotencyVerifierTool ¶
type IdempotencyVerifierTool struct {
// contains filtered or unexported fields
}
IdempotencyVerifierTool checks if API endpoints are correctly idempotent.
func NewIdempotencyVerifierTool ¶
func NewIdempotencyVerifierTool(falconDir string, httpTool *shared.HTTPTool) *IdempotencyVerifierTool
NewIdempotencyVerifierTool creates a new idempotency verifier tool.
func (*IdempotencyVerifierTool) Description ¶
func (t *IdempotencyVerifierTool) Description() string
func (*IdempotencyVerifierTool) Execute ¶
func (t *IdempotencyVerifierTool) Execute(args string) (string, error)
func (*IdempotencyVerifierTool) Name ¶
func (t *IdempotencyVerifierTool) Name() string
func (*IdempotencyVerifierTool) Parameters ¶
func (t *IdempotencyVerifierTool) Parameters() string
type RepeatEngine ¶
type RepeatEngine struct {
// contains filtered or unexported fields
}
RepeatEngine repeats requests and compares responses to detect idempotency issues.
func (*RepeatEngine) Verify ¶
func (e *RepeatEngine) Verify(endpoints map[string]shared.EndpointAnalysis) IdempotencyResult
Verify checks a set of endpoints for idempotency violations.
Click to show internal directories.
Click to hide internal directories.