You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding access control options, making the converter error if a
disallowed column/field is queried.
Previously this library has been insecure by default, users could easily
make the mistake of opening up their entire database. This change makes
it required to supply at least one access control option.
New options:
- `filter.WithAllowAllColumns()`
Allow filtering of all columns, same as the previous behaviour
- `filter.WithAllowColumns(...)`
Allow only selected columns
- `filter.WithDisallowColumns(...)`
Disallow certain columns, used in combination with WithAllowAllColumns()
and WithNestedJSONB().
Note: This change is not backwards compatible! ⚠️
0 commit comments