coraza icon indicating copy to clipboard operation
coraza copied to clipboard

There is no implementation for the `allow` action

Open fzipi opened this issue 1 year ago • 0 comments

Description

func (a *allowFn) Evaluate(r *coraza.Rule, tx *coraza.Transaction) {
	// TODO implement this:
	/*
		if a.allow == 1 {
			tx.RuleEngine = coraza.RULE_ENGINE_OFF
		} else if a.allow == 2 {
			//tx.SkipToPhase = tx.LastPhase +1
		} else if a.allow == 3 && tx.LastPhase < 3 {
			//tx.SkipToPhase = 3
		}
	*/
}

This MUST be implemented.

Steps to reproduce

Probably adding one rule that allows first, and then blocking it will result in blocking.

Expected result

It should be allowed.

Actual result

Well, guess.

fzipi avatar Sep 04 '22 12:09 fzipi