knox-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Roberts <>
Subject Re: Impersonate/ProxyUser through Knox?
Date Sat, 01 Sep 2018 19:30:09 GMT
Larry – How about inheriting so the user has the same rights they would have if talking directly
to the service.



That enables ‘someservice’ to impersonate larry & sean for services which use core-site:hadoop.proxyuser.

When talking to any of those services through Knox it could make sense for Knox to respect
that configuration, allowing them to impersonate for those services&users though Knox.

Sean Roberts

From: larry mccay <>
Reply-To: "" <>
Date: Saturday, 1 September 2018 at 20:21
To: "" <>
Subject: Re: Impersonate/ProxyUser through Knox?

Hi Sean -

The mechanism for doing such impersonation is through identity assertion providers.
We have a number of them out of the box.

In order to do this with the same sort of validation and trust configuration, a new one would
likely be needed that took such configuration.
You would then assert the effective user as the user in the header or query param that you
are checking.

I don't think that using the typical<> or doas query params
will work since we currently scrub any incoming requests of such impersonation attempts as
it could be an attempt to spoof another identity by the client.

We could also look into providing the trusted proxy config on top of the HadoopAuthProvider
but that would make such impersonation be tightly coupled to that provider. Maybe that makes
sense since it is a Hadoop specific pattern but at the same time - much of the use of Knox
is to avoid having to use kerberos.

Anyway, you can certainly file a JIRA for a feature and we can discuss the usecases more in
depth there.



On Fri, Aug 31, 2018 at 5:04 PM Sean Roberts <<>>
David – Would you agree that this is a valid feature request?

Hortonworks docs suggest replacing HttpFs with Knox, but this is a use case where Knox cannot
replace HttpFs which has its own proxyuser functionality.

Sean Roberts

From: David Villarreal <<>>
Date: Friday, 31 August 2018 at 21:38
To: Sean Roberts <<>>,
"<>" <<>>
Subject: Re: Impersonate/ProxyUser through Knox?

Hi Sean,

Proxy/Impersonation is configured on the Hadoop side.  And knox user/principal impersonates
users.  I think the answer to this question is no….   Knox does not have its own proxy impersonation

What I know Knox does have is

From: Sean Roberts <<>>
Date: Friday, August 31, 2018 at 12:43 PM
To: "<>" <<>>
Subject: Impersonate/ProxyUser through Knox?

Knox experts – Does Knox provide impersonation/proxyuser functionality like direct WebHDFS
connections (hadoop.proxyuser.service-user.users) and HttpFS (httpfs.proxyuser.service-user.users)?

For example:

-          “service-user” authenticates to Knox, then requests to run commands as “normal-user”.

Sean Roberts
View raw message