Commit Graph
21 Commits
Author SHA1 Message Date
Blacks-Army 8e2f9ea5ef Add HTTP method matching to resource rules
Resolves #1408.

A rule with match "METHOD" carries a comma-separated list of HTTP
methods in its value, e.g. "POST,PUT", and applies when the request
method is in that list. This makes it possible to leave GET public
while sending POST and PUT to auth, which rules could not express
before because both share the same path.

No new columns: the methods live in the existing rule value, so this
needs no migration and every existing rule keeps working unchanged.

The UI offers the ten registered methods. Blueprints and the API
accept any method token, so extension methods such as the WebDAV verbs
can be targeted too, and the UI preserves them when a rule set that
way is edited later.
2026-09-19 20:00:01 +02:00
Shubham Singh 0275f44056 Fix Punycode domain validation 2026-07-19 13:45:44 +05:30
Fred KISSIE e54bd25516 🚧 add country is not rule 2026-06-25 20:28:57 +02:00
copilot-swe-agent[bot] e5e7b79712 test: add normalized ASN validation coverage 2026-06-22 15:11:51 -04:00
copilot-swe-agent[bot] de48a0529e refactor: normalize ASN validation value once 2026-06-22 15:11:51 -04:00
copilot-swe-agent[bot] 3f37408dae fix: allow ALL ASN values in policy rule validation 2026-06-22 15:11:51 -04:00
miloschwartz 3b675f7de1 policies and policy on resource structure in a good place 2026-06-07 12:19:33 -07:00
Owen f9b03943c3 Format all files 2025-12-09 10:56:14 -05:00
Lokowitz 58cf471bc4 fix z.coerce.number 2025-11-16 14:29:19 +00:00
Pallavi Kumari c004e969cb improve IPv6 validation to support all variants using ipaddr.js 2025-11-12 00:30:08 +05:30
Owen c2c907852d Chungus 2025-10-04 18:36:44 -07:00
Owen 2efd5c31ab Headers input working on resource 2025-09-11 13:58:12 -07:00
Owen 98a261e38c Pull up downstream changes 2025-07-13 21:57:24 -07:00
miloschwartz caded23b51 allow root path 2025-05-09 17:37:55 -04:00
Owen 33ff2fbf3b Allow matching parts of words in path
Resolves #228
2025-03-08 11:43:47 -05:00
miloschwartz 90366da61b allow hash in url path rule 2025-03-03 19:47:07 -05:00
Milo Schwartz d5a220a004 create target validator and add url validator 2025-02-14 16:46:46 -05:00
Owen 7797c6c770 Allow the chars from RFC 3986 2025-02-14 12:38:28 -05:00
Owen f61d442989 Allow . in path; resolves #199 2025-02-14 09:51:17 -05:00
Milo Schwartz 19273ddbd5 use zod for rules ip validation 2025-02-12 21:52:58 -05:00
Milo Schwartz fdf1dfdeba rules server validation, enabled toggle, fix wildcard 2025-02-11 23:59:13 -05:00