Nic Klaassen
ec046e1a0e
feat: add regexp.match to access request filter and where expressions ( #40568 )
...
This PR updates the parsers for the role
`spec.allow.request.thresholds.filter` and `spec.allow.review.where`
expression fields to support a new function `regexp.match(list, re)`.
It follows the typical teleport style following from role templates,
`where` expressions, login rules, and label expressions:
- `list` can be a `[]string` or a `string` (a single string is treated
as a list of length 1).
- `re` can be a glob pattern like `example-*` or a proper regex like
`^example-.*$` when surrounded by `^$`.
Some examples are included in the docs and tests.
I have switched from using `NewJSONBoolParser` to new dedicated parsers
based on `typical`. These should have better performance in terms of
speed and memory, be easier to extend in the future, and provide better
error messages when users write invalid expressions.
These were the only uses of `NewJSONBoolParser`, so it has been removed.
Changelog: add `regexp.match` to access request `filter` and `where`
expressions
2024-04-18 00:17:02 +00:00
..
2024-04-17 13:05:01 +00:00
2024-04-02 16:52:55 +00:00
2024-04-10 21:15:09 +00:00
2023-12-01 17:48:14 +00:00
2024-03-04 19:28:22 +00:00
2024-03-14 07:51:11 +00:00
2024-04-02 16:52:55 +00:00
2024-04-02 15:51:17 +00:00
2024-03-27 18:21:55 +00:00
2024-03-27 18:21:55 +00:00
2024-04-18 00:17:02 +00:00
2024-04-18 00:17:02 +00:00
2024-01-11 00:57:52 +00:00
2024-02-29 18:40:33 +00:00
2024-01-12 11:01:50 +00:00
2024-01-12 11:01:50 +00:00
2023-12-01 17:48:14 +00:00
2023-12-14 19:17:53 +00:00
2024-04-10 10:28:05 +00:00
2023-12-08 18:05:38 +00:00
2024-03-28 22:53:01 +00:00
2024-02-26 11:43:51 +00:00
2023-12-14 19:17:53 +00:00
2024-03-07 02:02:11 +00:00
2024-03-26 17:03:08 +00:00
2024-03-15 19:55:57 +00:00
2023-12-14 19:17:53 +00:00
2023-12-19 11:24:14 +00:00
2024-02-16 09:34:55 +00:00
2024-04-03 08:28:11 +00:00
2024-04-04 11:10:40 +00:00
2023-12-14 19:17:53 +00:00
2023-12-01 17:48:14 +00:00
2023-12-14 19:17:53 +00:00
2023-12-14 19:17:53 +00:00
2023-12-01 17:48:14 +00:00
2023-12-01 17:48:14 +00:00
2023-12-01 17:48:14 +00:00
2024-04-10 17:18:58 +00:00
2023-12-01 17:48:14 +00:00
2023-12-01 17:48:14 +00:00
2023-12-01 17:48:14 +00:00
2023-12-01 17:48:14 +00:00
2023-12-01 17:48:14 +00:00
2024-02-12 17:31:42 +00:00
2024-03-28 17:28:52 +00:00
2023-12-01 17:48:14 +00:00
2023-12-14 19:17:53 +00:00
2023-12-01 17:48:14 +00:00
2023-12-01 17:48:14 +00:00
2023-12-01 17:48:14 +00:00
2024-01-12 21:50:33 +00:00
2024-04-10 10:28:05 +00:00
2023-12-01 17:48:14 +00:00
2023-12-01 17:48:14 +00:00
2023-12-14 19:17:53 +00:00
2023-12-01 17:48:14 +00:00
2024-03-15 18:08:35 +00:00
2023-12-01 17:48:14 +00:00
2024-01-18 18:07:07 +00:00
2024-02-29 00:10:39 +00:00
2024-03-20 16:03:39 +00:00
2023-12-01 17:48:14 +00:00
2024-03-27 13:07:47 +00:00
2024-01-10 15:27:54 +00:00
2024-01-10 15:27:54 +00:00
2023-12-01 17:48:14 +00:00
2023-12-14 19:17:53 +00:00
2024-01-30 18:36:34 +00:00
2024-03-28 17:28:52 +00:00
2024-03-28 17:28:52 +00:00
2023-12-14 19:17:53 +00:00
2023-12-14 19:17:53 +00:00
2024-03-30 01:13:15 +00:00
2024-03-27 13:40:05 +00:00
2024-03-01 18:48:55 +00:00
2024-03-30 01:13:15 +00:00
2023-12-01 17:48:14 +00:00
2023-12-14 19:17:53 +00:00
2023-12-01 17:48:14 +00:00
2023-12-14 19:17:53 +00:00
2024-04-03 17:17:37 +00:00
2024-04-18 00:17:02 +00:00
2023-12-14 19:17:53 +00:00
2023-12-01 17:48:14 +00:00
2023-12-14 19:17:53 +00:00
2023-12-01 17:48:14 +00:00
2023-12-14 19:17:53 +00:00
2024-04-02 11:24:33 +00:00
2024-02-29 18:50:56 +00:00
2024-04-17 13:05:01 +00:00
2023-12-01 17:48:14 +00:00
2023-12-01 17:48:14 +00:00
2023-12-14 19:17:53 +00:00
2024-02-09 14:39:12 +00:00
2024-03-19 21:12:42 +00:00
2023-12-14 19:17:53 +00:00
2023-12-01 17:48:14 +00:00
2024-04-04 11:10:40 +00:00
2023-12-14 19:17:53 +00:00
2024-03-04 19:28:22 +00:00
2024-03-25 17:38:49 +00:00
2024-01-12 17:43:29 +00:00
2024-02-23 14:11:32 +00:00
2023-12-01 17:48:14 +00:00
2024-03-14 13:04:29 +00:00
2024-03-15 05:00:45 +00:00
2023-12-01 17:48:14 +00:00
2023-12-01 17:48:14 +00:00
2023-12-01 17:48:14 +00:00
2023-12-14 19:17:53 +00:00
2023-12-14 19:17:53 +00:00
2024-04-15 13:24:33 +00:00
2024-04-15 13:24:33 +00:00
2023-12-01 17:48:14 +00:00
2024-02-07 19:54:00 +00:00
2024-04-02 15:51:17 +00:00
2023-12-14 19:17:53 +00:00
2023-12-14 19:17:53 +00:00
2023-12-08 18:05:38 +00:00
2023-12-14 19:17:53 +00:00
2024-01-23 14:11:51 +00:00
2023-12-01 17:48:14 +00:00
2023-12-01 17:48:14 +00:00
2024-04-10 21:15:09 +00:00
2024-01-30 18:36:34 +00:00
2023-12-14 19:17:53 +00:00
2023-12-14 19:17:53 +00:00
2023-12-14 19:17:53 +00:00
2024-03-28 22:53:01 +00:00
2024-03-14 13:04:29 +00:00
2023-12-01 17:48:14 +00:00
2023-12-01 17:48:14 +00:00
2023-12-01 17:48:14 +00:00
2024-03-21 18:29:11 +00:00
2023-12-22 19:49:39 +00:00
2024-02-12 21:17:02 +00:00
2023-12-01 17:48:14 +00:00
2023-12-14 19:17:53 +00:00
2023-12-01 17:48:14 +00:00
2023-12-01 17:48:14 +00:00
2023-12-08 18:05:38 +00:00
2023-12-08 18:05:38 +00:00
2024-02-02 15:59:24 +00:00
2024-04-15 13:24:33 +00:00
2023-12-01 17:48:14 +00:00