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
- func UpstreamCustomCAs() (valid, invalid []string)
- func UpstreamErrorTip(opts proxyfault.Opts, validCAs []string, upstreamErrors int64) *action_kit_api.Message
- func UpstreamSkipVerify(cfg map[string]any, interceptCA *proxyfault.TLSInterceptCA) bool
- func UpstreamSkipVerifyParameter(order int) action_kit_api.ActionParameter
- func UpstreamTLSMessages(opts proxyfault.Opts, validCAs, invalidCAs []string) action_kit_api.Messages
- func VerifiesUpstream(opts proxyfault.Opts) bool
Constants ¶
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.