aaw icon indicating copy to clipboard operation
aaw copied to clipboard

Case sensitivity in emails causes issues

Open blairdrummond opened this issue 5 years ago • 12 comments
trafficstars

Reported by @chritter ; he has some collaborators who cannot access his namespace (but I can).

I am wondering if there were gatekeeper changes that are preventing new contributors from being added? Or maybe quotas?

@justbert or @zachomedia ; would there be a way to list the kubeflow contributor resources to see if they exist in the namespace?

blairdrummond avatar Jun 24 '20 17:06 blairdrummond

I took a look here, but I cannot list these resources in order to debug

https://www.kubeflow.org/docs/components/multi-tenancy/getting-started/

blairdrummond avatar Jun 24 '20 17:06 blairdrummond

@blairdrummond Could this be prioritized as we have multiple clients who need to access the namespace? As this is a basic capability further efforts would be great.

chritter avatar Jul 07 '20 14:07 chritter

What's the exact issue here? The user is added as a contributor but then they can't do what?

justbert avatar Jul 07 '20 19:07 justbert

They cannot access ANYTHING in the Kubeflow UI in Christian's namespace (it's as though they are not in his namespace at all) even though they seem to be in @chritter 's list of contributors.

Sorry @chritter I had forgotten about this issue and mixed it up with the shared namespaces issue

blairdrummond avatar Jul 07 '20 19:07 blairdrummond

The mechanism from which the access to the namespace is granted is through RoleBindings of the kubeflow-edit role in the namespace. Three RoleBindings were created 13 days ago for users. They look to be in order. Have users attempted to access the namespace since this issue was first created?

justbert avatar Jul 07 '20 19:07 justbert

Perhaps @chritter can provide a screenshot of who he has in his contributor list? Wondering if some of the RoleBindings didn't go through

blairdrummond avatar Jul 07 '20 19:07 blairdrummond

Or @chritter can you run kubectl -n <namespace> get rolebindings and see if everyone you gave access to is there?

justbert avatar Jul 07 '20 19:07 justbert

@justbert Lindsay who is not able to access my namespace has the edit role: user-lindsay-elisson-cloud-statcan-ca-clusterrole-edit 13d. @blairdrummond all others who are supposed to access my namespace have the same cluster edit role. I can guide Lindsay to do further tests this morning.

chritter avatar Jul 08 '20 13:07 chritter

@chritter Thanks! If you can have a chat with them and report back to give us a bit more info, I'll continue to look into it! :)

justbert avatar Jul 08 '20 13:07 justbert

There seems to be a conflict issue on KF where it tracks users via the user annotation and this is case-sensitive, However, the resources tracking the user through the RoleBinding is lowercased. This means you can't add a say [email protected] and John.Smithcloud.statcan.ca to your contributors since it will cause errors when trying to create the RoleBinding which is user-john-smith-cloud-statcan-ca-clusterrole-edit for both email accounts.

justbert avatar Jul 08 '20 15:07 justbert

Does this sound like the kind of thing to look at upstream?

blairdrummond avatar Jul 08 '20 15:07 blairdrummond

I don't think so. From what @zachomedia was saying it's expected (the case-sensitivity). The issue also stems from random uppercasing in the username creation in our tenant, so THAT should be looked into.

justbert avatar Jul 09 '20 12:07 justbert