Skip to content

[v15] Pin now time during the access request creation#40335

Merged
jakule merged 5 commits intobranch/v15from
bot/backport-40325-branch/v15
Apr 8, 2024
Merged

[v15] Pin now time during the access request creation#40335
jakule merged 5 commits intobranch/v15from
bot/backport-40325-branch/v15

Conversation

@jakule
Copy link
Copy Markdown
Contributor

@jakule jakule commented Apr 8, 2024

Backport #40325 to branch/v15

changelog: Fix invalid session TTL when creating access request with tsh

jakule added 5 commits April 8, 2024 19:21
The `clockwork` package was removed and handling of time elements has been refactored in codebase. The current time was set once and then passed as an argument to the functions that need it, reducing calls to retrieve the current time. This change simplifies the code and makes it more robust against time drifts.
Removed the use of fake clock in tsh_test.go and kube_test.go to imitate real-world behavior more accurately. This change is aimed at improving the credibility and reliability of those test cases.
This commit updates the comments in `access_request.go` and `access_request_test.go` files to improve grammar and punctuation for better readability and understanding of the code. This includes correction of typographical errors, addition of punctuation where necessary, and clarification of some comments for more precise descriptions.
The code changes refine messages for validation errors related to TTL. The error messages returned when requested TTLs exceed the maximum allowed amounts are improved. Time is no longer rounded to minutes, providing more precise error messages.
@github-actions github-actions Bot requested review from kimlisa, mdwn and zmb3 April 8, 2024 19:32
@github-actions github-actions Bot added backport size/sm tsh tsh - Teleport's command line tool for logging into nodes running Teleport. labels Apr 8, 2024
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from kimlisa April 8, 2024 19:34
@zmb3
Copy link
Copy Markdown
Collaborator

zmb3 commented Apr 8, 2024

/excludeflake *

@jakule jakule added this pull request to the merge queue Apr 8, 2024
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 8, 2024
@jakule jakule added this pull request to the merge queue Apr 8, 2024
Merged via the queue into branch/v15 with commit 145982b Apr 8, 2024
@jakule jakule deleted the bot/backport-40325-branch/v15 branch April 8, 2024 22:41
@fheinecke fheinecke mentioned this pull request Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 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.

3 participants