Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add non-expanded ACL reporting for collections #308

Merged
merged 2 commits into from
Jan 29, 2025

Conversation

kjsanger
Copy link
Member

@kjsanger kjsanger commented Jan 24, 2025

To date baton reported non-expanded ACLs for data objects only (expansion meaning an access control for a group reporting all group members in addition to the group itself). This was because baton avoided using specific queries in case the required query was not installed.

This change achieves non-expanded ACLs for collections in the same way that the native "ils" icommand does; by using a specific query that is supplied with iRODS and therefore wil be present unless removed by an administrator.

This change also adds sorting of keys in JSON output by baton, to allow easier diff comparison.

@kjsanger kjsanger marked this pull request as draft January 24, 2025 18:30
@kjsanger kjsanger force-pushed the feature/non-expanded-collection-acl branch from e51277b to a5cf497 Compare January 28, 2025 10:31
To date baton reported non-expanded ACLs for data objects only
(expansion meaning an access control for a group reporting all group
members in addition to the group itself). This was because baton
avoided using specific queries in case the required query was not
installed.

This change achieves non-expanded ACLs for collections in the same way
that the native "ils" icommand does; by using a specific query that is
supplied with iRODS and therefore wil be present unless removed by an
administrator.
@kjsanger kjsanger force-pushed the feature/non-expanded-collection-acl branch from a5cf497 to b2f4757 Compare January 29, 2025 10:10
@kjsanger kjsanger marked this pull request as ready for review January 29, 2025 13:00
@kjsanger kjsanger force-pushed the feature/non-expanded-collection-acl branch from b1bbe9d to 09156b1 Compare January 29, 2025 13:07
This iRODS function leaks memory, but by calling a lower level iRODS
API function instead, we can avoid the problem malloc.
@kjsanger kjsanger force-pushed the feature/non-expanded-collection-acl branch from 09156b1 to 7121fdd Compare January 29, 2025 13:08
@mksanger mksanger merged commit 1ceb631 into wtsi-npg:devel Jan 29, 2025
6 checks passed
@kjsanger kjsanger deleted the feature/non-expanded-collection-acl branch January 30, 2025 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants