Make Nginx auth_request module to be able to expose auth error body when needed #11182
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
needs-priority
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
Nginx auth_request module is being shipped by Nginx and it is being used in
ingress-nginx
[nginx, nginx-1.25 ]. This module, IMO, has a limitation which is lack of on-demand transparency when requests are not successfully authenticated.This issue also is related to this very same limitation of Nginx
auth_request
module. It also demands to expose auth error response body to the end user.I have modified nginx
auth_request
module to let authentication error body expose to the caller. Here is the link : https://github.com/d-fal/nginx-module-dev-guide/tree/main/contrib/auth-module-with-bodywith this change,
ingress-nginx
will have a new boolean directive calledauth_request_mask_body
which lets Nginx to be transparent aboutauth_request
module auth error body.When being used, it works as follow:
This module can be incorporated in
ingress-nginx
and proper annotations can be added accordingly. What do you think?The text was updated successfully, but these errors were encountered: