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
cant use cluster-admin role in apb sandbox #711
Comments
|
The SA that the broker runs as (asb) has admin privileges by default: https://github.com/openshift/ansible-service-broker/blob/master/templates/deploy-ansible-service-broker.template.yaml#L50 It's not going to be able to apply roles to the sandbox SA that are of a higher privilege than itself. How are you deploying the broker? Could you try to bump the broker's privilege to |
|
Pasting in a portion of the error: It turns out this error is from the broker failing to create the rolebinding for the role 'cluster-admin'. In order to get past this error, the asb service account needs higher permissions. By default, the asb service account is admin and it needs cluster-admin.
However, this doesn't mean the apb that requires cluster-admin is going to work. The apb has cluster-admin permissions inside a rolebinding. In other words, the apb has cluster-admin permissions in it's own namespace. In order to create cluster level resources, the apb should be give a clusterrolebinding with the apb_sandbox_role config value. I'll follow up with a PR to add this capability and we'll track discussion in #576. |
This form is for bug reports and feature requests. Major features will go through a spec process.
What happened:
provisioning failed
What you expected to happen:
launch a serviceinstance with cluster-admin role for the apb
How to reproduce it:
set sandbox_role to cluster-admin in the asb service map ( and delete pods so they get recreated). launch a service instance.
this is the traceback https://pastebin.com/yiJMLWSH
The text was updated successfully, but these errors were encountered: