File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed
airlock-dev-apache-ranger Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "service" : " testservice" ,
3
+ "name" : " home_dirs" ,
4
+ "description" : " FOR TESTING PURPOSES, Allow access for testuser to home subfolder" ,
5
+ "isAuditEnabled" : true ,
6
+ "resources" : {
7
+ "path" : {
8
+ "values" : [
9
+ " /home/{USER}"
10
+ ],
11
+ "isExcludes" : false ,
12
+ "isRecursive" : true
13
+ }
14
+ },
15
+ "policyItems" : [
16
+ {
17
+ "accesses" : [
18
+ {
19
+ "type" : " read" ,
20
+ "isAllowed" : true
21
+ },
22
+ {
23
+ "type" : " write" ,
24
+ "isAllowed" : true
25
+ }
26
+ ],
27
+ "users" : [
28
+ " {USER}"
29
+ ],
30
+ "groups" : [],
31
+ "conditions" : [],
32
+ "delegateAdmin" : false
33
+ }
34
+ ],
35
+ "denyPolicyItems" : [],
36
+ "allowExceptions" : [],
37
+ "denyExceptions" : [],
38
+ "dataMaskPolicyItems" : [],
39
+ "rowFilterPolicyItems" : [],
40
+ "options" : {},
41
+ "validitySchedules" : [],
42
+ "policyLabels" : [],
43
+ "isEnabled" : true ,
44
+ "version" : 1
45
+ }
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ if [ "$start_timeout_exceeded" = "false" ]; then
38
38
printf " Creating policy... \n"
39
39
curl -u admin:admin -d " @/tmp/resources/policy/ranger-policy-s3.json" -X POST -H " Accept: application/json" -H " Content-Type: application/json" http://localhost:6080/service/public/v2/api/policy
40
40
curl -u admin:admin -d " @/tmp/resources/policy/ranger-policy-deny-subdir-s3.json" -X POST -H " Accept: application/json" -H " Content-Type: application/json" http://localhost:6080/service/public/v2/api/policy
41
+ curl -u admin:admin -d " @/tmp/resources/policy/ranger-policy-homedirs-s3.json" -X POST -H " Accept: application/json" -H " Content-Type: application/json" http://localhost:6080/service/public/v2/api/policy
41
42
printf " \nPolicy created\n"
42
43
43
44
echo " Done setting up Ranger for s3"
You can’t perform that action at this time.
0 commit comments