Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable request rate limiting using authenticated user #106

Open
geonus opened this issue Aug 6, 2020 · 0 comments
Open

Enable request rate limiting using authenticated user #106

geonus opened this issue Aug 6, 2020 · 0 comments

Comments

@geonus
Copy link

geonus commented Aug 6, 2020

Add a new variable, say $krb_remote_user, similar to $remote_user, which could be used as a key for request rate limiting in nginx configuration.
"
The $remote_user variable is extracted by nginx from the
Authorization header only when using Basic authentication. The
SPNEGO auth module tries to make it work by providing a fake
"Authorization: Basic ..." header to nginx, but this won't work
for limit_req because rate limiting happens before access checks
(and so before the SPNEGO auth module adds the fake header).
... solutions include adding its own variable to the
module, so it can be used at any time (much like $remote_user when
using Basic authentication)...
"
(http://mailman.nginx.org/pipermail/nginx/2020-August/059756.html)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant