-
Notifications
You must be signed in to change notification settings - Fork 290
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
Roles are not working as expected #5003
Comments
When defining grants in a If you want a grant to apply to additional scopes, you can go here to select your desired settings. More information here |
Hello @moduli, thanks for your response. We are putting a lot of effort crafting our tools around Boundary Which version are you using? I don't have those options in v0.15.4. I have reviewed the changelog and I can not find those in messages (btw, very interesting things in latest versions about the targets aliases) |
Ah. Support for this feature in the Admin UI came in
https://developer.hashicorp.com/boundary/docs/v0.15.x/commands/roles/add-grant-scopes |
Oh, thanks! I can update my deployment to give you some feedback about that functionality. Apart from updating the image, is it needed to execute database migrations? (I assume so, but asking just in case) :) |
Yes. You will need to execute a database migration. Here's a document that goes into more detail: https://developer.hashicorp.com/boundary/tutorials/self-managed-deployment/upgrade-version#upgrade-version |
Hey @moduli , as promised I have upgraded Boundary to 0.17.0 and I have seen the feature implemented I have to play a bit before giving feedback :) |
Hi @moduli , I have used your recommended approach and simplified roles, etc to give the propper feedback, there we go :) 1. Global Admin RoleI have a Role in global scope called
2. Global Authenticated RoleAnother role is in
3. Project RoleI have another role called
The problem I'm observing is that admins are loosing permissions on that project scope. Can you give your opinions or help on this topic? I think managing permissions is super important and grants being additive with the descendants should projects so should behave keeping all the permissions, not removing them IMHO |
I'm trying to reproduce your setup. To clarify, what do you mean by "admins can observe ONLY that target"? I did get into a situation where...
|
Well, the issue is as you described. The admin can only see that target in the project Honestly, I did not try to connect, but if you need it I can try it to give deeper feedback :) What I expected was admins to be able to see and connect everything. In fact, in other projects where the admins are alone and no more roles are involved, admins inherit propperly. I think it's a code issue in the process of mixing permissions when several grants and scopes affect the same user. WDYT? |
Yes. It does look like there might be something up there that we will investigate internally. I do want to confirm that my setup matches yours. If you don't mind, could you confirm whether or not you're still able to connect to the other target even though you cannot see it when listed? |
@moduli Confirmed, the situation is as you described. It's not possible to see the targets but you can connect to them |
Thanks for clarifying! |
@moduli Hello there :) Any update on this regard? |
We have filed a ticket internally. I'll forward this to the appropriate team to try to get this prioritized. |
@moduli oh, thank you! :) this is affecting us a bit. I appreciate your effort |
Describe the bug
A user is inside two different groups, for example:
admins
anddevelopers
.In the global scope the group 'admins' is linked to the GlobalAdmin role, whose permissions are:
And inside a project, the group
developers
which is linked to a role that has the following permissions:after setting these permissions, the mentioned user can not see everything, but only one target on that project. So I see the project permissions are overriding the global ones
I have read permissions are additive in Boundary, is this the intended behavior? How can I manage this use case? I read about no-op but I don't know if this can help my use case
What am I doing wrong?
Expected behavior
What I expected is: "if you have the permissions in the global scope, having less in the project should not limit you, as you already have them"
What I wanted to do is trying to give permissions to use some specific targets to all the company, but some additional ones (over those general ones) to other teams
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: