PleromaFE RemoteIP proxy entry not validated before saving
I have set a wrong value apparently for Pleroma.Plugs.RemoteIp
Proxies
and it killed my pleroma (running up-to-date stable branch).
Request: GET /api/v1/notifications?since_id=48211&with_muted=true&limit=20
** (exit) an exception was raised:
** (RuntimeError) Invalid CIDR: 10.0.0.3/24
(inet_cidr 1.0.4) lib/inet_cidr.ex:105: InetCidr.parse_cidr!/2
(inet_cidr 1.0.4) lib/inet_cidr.ex:21: InetCidr.parse/2
(elixir 1.10.4) lib/enum.ex:1396: Enum."-map/2-lists^map/1-0-"/2
(pleroma 2.1.2) lib/pleroma/plugs/remote_ip.ex:50: Pleroma.Plugs.RemoteIp.remote_ip_opts/1
(pleroma 2.1.2) lib/pleroma/plugs/remote_ip.ex:35: Pleroma.Plugs.RemoteIp.call/2
(pleroma 2.1.2) lib/pleroma/web/endpoint.ex:5: Pleroma.Web.Endpoint.plug_builder_call/2
(pleroma 2.1.2) lib/pleroma/web/endpoint.ex:5: Pleroma.Web.Endpoint.call/2
(phoenix 1.4.17) lib/phoenix/endpoint/cowboy2_handler.ex:42: Phoenix.Endpoint.Cowboy2Handler.init/4
Admin won't work either and throwed errors 500, had to drop the config from pgsql and restart pleroma.
Also it doesn't seems to like any of my entries, what am I doing wrong there ?
** (MatchError) no match of right hand side value: ["10.0.0.3"]
** (RuntimeError) Invalid CIDR: 10.0.0.3/24
Edited by dashie