Skip to content

cleanup the http header matching the jwt2header pattern #5

Open
@epourail

Description

@epourail

This improvement should fix the following issue:

Context:
In case my upstream performs operations on a custom HTTP header "x-kong-jwt-claim-dummy" (in theory, extracted from the bearer)

Scenario

  1. In the input request, I add a custom header "x-kong-jwt-claim-dummy" (matching the jwt2header pattern)
  2. In the input request, the bearer token used does not have the claim "dummy"

Result
The upstream will receive the "x-kong-jwt-claim-dummy" header and trigger the operations

Expected Result
The upstream should not receive the header

Solution
To improve the security, you should cleanup the HTTP headers of the input request matching the pattern "x-kong-jwt-claim"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions