kubernetes / ingress-nginx

Ingress-NGINX Controller for Kubernetes
https://kubernetes.github.io/ingress-nginx/
Apache License 2.0
17.22k stars 8.2k forks source link

Configuring an Ingress for Custom Header Transmission to Upstream Server #10939

Open sajith-madhusanka opened 7 months ago

sajith-madhusanka commented 7 months ago

What do you want to happen?

My requirement is to configure an ingress to send the client certificate to the upstream server in a custom HTTP header. I have followed the instructions in [1] to send a custom header to the upstream server using the following configuration.

apiVersion: v1
data:
  X-CLIENT-CERTIFICATE: $ssl_client_escaped_cert
kind: ConfigMap
metadata:
  name: custom-headers
  namespace: ingress-nginx

Since this applies globally to all the ingresses deployed in my deployment, I need a way to configure a specific ingress to send custom headers to the upstream server.

[1] https://kubernetes.github.io/ingress-nginx/examples/customization/custom-headers/

Thanks & Regards Sajith M

k8s-ci-robot commented 7 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.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
github-actions[bot] commented 6 months ago

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.

sajith-madhusanka commented 1 month ago

Hi Team,

Any updates regarding this?

Thanks & Regards Sajith M