Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

NGINX Ingress Controller 4.11.5 Not Forwarding Authorization Header Despite Configuration #13163

@mezzinea

Description

@mezzinea

Description
After upgrading from NGINX Ingress Controller 4.7.1 to 4.11.5, Basic Authentication headers are not being forwarded to the backend FastAPI application, despite explicit configuration. The headers work when NGINX auth is disabled.

Current Behavior

  • With auth annotations enabled, requests to backend return 401
  • $http_authorization appears empty in forwarded requests proxy_set_header Authorization ""; inside nginx.conf file
  • Works perfectly when removing NGINX auth annotations

Expected Behavior
NGINX should forward original Authorization header after performing its own authentication.

Reproduction Steps

  1. Apply this ingress configuration:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    nginx.ingress.kubernetes.io/auth-type: basic
    nginx.ingress.kubernetes.io/auth-secret-type: auth-map
    nginx.ingress.kubernetes.io/auth-realm: Auth Required - ProfilesAPI
    nginx.ingress.kubernetes.io/auth-secret: ns/secret
    nginx.ingress.kubernetes.io/configuration-snippet: |
      proxy_set_header Authorization $http_authorization;
      proxy_pass_header Authorization;

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-kindIndicates a PR lacks a `kind/foo` label and requires one.needs-priorityneeds-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions