You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/05/11 07:45:00 UTC
[jira] [Work logged] (HADOOP-18120) Hadoop auth does not handle HTTP Headers in a case-insensitive way
[ https://issues.apache.org/jira/browse/HADOOP-18120?focusedWorklogId=768874&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-768874 ]
ASF GitHub Bot logged work on HADOOP-18120:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 11/May/22 07:44
Start Date: 11/May/22 07:44
Worklog Time Spent: 10m
Work Description: jacktheone opened a new pull request, #4300:
URL: https://github.com/apache/hadoop/pull/4300
### Description of PR
According to RFC-2616 HTTP Headers are case-insensitive. There are proxies / load balancers (e.g.: newer versions of HA-proxy) which deliberately make some of the HTTP headers lower-case results in an authentication / authorization failure inside the Hadoop codebase.
This patch is responsible for resolving the authentication issue.
### How was this patch tested?
Tested on our test cluster where we could reproduce the original issue.
I also ran the corresponding old and new unit tests.
Issue Time Tracking
-------------------
Worklog Id: (was: 768874)
Remaining Estimate: 0h
Time Spent: 10m
> Hadoop auth does not handle HTTP Headers in a case-insensitive way
> ------------------------------------------------------------------
>
> Key: HADOOP-18120
> URL: https://issues.apache.org/jira/browse/HADOOP-18120
> Project: Hadoop Common
> Issue Type: Bug
> Components: auth
> Reporter: Daniel Fritsi
> Priority: Critical
> Attachments: HADOOP-18120-002.patch, HADOOP-18120-003.patch, HADOOP-18120.patch
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> According to [RFC-2616|https://www.ietf.org/rfc/rfc2616.txt] HTTP Headers are case-insensitive. There are proxies / load balancers (e.g.: newer versions of HA-proxy) which deliberately make some of the HTTP headers lower-case results in an authentication / authorization failure inside the Hadoop codebase.
> I've created a small patch (I'm from Cloudera): [^hadoop-auth-headers.patch]. This resolves our authentication issue. Can someone please have a look at this?
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org