Every call to `/api/v4/internal/authorized_keys?key=` is spamming the logs with Hashie errors
The Hashie gem (required by Grape) is throwing errors whenever /api/v4/internal/authorized_keys?key=
is called (which is a lot on gitlab.com). This is caused by the use of a hash key named "key" in lib/api/internal.rb
.
We're seeing millions upon millions of these errors per day in the production.log
files.
This also happens in api/v3/events
with a key named "sort".
Grape 1.0 (released July 3rd) no longer uses Hashie. So upgrading would disable these errors. I think the only alternatives would be to rename the keys or modify the Grape gem to disable warnings.
https://github.com/ruby-grape/grape/issues/1643
As this is something that is clogging up our logs I'd like to get this fixed sooner rather than later.