Open grinish21 opened 3 months ago
This issue is currently awaiting triage.
If Ingress contributors determines this is a relevant issue, they will accept it by applying the triage/accepted
label and provide further guidance.
The triage/accepted
label can be added by org members by writing /triage accepted
in a comment.
/remove-kind bug /kind support
Can you test if this example helps in any ways https://kubernetes.github.io/ingress-nginx/examples/customization/custom-errors/
let me try that and get back.
/riage needs-information
This is stale, but we won't close it automatically, just bare in mind the maintainers may be busy with other tasks and will reach your issue ASAP. If you have any question or request to prioritize this, please reach #ingress-nginx-dev
on Kubernetes Slack.
What happened:
Need to send a custom response body when there is an error in auth service response like 401. This previous issue is closed https://github.com/kubernetes/ingress-nginx/issues/4314 but i could not find the answer.
My annotations
The
auth-url
responds with a json body but i always get the html back.What you expected to happen:
to respond back with a custom response body than default 401 html page.
NGINX Ingress controller version (exec into the pod and run nginx-ingress-controller --version.):
Kubernetes version (use
kubectl version
):How to reproduce this issue:
using the example here -> https://kubernetes.github.io/ingress-nginx/examples/auth/external-auth/ if httpbin auth api responds with a json body with some content for 401 it wont show up rather the caller will see the default html page
Anything else we need to know: