[x] Feature request
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Documentation issue or request
Description
With #3576 we introduced OAuthClient resource creation in the operator, subsequently we converted install/operator/deploy/syndesis-operator.yml to deal with the creation of ClusterRole and ClusterRoleBinding needed to grant the permissions to create and delete OAuthClient resource.
We also introduced the syndesis-privileged.yml template that utilizes the OAuthClient instead of the service account for OAuth configuration of oauth-proxy.
Now when we install we have a ClusterRole and a ClusterRoleBinding created per syndesis installation, which is superfluous and leads to issues like #4133, #4131, #4093 and #4126.
This makes us have a hard requirement on the installation of syndesis-operator to have ClusterRole and ClusterRoleBinding created for the operator to function.
We should handle this situation a bit more gracefully by checking in the operator if it can create the OAuthClient resource and select a template (syndesis.yml or syndesis-privileged.yml) based on the privileges given to the operator.
This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!
This is a...
Description
With #3576 we introduced
OAuthClient
resource creation in the operator, subsequently we converted install/operator/deploy/syndesis-operator.yml to deal with the creation ofClusterRole
andClusterRoleBinding
needed to grant the permissions to create and deleteOAuthClient
resource.We also introduced the
syndesis-privileged.yml
template that utilizes theOAuthClient
instead of the service account for OAuth configuration ofoauth-proxy
.Now when we install we have a
ClusterRole
and aClusterRoleBinding
created per syndesis installation, which is superfluous and leads to issues like #4133, #4131, #4093 and #4126.This makes us have a hard requirement on the installation of
syndesis-operator
to haveClusterRole
andClusterRoleBinding
created for the operator to function.We should handle this situation a bit more gracefully by checking in the operator if it can create the
OAuthClient
resource and select a template (syndesis.yml
orsyndesis-privileged.yml
) based on the privileges given to the operator.These should be our goals:
ClusterRole
/ClusterRoleBinding
so thatOAuthClient
resource can be createdThe whole point being in graceful degradation and adapting to the privileges given to the operator.
We also must make sure to:
OAuthClient
resources (change the name of the resource, by including namespace and Syndesis CR name)ClusterRole
(perhaps even singleClusterRoleBinding
with more than one subject (possible?))cc @rhuss @avano for any additional input