SSO RBAC Namespace Delegation Question (OpenShift 4.10) #9496
-
|
Hi there, I have been trying to get SSO and Argo Workflows running for days now, and I think I am almost where I want to be however, there is still an Issue with namespace delegation that I can't seem to fix. First things first, what's our setup:
Controller-Configmap SSO relevant parts: sso:
issuer: https://sso.apps.play.gepaplexx.com/realms/internal
clientId:
name: argo-workflows-sso
key: client-id
clientSecret:
name: argo-workflows-sso
key: client-secret
redirectUrl: https://workflows.apps.play.gepaplexx.com/oauth2/callback
rbac:
enabled: trueArgo Workflows Server Env I have multiple Service Accounts in Namespace of Argo Workflows Server for RBAC Authentication. Theres a read-only user for default login like this: apiVersion: v1
kind: ServiceAccount
metadata:
annotations:
workflows.argoproj.io/rbac-rule: '''system:authenticated:oauth'' in groups'
workflows.argoproj.io/rbac-rule-precedence: "0"
name: workflows-read-only
namespace: gepaplexx-cicd-toolsI have a Serviceaccount in the Namespace that I want to delegate RBAC to: apiVersion: v1
kind: ServiceAccount
metadata:
name: workflows-developer
namespace: gepardenblick-cicd
annotations:
workflows.argoproj.io/rbac-rule: "'Gepardec' in groups"
workflows.argoproj.io/rbac-rule-precedence: "200"The server seems to correctly identify the Serviceaccount in the Namespace, however it then tries to access workflow resources via User is listed following Groups in and ServiceAccount: workflows-read-only Then I go to workflowtemplates without a namespace selected and everything seems fine. Then I add Namespace to filter, for every Namespace that I don't want to delegate RBAC - same result. Corresponding logs in argo-server pod: and if I check whether the identified service account can actually get workflowtemplates in that namespaces I get: kubectl auth can-i get workflowtemplates -n gepardenblick-cicd --as system:serviceaccount:gepardenblick-cicd:workflows-developer
yes |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
|
hello @fhochleitner did you find any solution? |
Beta Was this translation helpful? Give feedback.
-
|
@alexec do you maybe have any ideas on how to fix our problem or what kind of permissions might be missing? |
Beta Was this translation helpful? Give feedback.
-
|
I have finally managed to find out what the issue was in our setup.
|
Beta Was this translation helpful? Give feedback.
-
|
I faced this issue on Openshift. I changed the order of the secrets as shown below, mxp-workflow-token first & then docker-cfg next |
Beta Was this translation helpful? Give feedback.
I have finally managed to find out what the issue was in our setup.
Basically we had several things that in combination made it a bit tricky to find the issue: