MySQL Compile API rejects string built-ins
startswith, endswith or containsThe generated LIKE filter could match rows the policy did not allow because MySQL’s default collation ignores case and accents. These policies now fail to compile instead of producing a filter.
Show release-note lines
### Compile API: no `startswith`, `endswith` or `contains` for MySQL ([#9624](https://github.com/open-policy-agent/opa/issues/9624)) Breaking change: the MySQL target rejects `startswith`, `endswith` and `contains`, as the SQLite target already did. They were translated to `LIKE`, which is case- and accent-insensitive in MySQL's default collations, so `startswith(input.fruits.name, "APP")` also matched `apple`. Policies using them now fail to compile for `application/vnd.opa.sql.mysql+json`, and for multitarget requests that include `mysql`. Reported by @kianwang0610, authored by @srenatus - Hardening of the MySQL Compile API target: use of `startswith`, `endswith` and `contains` built-in functions is rejectedgithub.com/open-policy-agent/opa/releases/tag/v1.23.0