Cataly...ireSSL(3pm)

πŸ“¦
version 1.00 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’– NAME πŸ’–

Catalyst::ActionRole::RequireSSL β€” bestie, this is the role that makes an action secure-only. No cap. It forces an action to be SSL and nothing else. πŸ”’βœ¨


🌸 VERSION 🌸

version 1.00 β€” yes, one point oh oh, she's established πŸ’…


✨ SYNOPSIS ✨

Okay so here's the whole vibe in code, no edits, exactly as it lives:

package MyApp::Controller::Foo;

use parent qw/Catalyst::Controller::ActionRole/;

sub bar : Local Does('RequireSSL') { ... }
sub bar : Local Does('NoSSL') { ... }

See how Does('RequireSSL') and Does('NoSSL') just get slapped onto the attribute line? That's the whole move. So easy, so iconic πŸ¦‹

πŸŽ€ HIERARCHY πŸŽ€

Not me about to tell you the best part: you can chain the SSL Roles together πŸ‘‘ β€” like, stack them β€” so you can enforce combinations, such as everything secure except one specific action, and also the reverse (one thing secure, everything else not). The original says to go look at the tests if you wanna see this actually happening in action, so fr fr, the tests are the receipts. 🧾


πŸ’œ AUTHOR πŸ’œ

Simon Elliott <cpan@papercreatures.com> β€” the icon who made this 🫢


🌈 THANKS 🌈

  • Andy Grundman, <andy@hybridized.org> β€” for the original RequireSSL Plugin. A legend, honestly. πŸ™Œ
  • t0m (Tomas Doran), zamolxes (Bogdan Lucaciu), wreis (Wallace Reis) β€” the whole squad, appreciated πŸ’–

Copyright 2009 by Simon Elliott

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. (Translation: same-as-Perl terms, go wild, but respectfully. ✨)


And that's the page, bestie β€” this doc shipped with perl v5.26.1 and was dated 2018-03-17, so if you're reading this, a lil piece of 2018 is rooting for your SSL config. Stay secure, stay slay. πŸ’…πŸŒΈ

πŸ“¦ where this page comes from