Giter VIP home page Giter VIP logo

irods_policy_examples's Introduction

iRODS

The Integrated Rule-Oriented Data System (iRODS) is open source data management software used by research, commercial, and governmental organizations worldwide.

iRODS is released as a production-level distribution aimed at deployment in mission critical environments. It virtualizes data storage resources, so users can take control of their data, regardless of where and on what device the data is stored.

The development infrastructure supports exhaustive testing on supported platforms; plugin support for microservices, storage resources, authentication mechanisms, network protocols, rule engines, new API endpoints, and databases; and extensive documentation, training, and support services.

Core Competencies

  • iRODS implements data virtualization, allowing access to distributed storage assets under a unified namespace, and freeing organizations from getting locked in to single-vendor storage solutions.
  • iRODS enables data discovery using a metadata catalog that describes every data object, collection, and every storage resource in the iRODS Zone.
  • iRODS automates data workflows, with a rule engine framework that permits any action to be initiated by any trigger on any server or client in the Zone.
  • iRODS enables secure collaboration, so users only need to log in to their home Zone to access data hosted on a remote Zone.

History

iRODS has a 25+ year history of funded projects.

Funders have included DARPA, NSF, DOD, DOE, LC, NARA, NASA, NOAA, USPTO, and LLNL.

https://irods.org/history

License

iRODS is released under a 3-clause BSD License.

Links to elsewhere...

irods_policy_examples's People

Contributors

korydraughn avatar trel avatar

Watchers

 avatar  avatar  avatar  avatar

irods_policy_examples's Issues

logical quotas are vulnerable to changes by the collection owner

I had to set the quota using an owner of the collection. How can I set a quota that a regular user can't just alter themselves? I imagined having an admin user be the owner of the top-level collection and grant more restrictive ACLs for end-users, but I'm wondering if a user has to be able to update at least the current size values for this to work at all. If that's the case I'm concerned that the end user could just alter the current sizes themselves to bypass quota enforcement.

integer overflow in irods::logical_quotas::current_data_size_in_bytes

logical_quotas_init appears to set irods::logical_quotas::current_data_size_in_bytes incorrectly. I haven't tracked down the math to prove this, but I suspect there is an integer overflow at https://github.com/irods/irods_policy_examples/blob/master/irods_policy_logical_quotas.re#L114.

Here is an init:

[janderson@fox1 ~]$ irule -vr irods_rule_engine_plugin-irods_rule_language-instance 'logical_quotas_init("/civilfritz.net/home/janderson", 999999999, 999999999)' null null
rcExecMyRule: rule { logical_quotas_init("/civilfritz.net/home/janderson", 999999999, 999999999) }
outParamDesc: 
ExecMyRule completed successfully.    Output 


Here is the relevant value attached to the collection:

[janderson@fox1 ~]$ imeta ls -C /civilfritz.net/home/janderson irods::logical_quotas::current_data_size_in_bytes
AVUs defined for collection /civilfritz.net/home/janderson:
attribute: irods::logical_quotas::current_data_size_in_bytes
value: 771976736
units: 

But here is the same value calculated directly with iquest.

[janderson@fox1 ~]$ iquest "select SUM(DATA_SIZE) where COLL_NAME = '/civilfritz.net/home/janderson' || like '/civilfritz.net/home/janderson/%'"
DATA_SIZE = 163980733984
------------------------------------------------------------

Through experimental editing of the policy I have seen that the correct value gets set if I remove the int() typecast; but I don't know what affect that will have later at PEP, and I don't know what this means for the larger viability of performing calculations on "large" numbers.

logical quotas don't support the posix api / interface

In my (joan5896) home collection I have a quota-test sub-collection with a quota set.

irule -r irods_rule_engine_plugin-irods_rule_language-instance 'logical_quotas_init("/curcZone/home/joan5896/quota-test", 1000, 1000000000)' null null

As part of our NFSRODS testing I created a 1GB file in my home collection. Then, to test quotas, I copied it into quota-test with NFSRODS.

[root@irods1 joan5896]# sudo -u joan5896 cp zeroes quota-test/
[root@irods1 joan5896]# sudo -u joan5896 ls quota-test
zeroes
[root@irods1 joan5896]# sudo du --apparent-size --si quota-test
1.1G    quota-test

But this wasn't reflected in the collection's metadata.

[joan5896@admin2 ~]$ imeta ls -C quota-test
AVUs defined for collection quota-test:
attribute: irods::logical_quotas::current_data_size_in_bytes
value: 0
units:
----
attribute: irods::logical_quotas::current_object_count
value: 0
units:
----
attribute: irods::logical_quotas::maximum_data_size_in_bytes
value: 1000000000
units:
----
attribute: irods::logical_quotas::maximum_object_count
value: 1000
units:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.