Commit 9eb9081
fix(acl): validate external_user_label_field JSONPath syntax in check_schema
Invalid JSONPath expressions are now rejected at config time via
jp.parse(). This prevents misconfigured routes from silently allowing
all requests through when using deny-only ACL policies.
Add TEST 53: schema rejects invalid JSONPath in external_user_label_field.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent a94c471 commit 9eb9081
2 files changed
Lines changed: 50 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
209 | 215 | | |
210 | 216 | | |
211 | 217 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1445 | 1445 | | |
1446 | 1446 | | |
1447 | 1447 | | |
1448 | | - | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
1449 | 1490 | | |
1450 | 1491 | | |
1451 | 1492 | | |
| |||
1463 | 1504 | | |
1464 | 1505 | | |
1465 | 1506 | | |
1466 | | - | |
| 1507 | + | |
1467 | 1508 | | |
1468 | 1509 | | |
1469 | 1510 | | |
| |||
1481 | 1522 | | |
1482 | 1523 | | |
1483 | 1524 | | |
1484 | | - | |
| 1525 | + | |
1485 | 1526 | | |
1486 | 1527 | | |
1487 | 1528 | | |
| |||
0 commit comments