Documentation ¶
Index ¶
- func ClientIPTags(headers map[string][]string, hasCanonicalHeaders bool, remoteAddr string) (tags map[string]string, clientIP netip.Addr)
- func NewHTTPSecFeature(config *config.Config, rootOp dyngo.Operation) (listener.Feature, error)
- func NewSSRFProtectionFeature(config *config.Config, rootOp dyngo.Operation) (listener.Feature, error)
- func NormalizeHTTPHeaders(headers map[string][]string) (normalized map[string]string)
- type Feature
- type SSRFProtectionFeature
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientIPTags ¶
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 ¶
Types ¶
type Feature ¶
type Feature struct {
APISec appsec.APISecConfig
}
func (*Feature) OnRequest ¶
func (feature *Feature) OnRequest(op *httpsec.HandlerOperation, args httpsec.HandlerOperationArgs)
func (*Feature) OnResponse ¶
func (feature *Feature) OnResponse(op *httpsec.HandlerOperation, resp httpsec.HandlerOperationRes)
type SSRFProtectionFeature ¶
type SSRFProtectionFeature struct{}
func (*SSRFProtectionFeature) OnStart ¶
func (*SSRFProtectionFeature) OnStart(op *httpsec.RoundTripOperation, args httpsec.RoundTripOperationArgs)
func (*SSRFProtectionFeature) Stop ¶
func (*SSRFProtectionFeature) Stop()
func (*SSRFProtectionFeature) String ¶
func (*SSRFProtectionFeature) String() string
Click to show internal directories.
Click to hide internal directories.