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

Permissions System Improvements #3845

Closed
NickJosevski opened this issue Oct 5, 2017 · 7 comments
Closed

Permissions System Improvements #3845

NickJosevski opened this issue Oct 5, 2017 · 7 comments

Comments

@NickJosevski
Copy link

NickJosevski commented Oct 5, 2017

The permission system code has become difficult to manage, and would benefit from an overhaul.

Considerations

  • Migrating of existing permissions
  • Improved interrogation of permissions for a user or team
  • More comprehensive tests for larger permutation of combinations

Complexity examples:

new environment is showing up on the deployment dashboard, and I can create a release for it, but when I expand on Advanced section of the deployment page, Preview section is empty

If I leave the project section in the team unscoped they are able to edit the variables hard coded to the project along with the variable sets attached HOWEVER if I put a project list in here they are only able to edit the hardcoded variables for staging inside of the projects only. When they go into the associated variable sets that are attached to the project the Staging variables are missing from view completely

Implied / Extending Permissions

Going Forward

Permissions computed server side

This calculation impacts the set of API actions delivered to the requester. example: The Links collection would not contain the resource/{id}/delete action if the requester didn't have the delete permission.

@MichaelJCompton
Copy link

I couldn't find any doco on how the permissions are supposed to work, or what permissions imply others etc.

From the UI, here's some examples:

  • A user with the UserView permission can't see any way to navigate to .../configuration/users, but can go there via the url if they know it.

  • A user with AccountView can't see anyway to navigate to users accounts, and can't successfully visit a url like .../configuration/users/User-50

  • A user with TeamView, UserView and AccountView can't do the above either

  • A user with AccountDelete (who thus also have AccountView) can't navigate to accounts and can't delete them

  • Only AdministerSystem seems to allow doing these things - so what do AccountView etc do?

@MichaelJCompton
Copy link

I see now I misunderstood Account*.

Still, I guess that implies some docs are needed for UserView and other permissions.

@NickJosevski
Copy link
Author

More Examples:

  • Permission tries to restrict, but leaking information

untitled_clipping_103117_043523_pm

@NickJosevski
Copy link
Author

Empty groups and their impacts, this is a complex scenario we've had bugs related to empty groups and what people can do, would be good to not have that part of permissions be fragile / confusing.

Related customer report here: https://help.octopusdeploy.com/discussions/problems/64481#comment_44233830

Empty projects groups can cause confusing, and make them think permission scoping is working as expected.

@NickJosevski
Copy link
Author

Example of confusion listing permissions when by Projects (/Groups):

Summary: User had EventView and ArtifactView but scoped to Projects (via groups) and was trying to view health checks. They don't come in the search, but you can navigate directly to them, they report you don't have permission to see events and artifacts, because those are scoped by Environment in this case.

Discussion here: https://help.octopusdeploy.com/discussions/problems/65213-410-permissions-are-required-to-view-artifacts-and-history-for-checking-health-of-a-tentacle#comment_44240403

@NickJosevski
Copy link
Author

Closing: we have newer issues / trello cards to cover specific requirements not already handled in 2019.1.0

@lock
Copy link

lock bot commented May 19, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. If you think you've found a related issue, please contact our support team so we can triage your issue, and make sure it's handled appropriately.

@lock lock bot locked as resolved and limited conversation to collaborators May 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants