[ 
https://issues.apache.org/jira/browse/NIFI-4917?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16400549#comment-16400549
 ] 

ASF GitHub Bot commented on NIFI-4917:
--------------------------------------

GitHub user markap14 opened a pull request:

    https://github.com/apache/nifi/pull/2552

    NIFI-4917: Externalize Keytab and Principal configuration from Proces…

    …sors to a Controller Service. This gives us the ability to allow users to 
interact with those Keytabs/Principals to which they've been given access 
without allowing them access to all Keytabs and Principals
    
    Thank you for submitting a contribution to Apache NiFi.
    
    In order to streamline the review of the contribution we ask you
    to ensure the following steps have been taken:
    
    ### For all changes:
    - [ ] Is there a JIRA ticket associated with this PR? Is it referenced 
         in the commit message?
    
    - [ ] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number 
you are trying to resolve? Pay particular attention to the hyphen "-" character.
    
    - [ ] Has your PR been rebased against the latest commit within the target 
branch (typically master)?
    
    - [ ] Is your initial contribution a single, squashed commit?
    
    ### For code changes:
    - [ ] Have you ensured that the full suite of tests is executed via mvn 
-Pcontrib-check clean install at the root nifi folder?
    - [ ] Have you written or updated unit tests to verify your changes?
    - [ ] If adding new dependencies to the code, are these dependencies 
licensed in a way that is compatible for inclusion under [ASF 
2.0](http://www.apache.org/legal/resolved.html#category-a)? 
    - [ ] If applicable, have you updated the LICENSE file, including the main 
LICENSE file under nifi-assembly?
    - [ ] If applicable, have you updated the NOTICE file, including the main 
NOTICE file found under nifi-assembly?
    - [ ] If adding new Properties, have you added .displayName in addition to 
.name (programmatic access) for each of the new properties?
    
    ### For documentation related changes:
    - [ ] Have you ensured that format looks appropriate for the output in 
which it is rendered?
    
    ### Note:
    Please ensure that once the PR is submitted, you check travis-ci for build 
issues and submit an update to your PR as soon as possible.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/markap14/nifi NIFI-4917

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/nifi/pull/2552.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2552
    
----
commit 2948dc03627a2add792f9e51bc48f2cb18f3fbe4
Author: Mark Payne <markap14@...>
Date:   2018-02-26T20:20:26Z

    NIFI-4917: Externalize Keytab and Principal configuration from Processors 
to a Controller Service. This gives us the ability to allow users to interact 
with those Keytabs/Principals to which they've been given access without 
allowing them access to all Keytabs and Principals

----


> Create a new Controller Service for specifying Keytabs
> ------------------------------------------------------
>
>                 Key: NIFI-4917
>                 URL: https://issues.apache.org/jira/browse/NIFI-4917
>             Project: Apache NiFi
>          Issue Type: New Feature
>          Components: Extensions
>            Reporter: Mark Payne
>            Assignee: Mark Payne
>            Priority: Major
>
> Currently, we have many processors that use keytabs for authenticating with 
> kerberos. These processors allow the user to specify the keytab and the 
> principal. However, in a multi-tenant environment, this can be dangerous. If 
> users are able to type in the name of any keytab, then they can use any 
> keytab that the user running nifi has access to. Additionally, they can use 
> any principal within that keytab.
> Using the @Restricted annotation is not really enough because you need that 
> permission just to use PutHDFS, for example. But you shouldn't have access to 
> all Keytabs just because you need access to HDFS. NIFI-4885 provides the 
> ability to make these restrictions more granular. But we need the ability to 
> specify the keytab & principal external to the processors. This gives users 
> the ability to control who is able to specify the Keytabs & Principals that 
> are allowed to be referenced. Further, they can change permissions on those 
> Controller Services so that only the appropriate users can access them.
> We would like to avoid completely removing the Keytab and Principal 
> properties in those processors for now, though, as it would make a lot of 
> users' flows now invalid and can be a pain to update. As a result, we should 
> allow either the Keytab/Principal properties to be referenced OR the 
> controller service. Additionally, we should allow an Environment Variable to 
> be set that will prevent use of the Keytab & Principal properties directly. 
> This allows an admin to enforce this rule when he/she chooses to do so 
> without immediately forcing a lot of property changes. Because Processors 
> themselves don't have access to nifi.properties we don't want to add a 
> property there. Also, System Properties are not a good idea because that 
> could very easily be changed via a script, etc. Environment Variables offer 
> the correct trade-offs, I believe, and can be easily configured within 
> bin/nifi-env.sh for most users and could be easily updated in the batch file 
> for Windows users as well.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to