ranger icon indicating copy to clipboard operation
ranger copied to clipboard

Update ozone ranger plugin to handle snapshots (HDDS 6986)

Open djordje-mijatovic opened this issue 2 years ago • 1 comments

djordje-mijatovic avatar Feb 20 '23 10:02 djordje-mijatovic

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.

djordje-mijatovic avatar Feb 23 '23 17:02 djordje-mijatovic