Stephan Renatus
cb54e9c14f
runtime: rule labels metadata processing follow-ups ( #8613 )
...
❗ We now parse rego metadata annotations by default.
Rule annotations now support a `labels` field. During policy eval,
labels from all successfully evaluated rules are collected and included
in each decision log entry as a top-level `rule_labels` array. Each
element preserves the label map from one evaluated rule. Exact
duplicates are omitted.
```rego
# METADATA
# labels:
# severity: low
# team: platform
allow if input.role == "admin"
```
The resulting decision log entry will contain:
```json
{"rule_labels": [{"severity": "low", "team": "platform"}]}
```
---------
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com >
2026-05-08 15:00:26 +00:00
..
2025-12-16 11:47:04 +01:00
2026-05-07 14:43:08 +02:00
2026-01-08 10:14:53 +01:00
2026-02-10 20:57:12 +00:00
2024-12-12 15:09:03 +01:00
2025-05-12 13:57:48 +02:00
2026-05-08 15:00:26 +00:00
2025-12-16 11:47:04 +01:00
2026-04-29 13:08:15 +00:00
2025-10-10 17:51:02 +02:00
2026-05-06 14:32:33 +02:00
2026-04-30 15:24:12 +02:00
2026-04-29 14:54:40 +02:00
2025-10-28 22:30:52 +01:00
2026-03-30 18:12:57 +02:00
2025-11-27 10:41:37 +01:00
2026-02-09 13:37:02 +01:00
2026-05-06 14:32:33 +02:00
2026-05-05 19:59:10 +02:00
2025-02-24 16:28:41 +01:00
2025-11-19 09:59:49 -06:00
2024-12-12 15:09:03 +01:00
2026-02-06 10:33:33 +01:00
2025-07-23 22:47:09 +02:00
2024-12-12 15:09:03 +01:00
2024-12-12 15:09:03 +01:00
2026-04-22 13:32:30 +00:00
2024-12-12 15:09:03 +01:00
2025-11-28 14:23:07 +01:00
2024-12-12 15:09:03 +01:00
2026-05-05 09:48:50 +02:00
2026-05-05 09:48:50 +02:00
2026-02-12 15:51:34 +00:00
2026-03-10 14:48:56 +01:00
2026-03-10 14:48:56 +01:00
2026-03-10 14:48:56 +01:00
2025-10-10 17:51:02 +02:00
2026-04-29 13:08:15 +00:00
2025-02-14 14:00:33 +01:00
2025-05-12 13:57:48 +02:00
2026-05-07 14:43:08 +02:00
2026-03-30 18:12:57 +02:00
2026-03-30 18:12:57 +02:00
2026-01-13 10:40:44 +01:00
2024-12-12 15:27:34 +01:00
2025-11-27 10:41:37 +01:00
2026-05-08 15:00:26 +00:00
2026-05-08 15:00:26 +00:00
2025-10-06 22:26:50 +02:00
2026-01-08 10:14:53 +01:00
2026-02-02 20:53:28 +01:00
2026-03-06 22:07:35 +00:00
2026-01-16 13:29:10 +01:00
2026-01-22 15:28:00 +01:00
2026-05-07 14:43:08 +02:00
2025-05-20 23:12:13 +02:00
2026-05-07 14:43:08 +02:00
2025-07-23 22:12:13 +02:00
2025-12-18 11:04:18 +00:00
2026-02-12 08:42:05 +01:00
2025-02-14 14:00:33 +01:00
2026-01-13 10:40:44 +01:00
2026-04-24 16:35:39 +00:00
2025-10-10 17:51:02 +02:00
2026-05-07 14:43:08 +02:00
2026-01-08 10:14:53 +01:00
2026-04-24 16:35:39 +00:00
2026-04-24 16:35:39 +00:00
2026-04-29 11:44:34 -05:00
2026-04-29 11:44:34 -05:00
2026-05-07 14:43:08 +02:00
2025-12-25 22:40:19 +01:00
2026-04-24 16:35:39 +00:00
2026-05-05 09:48:50 +02:00
2024-12-12 15:09:03 +01:00
2026-01-05 09:59:56 +01:00
2026-02-24 21:51:04 +00:00
2026-04-30 16:29:23 +02:00
2025-11-27 10:41:37 +01:00
2025-11-27 10:41:37 +01:00
2026-05-07 14:43:08 +02:00