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