-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #14. Proxy in workload job to use enable permission checking. …
…(PR #18)
- Loading branch information
Showing
14 changed files
with
168 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
dynamometer-infra/src/main/java/com/linkedin/dynamometer/AllowAllImpersonationProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* Copyright 2017 LinkedIn Corporation. All rights reserved. Licensed under the BSD-2 Clause license. | ||
* See LICENSE in the project root for license information. | ||
*/ | ||
package com.linkedin.dynamometer; | ||
|
||
import org.apache.hadoop.conf.Configured; | ||
import org.apache.hadoop.security.UserGroupInformation; | ||
import org.apache.hadoop.security.authorize.ImpersonationProvider; | ||
|
||
|
||
/** | ||
* An {@link ImpersonationProvider} that indiscriminately allows all users | ||
* to proxy as any other user. | ||
*/ | ||
public class AllowAllImpersonationProvider extends Configured implements ImpersonationProvider { | ||
|
||
public void init(String configurationPrefix) { | ||
// Do nothing | ||
} | ||
public void authorize(UserGroupInformation user, String remoteAddress) { | ||
// Do nothing | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
dynamometer-infra/src/test/resources/conf/etc/hadoop/core-site.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<!-- | ||
Copyright 2017 LinkedIn Corporation. All rights reserved. Licensed under the BSD-2 Clause license. | ||
See LICENSE in the project root for license information. | ||
--> | ||
<configuration> | ||
<property> | ||
<name>hadoop.security.impersonation.provider.class</name> | ||
<value>com.linkedin.dynamometer.AllowAllImpersonationProvider</value> | ||
</property> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.