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

IP Groups: Define and enforce IP Group scope of permissions in application #1380

Closed
kcondon opened this issue Jan 23, 2015 · 25 comments
Closed

Comments

@kcondon
Copy link
Contributor

kcondon commented Jan 23, 2015

The low level IP Groups infrastructure has been created but the application currently does not check the perms nor enable actions in the application based on them. The groups do appear in the user list in permissions but assigning to roles there or via API has no effect.

Also, there has been some discussion whether IP group permissions should be limited to viewing/downloading rather than writing.

@kcondon kcondon added Type: Feature a feature request UX & UI: Design This issue needs input on the design of the UI and from the product owner Priority: Medium labels Jan 23, 2015
@kcondon kcondon added this to the In Review - Dataverse 4.0 milestone Jan 23, 2015
@scolapasta scolapasta modified the milestones: Beta 12 - Dataverse 4.0, In Review - Dataverse 4.0 Feb 2, 2015
@michbarsinai
Copy link
Member

@scolapasta
Consider merge of permissionsFor and permissionsForUser in the permissionServiceBean

@kcondon
Copy link
Contributor Author

kcondon commented Feb 5, 2015

This is also true for explicit groups.

@michbarsinai
Copy link
Member

Validated by letting localhosts edit a dataset, viewing the dataset while not logging in, then removing the role assignment and trying to view the dataset again. On the second round, got redirected to the login page.
I didn't see the dataset metadata edit controls, but that might be another issue.

@scolapasta
Copy link
Contributor

@michbarsinai definitely we should merge them - is that a straightforward thing to do now?

@kcondon
Copy link
Contributor Author

kcondon commented Feb 25, 2015

In speaking with Gustavo, there is a requirement that is unique to IP Groups: they cannot edit anything, change anything, effectively not write anything. Rather, this group's main purpose is view and access restricted files and unpublished dv's and ds. So, I will test permissions for this group accordingly.

@kcondon
Copy link
Contributor Author

kcondon commented Feb 25, 2015

Issues I have seen with IP Groups that may or may not need fixing, depending on a design/functionality review:

  1. Can't assign a single ip address without specifying it as a range of 1: [1.1.1.1-1.1.1.1](not really a major issue, just making note of it here).
  2. Can assign roles that have write permissions to IP groups, eg. admin, editor, though ipGroups are not supposed to perform these functions and in some cases, ie. edit buttons, can't see them due to check on is authenticated user.
  3. Can't see unpublished dvs and ds in search results, though can browse directly to them.
  4. Have not tried accessing restricted files since that currently is not working.
  5. Can't delete ipGroup using the API if it has been assigned a role.
  6. No visible indicator ip group membership is active when not otherwise logged in.
  7. IP groups can assign roles if go to perms page directly. Not allowed according to above requirement.

I am restricting the scope of this ticket back to being ipGroups only.

@kcondon kcondon modified the milestones: In Review - Dataverse 4.0, Beta 13 - Dataverse 4.0 Feb 25, 2015
@kcondon kcondon removed their assignment Feb 25, 2015
@scolapasta scolapasta added this to the 4.0.4 milestone Mar 2, 2015
@pdurbin pdurbin removed their assignment Jul 19, 2016
@djbrooke
Copy link
Contributor

djbrooke commented Aug 2, 2016

This came up in the 8/2 Community Call (https://docs.google.com/document/d/1FsXatbbq-F4qwD_w9dqkFXpr2Sd4MqScKevUcHLCVDY/edit).

@sbarbosadataverse
Copy link

This also came up for Numeric Data Services were anyone using Harvard Library should be able to access their dataverse via IP. Another case is "licensed" data that the PI would like other institutions that subscribe to the data, to access via Dataverse (like Princeton, etc...) This would increase use of the data itself and bring traffic to Dataverse--both of which we want.

@michbarsinai
Copy link
Member

While working on bug: Note that the inability to delete an IP group that has assignments is OK. It's just that the error message was misleading. Error message fixed in 2ee3fad.

michbarsinai added a commit that referenced this issue Aug 5, 2016
…Group,no ipGroup)x(API, UI) ) work as required
pdurbin added a commit that referenced this issue Aug 5, 2016


This commit affects Saved Search and MyData.
michbarsinai added a commit that referenced this issue Aug 8, 2016
…g groups as well (might also address #3056?). Validated the logic of group containment by prohibiting groups from containing groups defined on unrelated dataverses. Added tests, and admin API endpoint for listing role assignments for a given role assignee.
@djbrooke djbrooke added this to the 4.6 - File Replace milestone Aug 9, 2016
michbarsinai added a commit that referenced this issue Aug 9, 2016
michbarsinai added a commit that referenced this issue Aug 11, 2016
…ject implemented. Additional fixes to logic of group containments and accessing of restricted files
@michbarsinai michbarsinai removed their assignment Aug 12, 2016
@michbarsinai
Copy link
Member

OK! off to final QA, and then, hopefully, dev.

@kcondon
Copy link
Contributor Author

kcondon commented Aug 15, 2016

OK, basic ip group support is working. There are two remaining tickets, #3273, #3275. Closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants