flags

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package flags holds the action parameters that change what an attack does, with the logic and the execution-log output that depend on them.

Index

Constants

View Source
const UpstreamSkipVerifyParameterName = "upstreamInsecureSkipVerify"

Variables

This section is empty.

Functions

func UpstreamCustomCAs

func UpstreamCustomCAs() (valid, invalid []string)

UpstreamCustomCAs sorts the custom CA paths the proxy inherits from the extension (SSL_CERT_DIR / SSL_CERT_FILE, the exttls convention) into those holding at least one PEM certificate and those that don't.

func UpstreamErrorTip

func UpstreamErrorTip(opts proxyfault.Opts, validCAs []string, upstreamErrors int64) *action_kit_api.Message

UpstreamErrorTip explains failed forwards once they happen. They may be failed connections, but with HTTPS decrypted they may as well be a dependency certificate the proxy can't verify.

func UpstreamSkipVerify

func UpstreamSkipVerify(cfg map[string]any, interceptCA *proxyfault.TLSInterceptCA) bool

UpstreamSkipVerify reads the setting. It only applies to decrypted HTTPS, so it is off without an interception CA.

func UpstreamSkipVerifyParameter

func UpstreamSkipVerifyParameter(order int) action_kit_api.ActionParameter

UpstreamSkipVerifyParameter lets an experiment forward intercepted HTTPS requests to a dependency whose certificate the proxy cannot verify. It is no traffic filter, so it is shown inline, next to the other toggles.

func UpstreamTLSMessages

func UpstreamTLSMessages(opts proxyfault.Opts, validCAs, invalidCAs []string) action_kit_api.Messages

UpstreamTLSMessages are logged when the attack starts: that skipping verification is unsafe, or which CAs verify the dependencies, so a forwarded request answered with a 502 is not a surprise.

func VerifiesUpstream

func VerifiesUpstream(opts proxyfault.Opts) bool

VerifiesUpstream reports whether the proxy forwards decrypted HTTPS and verifies the dependency's certificate on the way.

Types

This section is empty.

Jump to

Keyboard shortcuts

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