Skip to content

x-forwarded-prefix is a boolean annotation, but documented as string #3670

Closed
@denisw

Description

@denisw

The documentation for the x-forwarded-prefix says:

To add the non-standard X-Forwarded-Prefix header to the upstream request with a string value, the following annotation can be used:

However, according to the code, x-forwarded-prefix is parsed as a boolean value that expects a "true". It seems like the docs need updating.

# What is documented:
nginx.ingress.kubernetes.io/x-forwarded-prefix: "/path"

# The reality:
nginx.ingress.kubernetes.io/x-forwarded-prefix: "true"

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions