-
Notifications
You must be signed in to change notification settings - Fork 0
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
♻️ Store ACL in authz field with new rules #22
base: master
Are you sure you want to change the base?
Conversation
1cab639
to
0348627
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed- looks good!
I meant to approve once I was done testing the ACL tool in QA, sorry!
6a12007
to
95c3206
Compare
After implementing new rules which set authz = [] some tests fail This is because values get filtered out of patches if they are equal to what is already in dataservice (avoids extra API calls). The authz field will always be = [] in dataservice during tests since it is not connected to indexd. That means any GF patches which include authz = [] will be filtered out causing tests to fail
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After weeks of testing/using this new tool - it worked as expected!
Motivation
Authorization policy information for indexd files is currently stored in the
acl
list field. However, theacl
field is being replaced with a newauthz
list field. The values in theauthz
list will correspond to policies created in Arborist.Please see kids-first/kf-api-dataservice#624 for details
Approach
Details on exact changes can be found in the updated README.
Update ACL Rules Logic
*
to/open
[ ]
/programs
Annotate Reason for Visibility
visibility_reason=Consent Hold
visibility_comment=Sample is not registered in dbGaP