Skip to content

Commit bac1a00

Browse files
authored
Merge pull request #14 from ing-bank/feature/home-read-policy
add a home-read policy
2 parents 7958510 + 14d61de commit bac1a00

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
}

airlock-dev-apache-ranger/setup-ranger.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ if [ "$start_timeout_exceeded" = "false" ]; then
3939
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
4040
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
4141
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
4243
printf "\nPolicy created\n"
4344

4445
echo "Done setting up Ranger for s3"

0 commit comments

Comments
 (0)