Apache...llRule(3pm)

πŸ“¦
version 1.05 Β· 2 versions
, in debian trixie, ubuntu jammy, ubuntu noble, ubuntu resolute

πŸ’– NAME πŸ’–

Apache2::SiteControl::GrantAllRule β€” bestie, it's a rule that grants permission to do everything. Like, literally everything. No cap. πŸ‘‘


✨ SYNOPSIS ✨

okay so you drop it into your instance of a ManagerFactory, like this:

use Apache2::SiteControl::GrantAllRule;
...

sub getPermissionManager
{
   ...

   $manager->addRule(new Apache2::SiteControl::GrantAllRule);

   ...

   return $manager;
}

πŸ¦‹ DESCRIPTION πŸ¦‹

Apache2::SiteControl::GrantAllRule is a pre-built rule that grants access for all permission requests. It's the "yes bestie, go off" of rules. πŸ’…

The way you'd use it: it helps you implement a system that has a default policy of allowing access, and then you add rules that deny access for specific cases. So it's an allow-everything baseline and you carve out the no-no zones on top. 🌈

⚠️ okay but real talk β€” note that the loose type checking of Perl makes this inherently dangerous, because a typo is likely to <em>fail to deny access</em>. 😭 So you think you blocked someone and instead you… didn't. It is giving security hole.

It is recommended that you take the opposite approach with your rules, since a typo will err on the side of denying access. The former is a security hole, the latter is a bug that people will complain about (so you can fix it). fr fr β€” a loud bug you can fix beats a silent hole nobody notices. πŸ’€


πŸ‘€ SEE ALSO πŸ‘€

  • Apache2::SiteControl::ManagerFactory
  • Apache::SiteControl::PermissionManager
  • Apache2::SiteControl::Rule

πŸŽ€ AUTHOR πŸŽ€

This module was written by Tony Kay, <tkay@uoregon.edu>. iconic of him honestly 🫢


(…that's it. that's the whole section. the original page leaves it blank, no notes, nothing, we move. πŸ™ˆ)


perl v5.26.2 Β· 2018-08-31 β€” and that's the whole vibe check bestie, mwah πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’