appsec

package
v0.0.0-...-baa23e0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package appsec provides a simple Application Security Monitoring API for serverless.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWithShutdown

func NewWithShutdown(demux aggregator.Demultiplexer) (lp *httpsec.ProxyLifecycleProcessor, shutdown func(context.Context) error, err error)

NewWithShutdown returns a new httpsec.ProxyLifecycleProcessor and a shutdown function that can be called to terminate the started proxy (releasing the bound port and closing the AppSec instance). This is mainly intended to be called in test code so that goroutines and ports are not leaked, but can be used in other code paths when it is useful to be able to perform a clean shut down.

Types

type AppSec

type AppSec struct {
	// contains filtered or unexported fields
}

func (*AppSec) Close

func (a *AppSec) Close() error

Close the AppSec instance.

func (*AppSec) Monitor

func (a *AppSec) Monitor(addresses map[string]any) *waf.Result

Monitor runs the security event rules and return the events as a slice The monitored addresses are all persistent addresses

Directories

Path Synopsis
Package config defines configuration utilities for appsec
Package config defines configuration utilities for appsec
Package httpsec defines is the HTTP instrumentation API and contract for AppSec.
Package httpsec defines is the HTTP instrumentation API and contract for AppSec.

Jump to

Keyboard shortcuts

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