httpsec

package
v1.70.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0, BSD-3-Clause, Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientIPTags added in v1.69.0

func ClientIPTags(headers map[string][]string, hasCanonicalHeaders bool, remoteAddr string) (tags map[string]string, clientIP netip.Addr)

ClientIPTags returns the resulting Datadog span tags `http.client_ip` containing the client IP and `network.client.ip` containing the remote IP. The tags are present only if a valid ip address has been returned by RemoteAddr().

func NewHTTPSecFeature added in v1.69.0

func NewHTTPSecFeature(config *config.Config, rootOp dyngo.Operation) (listener.Feature, error)

func NewSSRFProtectionFeature added in v1.69.0

func NewSSRFProtectionFeature(config *config.Config, rootOp dyngo.Operation) (listener.Feature, error)

func NormalizeHTTPHeaders added in v1.69.0

func NormalizeHTTPHeaders(headers map[string][]string) (normalized map[string]string)

NormalizeHTTPHeaders returns the HTTP headers following Datadog's normalization format.

Types

type Feature added in v1.69.0

type Feature struct {
	APISec appsec.APISecConfig
}

func (*Feature) OnRequest added in v1.69.0

func (feature *Feature) OnRequest(op *httpsec.HandlerOperation, args httpsec.HandlerOperationArgs)

func (*Feature) OnResponse added in v1.69.0

func (feature *Feature) OnResponse(op *httpsec.HandlerOperation, resp httpsec.HandlerOperationRes)

func (*Feature) Stop added in v1.69.0

func (*Feature) Stop()

func (*Feature) String added in v1.69.0

func (*Feature) String() string

type SSRFProtectionFeature added in v1.69.0

type SSRFProtectionFeature struct{}

func (*SSRFProtectionFeature) OnStart added in v1.69.0

func (*SSRFProtectionFeature) Stop added in v1.69.0

func (*SSRFProtectionFeature) Stop()

func (*SSRFProtectionFeature) String added in v1.69.0

func (*SSRFProtectionFeature) String() string

Jump to

Keyboard shortcuts

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