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

fix: tsh await request resolution expired #52327

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

carloscastrojumo
Copy link
Contributor

When creating and waiting for an access to be approved, if another access request is expired, it should not fail my await.

Example:

Screenshot 2025-02-17 at 18 00 44

You can see the access request ID that expired is not the ID of the access request Im waiting for approval.

@github-actions github-actions bot added size/sm tsh tsh - Teleport's command line tool for logging into nodes running Teleport. labels Feb 19, 2025
@@ -5281,7 +5281,9 @@ func awaitRequestResolution(ctx context.Context, clt authclient.ClientI, req typ
return nil, trace.BadParameter("unexpected resource type %T", event.Resource)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably shouldn't update reqState here if this is for a different access request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/sm tsh tsh - Teleport's command line tool for logging into nodes running Teleport.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants