Bug 1463043 - Unable to add view role to second user in project
Summary: Unable to add view role to second user in project
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: apiserver-auth
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Jordan Liggitt
QA Contact: Chuan Yu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-20 02:01 UTC by Chris Ryan
Modified: 2019-03-29 15:48 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-20 02:22:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Chris Ryan 2017-06-20 02:01:08 UTC
Description of problem:
Granting a second user 'view' permissions in a project is forbidden

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Create a project
2. Create an application from the web console, i.e. https://github.com/openshift/nodejs-ex.git
3. Wait until the service is ready and the nodejs-sample-1 build have completed
4. Add the view role to the second user:
oc policy add-role-to-user view user2

Actual results:
Error from server (Forbidden): rolebindings "view" is forbidden: rolebindings to User "user2" are not allowed in project "v2w5c"

Expected results:
The user2 user could be granted view permissions

Additional info:

Comment 2 Chuan Yu 2017-06-20 02:15:12 UTC
Would you please get the output 'oc get rolebindingrestriction' in you project?

Comment 3 Jordan Liggitt 2017-06-20 02:15:22 UTC
Are RoleBindingRestrictions being used in this environment?

https://github.com/openshift/openshift-docs/blob/master/admin_solutions/user_role_mgmt.adoc#role-binding-restriction

Comment 5 Jordan Liggitt 2017-06-20 02:22:42 UTC
so, the default in that environment is that you can only grant access to serviceaccounts in that project, not to other users


Note You need to log in before you can comment on or make changes to this bug.