rbac-role-based-access-control
See this example.
See this example.
Planned, see #478
Variables bound to groovy context: partition, timestampMs, keyAsText, valueAsText, header, key (json if possible), value (json if possible).
JSON parsing logic:
Key and Value (if they can be parsed to JSON) they are bound as JSON objects, otherwise bound as nulls.
Sample filters:
keyAsText != null && keyAsText ~"([Gg])roovy"
- regex for key as a stringvalue.name == "iS.ListItemax" && value.age > 30
- in case value is jsonvalue == null && valueAsText != null
- search for values that are not nulls and are not jsonheaders.sentBy == "some system" && headers["sentAt"] == "2020-01-01"
- multiline filters are also allowed:
def name = value.name
def age = value.age
name == "iliax" && age == 30
Yes, you can. Swagger declaration is located here.