Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MonitorSQLOperation ¶ added in v2.12.0
MonitorSQLOperation reports SQL injection attempts without interrupting execution. An outer SQL integration can suppress duplicate monitoring with WithSQLOperationChecked while retaining its own blocking behavior.
func ProtectSQLOperation ¶
func WithSQLOperationChecked ¶ added in v2.12.0
WithSQLOperationChecked marks a driver call already checked by an outer SQL integration. Only pass the returned context to that call, not subsequent queries. Without a parent security operation, it returns ctx unchanged.
Types ¶
type SQLOperation ¶
type SQLOperationArgs ¶
type SQLOperationArgs struct {
// Query corresponds to the addres `server.db.statement`
Query string
// Driver corresponds to the addres `server.db.system`
Driver string
// MonitorOnly reports attacks without applying blocking or redirect actions.
MonitorOnly bool
}
func (SQLOperationArgs) IsArgOf ¶
func (SQLOperationArgs) IsArgOf(*SQLOperation)
type SQLOperationRes ¶
type SQLOperationRes struct{}
func (SQLOperationRes) IsResultOf ¶
func (SQLOperationRes) IsResultOf(*SQLOperation)
Click to show internal directories.
Click to hide internal directories.