Commit graph

  • d8aece9d70 use csprng properly, dont need full random #4 claude/ddos-protection-challenge-01CMAtrK6Dt24x9Q3v6Gz9fS Luna 2025-11-23 17:55:37 -03:00
  • 89dc5da94e unify stylesheets Luna 2025-11-23 17:53:26 -03:00
  • 0b0a9c7aaa ddos: use csprng for tokens Luna 2025-11-23 17:48:57 -03:00
  • 2cbf796aef make pow test fail much earlier Luna 2025-11-23 17:33:27 -03:00
  • 9dd95c82a7 move more things to test ngx Luna 2025-11-23 17:26:54 -03:00
  • 37e9af217f use metatable so ngx.shared is created dynamically Luna 2025-11-23 17:23:21 -03:00
  • 4795879278 configure shared maps globally Luna 2025-11-23 17:23:00 -03:00
  • be059b26c1 make tests actually finish challenges quickly Luna 2025-11-23 00:30:17 -03:00
  • fbe238d3c1 Add mock resty.sha256 and resty.string for testing Claude 2025-11-23 03:10:25 +00:00
  • 60c6c10b0f SECURITY: Implement server-side SHA-256 verification for PoW Claude 2025-11-23 02:59:14 +00:00
  • ea97689ee3 Fix cookie parsing: use Lua patterns instead of PCRE Claude 2025-11-22 23:22:37 +00:00
  • d8b1b861ab Add debug logging to diagnose token validation failures Claude 2025-11-22 23:20:55 +00:00
  • dd76d19b76 Fix test failures: use ngx._headers for cookie mocking Claude 2025-11-22 21:02:50 +00:00
  • 4ee83a023a Add ngx.req function mocks to all test classes Claude 2025-11-22 19:37:46 +00:00
  • b31357b037 Fix test setup: manually initialize module with ngx.shared Claude 2025-11-22 19:33:27 +00:00
  • a00c0f598a Fix test configs: provide all required schema fields Claude 2025-11-22 19:30:51 +00:00
  • 4cbd4e04ad Fix test setup: call resetNgx() before accessing ngx global Claude 2025-11-22 14:44:06 +00:00
  • 0ca555f646 Add configurable challenge types: button, question, and proof-of-work Claude 2025-11-22 05:08:10 +00:00
  • e5e6b219f2 Add configurable path-based protection to DDoS challenge module Claude 2025-11-22 04:34:47 +00:00
  • 40072ec6ff Add DDoS protection challenge module with honeypot Claude 2025-11-22 04:28:34 +00:00
  • b660156ef7 Merge pull request 'make wantedScripts an ordered list' (#3) mistress luna 2025-11-23 20:17:27 +00:00
  • c01c6d0ba1 Change wantedScripts to ordered list format #3 Claude 2025-11-22 04:37:40 +00:00
  • b7f63801d4 add CLAUDE.md Luna 2025-11-22 01:13:47 -03:00
  • 08f17f812b log when config is found Luna 2025-05-02 18:47:58 -03:00
  • 6e9f673d91 return 401 Luna 2025-05-02 18:47:54 -03:00
  • 6e3705a6df fix typos Luna 2025-05-02 18:44:53 -03:00
  • 8434492b18 add pleroma_restrict_unauthenticated_search.lua Luna 2025-05-02 18:43:27 -03:00
  • 2c1f155328 update README Luna 2024-02-16 17:56:06 -03:00
  • 84ff7bd1b6 update docs Luna 2024-02-16 02:13:37 -03:00
  • 7f8e86fbd8 lint pass Luna 2023-10-26 22:19:08 -03:00
  • 84cb21b26a Merge pull request 'add config file validation' (#2) from config-validation into mistress luna 2022-12-07 18:50:30 +00:00
  • 06b8173ecb only run config validations on init callback #2 config-validation Luna 2022-12-07 15:49:45 -03:00
  • 4d92a58349 add hook for init_by_lua_block Luna 2022-12-07 15:40:48 -03:00
  • 8354478e72 properly print config errors when loading config file Luna 2022-12-07 15:30:22 -03:00
  • 2d2a68b1c3 validate schema on module tests Luna 2022-12-07 15:26:11 -03:00
  • d0fba27097 add test for incorrect table schema Luna 2022-12-07 15:13:33 -03:00
  • 48917659ca fix validation for full tables Luna 2022-12-07 15:12:43 -03:00
  • fd59059101 add draft for config schema validation Luna 2022-12-07 14:57:07 -03:00
  • 4848d28014 README: update wording Luna 2022-12-07 02:03:23 -03:00
  • 219f606db7 README: update wording Luna 2022-12-07 02:02:43 -03:00
  • 8d2f3330af add install instructions Luna 2022-12-07 02:00:48 -03:00
  • fb43b80e6b show name of module that filtered request in logs Luna 2022-12-07 01:49:00 -03:00
  • 0c0b842370 add result of open Luna 2022-12-07 01:35:57 -03:00
  • 4ff5a915c9 emit log on not found Luna 2022-12-07 01:34:32 -03:00
  • 374871578d add Makefile Luna 2022-12-06 18:25:26 -03:00
  • d16e31c675 add config file loading Luna 2022-12-06 18:24:25 -03:00
  • c15abe3c05 fix main script usage of ctx Luna 2022-12-06 15:54:16 -03:00
  • 5d21c975ea add test suite Luna 2022-12-06 15:53:20 -03:00
  • 06924d10f6 let filters customize status code and body Luna 2022-12-06 14:52:20 -03:00
  • a747fe8182 add initialization callback for filters Luna 2022-12-06 14:52:09 -03:00
  • eefdecb1e9 use request uri and regex to choose callbacks Luna 2022-12-06 13:48:09 -03:00
  • 766b1d2aff add draft codes Luna 2022-12-06 00:36:15 -03:00
  • 1bd95f289d add README Luna 2022-12-03 16:08:24 -03:00
  • 3f3714aa97 Initial commit luna 2022-12-03 19:06:50 +00:00