This is an automated email from the ASF dual-hosted git repository.

nixon pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new c70d9d9  ATLAS-3645 :- Update default entity permission for labels and 
namespace resource in atlas-simple-authz-policy.json
c70d9d9 is described below

commit c70d9d9a3ba7e97199d7c6c96002a8a28baba336
Author: Mandar Ambawane <mandar.ambaw...@freestoneinfotech.com>
AuthorDate: Mon Mar 2 17:56:52 2020 +0530

    ATLAS-3645 :- Update default entity permission for labels and namespace 
resource in atlas-simple-authz-policy.json
    
    Signed-off-by: nixonrodrigues <ni...@apache.org>
    (cherry picked from commit 30a099551210b7f5ec6d5cffa39561439278afea)
---
 .../org/apache/atlas/authorize/simple/AtlasSimpleAuthzPolicy.java    | 2 +-
 distro/src/conf/atlas-simple-authz-policy.json                       | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git 
a/authorization/src/main/java/org/apache/atlas/authorize/simple/AtlasSimpleAuthzPolicy.java
 
b/authorization/src/main/java/org/apache/atlas/authorize/simple/AtlasSimpleAuthzPolicy.java
index 899e386..47b7280 100644
--- 
a/authorization/src/main/java/org/apache/atlas/authorize/simple/AtlasSimpleAuthzPolicy.java
+++ 
b/authorization/src/main/java/org/apache/atlas/authorize/simple/AtlasSimpleAuthzPolicy.java
@@ -267,7 +267,7 @@ public class AtlasSimpleAuthzPolicy implements Serializable 
{
         }
 
         public void setLabels(List<String> labels) {
-            this.namespaces = labels;
+            this.labels = labels;
         }
 
         public List<String> getNamespaces() {
diff --git a/distro/src/conf/atlas-simple-authz-policy.json 
b/distro/src/conf/atlas-simple-authz-policy.json
index 9c81fa1..6d72ab3 100644
--- a/distro/src/conf/atlas-simple-authz-policy.json
+++ b/distro/src/conf/atlas-simple-authz-policy.json
@@ -18,7 +18,10 @@
           "privileges":      [ ".*" ],
           "entityTypes":     [ ".*" ],
           "entityIds":       [ ".*" ],
-          "classifications": [ ".*" ]
+          "classifications": [ ".*" ],
+          "labels" : [ ".*" ],
+          "namespaces" : [ ".*" ],
+          "attributes" :[ ".*" ]
         }
       ],
       "relationshipPermissions": [

Reply via email to