ranger
ranger copied to clipboard
Update ozone ranger plugin to handle snapshots (HDDS 6986)
We have added the json and xml files in order to have the Ranger configured differently in the test environment. For example, in the file ozone_test.json we have some configured policies needed for the tests like this one for example:
"service": "test",
"name": "Snapshot",
"policyType": 0,
"policyPriority": 0,
"description": "Policy for user Snapshot",
"isAuditEnabled": true,
"resources": {
"volume": {
"values": [
"volume"
],
"isExcludes": false,
"isRecursive": false
},
"bucket": {
"values": [
"bucket"
],
"isExcludes": false,
"isRecursive": false
},
"key": {
"values": [
".snapshot/snapshotUser/*"
],
"isExcludes": false,
"isRecursive": true
}
}
When we write more tests in the future it might be possible we will need more policies to be configured and this is the right place to do it.