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

Refine access control logic #91

Merged
merged 9 commits into from
Feb 12, 2025

Conversation

dkj
Copy link
Member

@dkj dkj commented Jan 14, 2025

Replaces [as is rebasing of] #87 and #90. This is on top of rebased #88.

Fix to some of the zone logic for groups ACL implementation, including zone checking for group membership.

Add ability to config zone for OIDC users (as may not match zone of server connected to, or that of the service account being used to connect to iRODS) - needed for valid user check, user ACL logic, and membership logic for group ACLs.

Also tweaks IsPublicReadable to

  • remove vestigial/incorrect zone check
  • check the public acl group being checked for is a group

Reduce log statement verbosity with subloggers.

Remove capitalisation and parens from log keys and keep them standard
so that log analysis doesn't have to account for special cases.

Prefer early returns over else-branches to reduce levels of indent.

Don't log error and return error (leave the caller to handle logging
when they handle the error).

Co-authored-by: Keith James <[email protected]>
@kjsanger kjsanger merged commit d76a960 into wtsi-npg:devel Feb 12, 2025
5 checks passed
@dkj dkj deleted the refine_access_control_logic branch February 12, 2025 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants