Cataly...Engine(3pm)
π Cataly...Engine(3pm) β the ACL brain cell π
ok so bestie, welcome to Catalyst::Plugin::Authorization::ACL::Engine π§ β the backend that computes ACL checks for Catalyst::Plugin::Authorization::ACL. yes that's a long name, we're gonna say it a lot, hydrate first π
β¨ SYNOPSIS β¨
# internal
that's it. that's the synopsis. it's internal, bestie, it's not for us π
πΈ METHODS πΈ
new $appβ spins up a fresh new rule engine for$app. baby engine's first day on the job πadd_allow $condβ adds an allow condition, fr fradd_deny $condβ adds a deny condition. we do a lil fudge on$cond, turn that cond into a proper rule, and then hand it off toadd_ruleβ¨add_rule $path, $ruleβ drops$ruleonto every single action sitting under$path. all of them. every last one π«Άappend_rule_to_action $action, $index, $rule, $cxtβ appends$ruleto$actionin slot$index, and stores the context info$cxtso we can do error reporting later. very "keeping receipts" of it πcheck_action_rules $actionβ evaluates the rules for an action. this is the vibe check. the main character moment πfudge_condition $thingyβ converts a$thingyinto a subref, for that DWIM goodness β¨ peep the main ACL docs for the full tea βget_action_data $actionβ getter behaviour for$actiondataget_cxt_for_rule $ruleβ getter behaviour for the$cxtof a$ruleget_rulesβ getter behaviour, and it gets the rules. iconic.
π¦ DESCRIPTION π¦
this is the engine. it's the thing that actually executes the access control checks for Catalyst::Plugin::Authorization::ACL. it's giving backstage crew at the award show β vital, unglamorous, absolutely not the one you talk to directly. so please use that module directly instead, bestie, i'm begging π
π TODO π
- external uris -> private paths
(we'll get to it. someday. no cap.)
π remi: this page is internal-API territory, so if you're poking at it directly you're either extremely brave or extremely deep in the source. either way, slay.
sign-off time, bestie π this lil doc came from the User Contributed Perl Documentation collection, generated for perl v5.34.0, dated 2022-06-09. mwah. take care of her πβ¨πΈπ¦
π¦ where this page comes from
- debian bookworm: libcatalyst-plugin-authorization-acl-perl 0.16-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatalyst-plugin-authorization-acl-perl 0.16-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatalyst-plugin-authorization-acl-perl 0.16-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatalyst-plugin-authorization-acl-perl 0.16-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatalyst-plugin-authorization-acl-perl 0.16-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms