Package org.frontcache.guard
package org.frontcache.guard
-
ClassDescription
ext:<name>[:<argument>]- a condition a started plugin offers (decide, E3).What a matching guard rule does with the request: reject it, redirect it, explicitly let it through (an exemption placed above a broader rule), or challenge it - send the visitor to a challenge provider's page under/fc-x/<plugin>/, which is a redirect that knows which provider it needs (seeGuardAction.challenge(String, GuardAction)).A guard rule could not be parsed or violates a safety rail (bad regex, unknown predicate, redirect target outside the allowed hosts, self-redirect loop).Result of running the guard pipeline for one request: either "carry on to FC_Total" or a terminal action (reject / redirect) together with the rule that produced it.One condition of a guard rule (e.g.Parses a single predicate expression from guard-rules.conf into aGuardPredicate.Which config file a predicate is being parsed for.A guard rule: name | condition | action.Runs the guard rules for every request, before cache and origin.Wire/DTO view of aGuardRule- what the management API (get-guard-rules) returns and the console renders.Parses one line of guard-rules.conf into aGuardRule.The address lists underconf/lists/- the ones that change while the node runs.One list as the rules read it.Thrown by a predicate that has no answer for this request - a plugin'sext:predicate that threw, is switched off for going over its budget, or that no started plugin offers.