-
Notifications
You must be signed in to change notification settings - Fork 10
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 Group ID parameter to commands #84
Comments
I don't understand. The user belongs to groups, right? Why can't the remote API provide access to all data to which that user has access? I am afraid that requiring users to select a specific group will confuse people. |
@joshmoore @dominikl Question about the OMERO gateway: it appears that |
you could change the default group in omero web as a workaround. If you want to create a nice security whole just se GID to -1 ;) |
@Meyenhofer Why is a GID of -1 a security hole? The user can only affect what the user can affect... right? There is no way a user could authenticate as themselves but set their GID to -1 and thus gain access to anything extra? |
yes, -1 just shows all the available groups for a given user. I did not test what happens if you choose an image ID that is not of an image inside a group the user is associated with.. But we might want someone from OME commenting on the ramifications of that |
Hi @Meyenhofer and @ctrueden.
By default, the client is logged into the default group. By using -1, you are saying, "give me data to all my groups". For reading, there isn't much of an issue. When writing, it becomes more critical. Objects cannot be cross-linked between groups.
It's not a security hole, it's a client choice. There's nothing the client can do to see objects that are in a group that the user is not a member of.
Then it will appear as if the data does not exist. |
The
Related discussion going on here: ome/openmicroscopy#5765 |
Current we only use one
SecurityContext
, which is set with the user's default group ID (see here). This means that the user can only access data that they have access to within that group.To remedy this, we should add a
groupId
parameter to theOMEROService
methods to allow users to access additional data. Or possibly some sort of smarter mechanism?The text was updated successfully, but these errors were encountered: