-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Trusted clusters in OSS version of Teleport cannot be set up #1290
Comments
UpdateI looked at the code. The remote users (i.e. users coming from remote clusters) do not have their "traits" available for evaluation against By the way, here's my certificate, issued by the master cluster: (i.e. the cert I can't use to login):
|
In both OSS and Enterprise mode we should evaluate SSH cert principals for |
Here when fetching roles, for remote users, we should call https://github.com/gravitational/teleport/blob/master/lib/srv/sshserver.go#L526 to allow roles to process |
The notion of "Role" is absent in the OSS Teleport. Therefore I have the following definition of a trusted cluster:
I successfully create it, because I have added the following snipped to
CheckAndSetDefaults()
:... basically added 'admin' role to the trusted cluster spec.
The trusted cluster is established and I can see it via
tsh clusters
.But when I try to connect, I get "access denied" and here's what I see in the logs:
(with nicer formatting)
Dump of the trusted cluster:
$ tctl get cluster/oss kind: trusted_cluster version: v2 metadata: name: oss spec: enabled: true role_map: - local: - admin remote: admin token: dogs-are-great tunnel_addr: ev-t1-master:3024 web_proxy_addr: ev-t1-master:3080
So the role mapping appears to be set. Yet it still won't let me in even though I'm an admin.
Here's my "admin" role on the cluster that's denying me access:
The text was updated successfully, but these errors were encountered: