Event Timeline
Comment Actions
Are we missing something in config here? ie key to be defined? I added it in scap/vars.yaml, but result is same.
Comment Actions
Related code:
let clientIp = req.headers[ app.ratelimiter._options.key ] || req.headers[ 'x-forwarded-for' ] || req.connection.remoteAddress;
Comment Actions
Actually, you cannot define the key in the ratelimiter section of the config. You should either define it in the service section or hard-code the header you are using.
Comment Actions
https://gerrit.wikimedia.org/r/#/c/mediawiki/services/cxserver/+/480939 Move the ratelimiter rate and key options to service configuration