You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/policy-schema.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -440,7 +440,7 @@ REST rules match HTTP requests by method, path, and optional query parameters.
440
440
| Field | Type | Required | Description |
441
441
|---|---|---|---|
442
442
| `method` | string | Yes | HTTP method, such as `GET` or `POST`. `*` matches any method. |
443
-
| `path` | string | Yes | URL path glob. `*` and `**` match zero or more characters and may cross `/`. `?` matches one character. Bracket classes such as `[0-9]` and `[!0]` are supported. |
443
+
| `path` | string | Yes | URL path glob. `*` matches zero or more characters within one path segment, and `**` matches zero or more characters across segments. `?` matches one character. Bracket classes such as `[0-9]` and `[!0]` are supported. |
444
444
| `query` | map | No | Query parameter matchers keyed by decoded, case-sensitive name. A matcher is a glob string (`tag: "foo-*"`) or an object with `any` (`tag: { any: ["foo-*", "bar-*"] }`). |
445
445
446
446
In an allow rule, every duplicate value for a configured query key must match.
@@ -467,9 +467,9 @@ endpoints:
467
467
any: ["v1.*", "v2.*"]
468
468
deny_rules:
469
469
- method: POST
470
-
path: "/repos/*/pulls/*/reviews"
470
+
path: "/repos/*/*/pulls/*/reviews"
471
471
- method: "*"
472
-
path: "/repos/*/rulesets"
472
+
path: "/repos/*/*/rulesets"
473
473
```
474
474
475
475
### WebSocket Rules
@@ -799,7 +799,7 @@ Different policy fields use different wildcard boundaries:
799
799
|---|---|---|
800
800
| Endpoint `host` | Case-insensitive DNS name or IP comparison. | DNS `*` matches one label and `**` matches one or more labels. Validation restricts wildcard placement. |
801
801
| Binary `path` | Canonical executable or trusted ancestor path. | Symlinks resolve to canonical identity. `*` matches within a path segment and `**` crosses directories. Identity enforcement depends on trusted runtime configuration. |
802
-
| REST or WebSocket request `path` | Case-sensitive URL path glob. | Both `*` and `**` can cross `/`, unlike common shell globs. |
802
+
| REST or WebSocket request `path` | Case-sensitive URL path glob. | `*` matches within one path segment and `**` crosses `/`. `/repos/**` does not match `/repos` itself. |
803
803
| Query value | Case-sensitive decoded value glob. | In allow rules, every duplicate value for a configured key must match. |
804
804
| Middleware `endpoints` | Case-insensitive DNS name comparison. | Same as endpoint `host`. Brace alternates are rejected. |
0 commit comments