Skip to content
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

[v13] Fix Teleport Connect assume roles #27723

Merged
merged 1 commit into from Jun 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/teleterm/clusters/cluster_access_requests.go
Expand Up @@ -252,8 +252,9 @@ func (c *Cluster) AssumeRole(ctx context.Context, req *api.AssumeRoleRequest) er
params.AccessRequests = append(params.AccessRequests, reqID)
}
}

return c.clusterClient.ReissueUserCerts(ctx, client.CertCacheKeep, params)
// When assuming a role, we want to drop all cached certs otherwise
// tsh will continue to use the old certs.
return c.clusterClient.ReissueUserCerts(ctx, client.CertCacheDrop, params)
})
if err != nil {
return trace.Wrap(err)
Expand Down