kubectl-proxy changes http-header-keys to capitalized #1673
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
priority/awaiting-more-evidence
Lowest priority. Possibly useful, but not yet enough support to actually get it done.
What happened:
![image](https://private-user-images.githubusercontent.com/36868900/377688331-37970f81-e12a-468c-8ab6-6e14f86d1c0e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk3MzI2MTgsIm5iZiI6MTczOTczMjMxOCwicGF0aCI6Ii8zNjg2ODkwMC8zNzc2ODgzMzEtMzc5NzBmODEtZTEyYS00NjhjLThhYjYtNmUxNGY4NmQxYzBlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDE4NTgzOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTcwMDdiYmExYTllMWUyZTVlYmRiNmJkMGQ4YWM1OGE0ZTA0ZmNjMjU1YTE5NGUxYjE2MzgzMmJlM2QyNjVkOGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.8KBzzRlQthjEPmxKDHZf29CB2MCaSaXVMeTi7TvNgUw)
When I am using
kubectl proxy
, the past proxy http request header keys are converted to initial capital.What you expected to happen:
HTTP/1.1
According to RFC 7230, section 3.2:
HTTP/2.0
Quoting RFC 7540, section 8.1.2:
How to reproduce it (as minimally and precisely as possible):
Use
kubectl proxy
and log all headers in svc-podsAnything else we need to know?:
Happened both in aks and local k3s.
I'm not sure if this is a bug or intended?
Environment:
aks
local
The text was updated successfully, but these errors were encountered: