MySQL Compile API의 문자열 내장 함수 거부
startswith, endswith 또는 contains를 사용하는 정책생성된 LIKE 필터는 MySQL의 기본 collation이 대소문자와 악센트를 구분하지 않아 정책에서 허용하지 않은 행까지 일치시킬 수 있었습니다. 이제 이러한 정책은 필터를 생성하는 대신 컴파일에 실패합니다.
원문 보기
### 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