Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

throw a warning when naxsi is enabled in an internal location #311

Closed
buixor opened this issue Aug 23, 2016 · 4 comments
Closed

throw a warning when naxsi is enabled in an internal location #311

buixor opened this issue Aug 23, 2016 · 4 comments
Assignees

Comments

@buixor
Copy link
Contributor

buixor commented Aug 23, 2016

naxsi does not parse requests to internal location (to avoid loops and other weird things).
However it would be cool to throw a warning when this happens.

@buixor buixor added this to the 0.56 milestone Aug 23, 2016
@buixor buixor self-assigned this Aug 23, 2016
@jvoisin jvoisin removed the Low prio label Oct 13, 2016
@buixor
Copy link
Contributor Author

buixor commented Nov 8, 2016

The warning will be thrown once at the first request that hits the internal location.
I could do this at every request, but it's - at most - just a clever way to fill up logs ?

Sadly, we can't do it at config time :/

@jvoisin
Copy link
Contributor

jvoisin commented Nov 8, 2016

  • How can one issue a request to an internal location?
    • This is documented here
  • What kind of decision would the admin take upon such a notification?

@buixor
Copy link
Contributor Author

buixor commented Nov 8, 2016

Naxsi will simply not treat a request that is tagged as "internal" (because of re-entrant aspect of nginx).
So it means the admin must configure naxsi so that the request is processed before the request is tagged as internal. It might be changed in the future to allow an admin to specifically allow this behavior. For now, we just want to throw a warning in the logs.

@buixor
Copy link
Contributor Author

buixor commented Nov 9, 2016

Commited a fix attempt a548d60 let's see :)

@buixor buixor closed this as completed Jun 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants