[
https://issues.apache.org/jira/browse/CAMEL-7278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13934790#comment-13934790
]
Martha Obrinteschi commented on CAMEL-7278:
-------------------------------------------
Right now all the files from hdfs are being processed, no matter who the owner
of the file is. If this option would be added, there would be the possibility
to set it up with the current user so that it will process only the files owned
from the current user. If the option will not be set it will process all the
files. This option is useful from a security perspective.
> Adding owner option for HDFS Consumer
> -------------------------------------
>
> Key: CAMEL-7278
> URL: https://issues.apache.org/jira/browse/CAMEL-7278
> Project: Camel
> Issue Type: Wish
> Components: camel-hdfs
> Affects Versions: 2.11.2
> Reporter: Martha Obrinteschi
> Priority: Minor
> Labels: security
>
> 1. HdfsConsumer:129
> if(this.config.getOwner() != null){
> if(!(status.getOwner().equals(this.config.getOwner())))
> continue;
> }
> 2. HdfsConfiguration:
> private String owner = HdfsConstants.DEFAULT_OWNER;
> public String getOwner() {
> return owner;
> }
> public void setOwner(String owner) {
> this.owner = owner;
> }
> 3. HdfsConstants:
> public static final String DEFAULT_OWNER = null;
--
This message was sent by Atlassian JIRA
(v6.2#6252)