Hello Kory,
I have another question regarding permission checks not to change/remove metadata AVUs created/added by logical quota rules/operations.
For example as an admin we would like to set a logical quota policy on a collection (this could be a user home collection or any collection that a user can access to).
irods@6c4d46f82294:~$ irule -r irods_rule_engine_plugin-irods_rule_language-instance 'logical_quotas_start_monitoring_collection(*col)' '*col=/tempZone/home/user1' ruleExecOut
irods@6c4d46f82294:~$ ! irule -r irods_rule_engine_plugin-logical_quotas-instance '{"operation": "logical_quotas_set_maximum_number_of_data_objects", "collection": "/tempZone/home/user1", "value": "12"}' null ruleExecOut
irods@6c4d46f82294:~$ imeta ls -C /tempZone/home/user1
AVUs defined for collection /tempZone/home/user1:
attribute: irods::logical_quotas::maximum_number_of_data_objects
value: 12
units:
----
attribute: irods::logical_quotas::total_number_of_data_objects
value: 8
units:
----
attribute: irods::logical_quotas::total_size_in_bytes
value: 42
units:
Then this user is able to remove or change those metadata, meaning the user can disable the quota policy easily if he/she wants.
user1@6c4d46f82294:~$ imeta rm -C /tempZone/home/user1 irods::logical_quotas::maximum_number_of_data_objects 12
user1@6c4d46f82294:~$ imeta rm -C /tempZone/home/user1 irods::logical_quotas::total_number_of_data_objects 34
user1@6c4d46f82294:~$ imeta rm -C /tempZone/home/user1 irods::logical_quotas::total_size_in_bytes 204
user1@6c4d46f82294:~$ imeta ls -C .
AVUs defined for collection /tempZone/home/user1:
None
Then this user is able to remove or change those metadata, meaning the user disable the quota policy easily.
Is this something known? If so, what is the motivation behind? Is it possible to deny this operation for regular irods users(rodsusers)? Could an enhancement for this be useful?
As a temporary solution I think I can run a delay rule to add the same rule for instance each day.
Many thanks in advance.
Regards