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

[v15] Set default access request TTL to 1 week. #39509

Merged
merged 5 commits into from
Mar 28, 2024

Conversation

mdwn
Copy link
Contributor

@mdwn mdwn commented Mar 18, 2024

Backport #35799 to branch/v15

Includes Lisa's fix: #39548

changelog: Access Request TTLs default to 1 week.

Copy link
Contributor

Choose a reason for hiding this comment

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

actually, any reason why we removed this test? i ran into an issue where user is able to request a pending TTL pass their access expiry, and am looking at this test and I think it could've caught the problem? 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this went through a ton of iterations and got pretty confused by the end, so I'll see if I can restore this.

Copy link
Contributor

Choose a reason for hiding this comment

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

i attempted a fix (i was already working on it to test my ui changes): #39548

@mdwn mdwn force-pushed the bot/backport-35799-branch/v15 branch from ae34f16 to c157813 Compare March 22, 2024 17:05
@ibeckermayer
Copy link
Contributor

I notice a lot of checks are failing, @mdwn is it worth reviewing now or should I hold off until you have a chance to fix things?

@mdwn
Copy link
Contributor Author

mdwn commented Mar 22, 2024

I'll take a look shortly. I'll ping when this is ready.

The TTL for a request now defaults to 1 week. This will allow reviewers more
time to review an access request before it disappears.

Co-authored-by: Lisa Kim <lisa@goteleport.com>
@mdwn mdwn force-pushed the bot/backport-35799-branch/v15 branch from c157813 to 141fad9 Compare March 26, 2024 18:02
* Prevent setting pending request TTL pass the access expiry time

* Allow setting max duration less than sessionTTL when role max_duration is not set

* Add more test, clarify comment

* Remove unused params

* Add a test for respecting both pending and max duration request

* Add a fakeclock to fix access request time diff check differences
@mdwn mdwn force-pushed the bot/backport-35799-branch/v15 branch from 141fad9 to 4885dab Compare March 26, 2024 19:07
@mdwn
Copy link
Contributor Author

mdwn commented Mar 26, 2024

@ibeckermayer This should be good to go now. This is mine and @kimlisa's fixed together.

Copy link
Collaborator

@r0mant r0mant left a comment

Choose a reason for hiding this comment

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

Let's hold this backport until @kimlisa pulls it into her branch with future access requests start time UI implementation so we can test full end-to-end flow.

@mdwn mdwn enabled auto-merge March 28, 2024 10:28
@mdwn mdwn removed the do-not-merge label Mar 28, 2024
@mdwn
Copy link
Contributor Author

mdwn commented Mar 28, 2024

@kimlisa has verified this fix, so I've removed the do-not-merge tag.

@mdwn mdwn added this pull request to the merge queue Mar 28, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 28, 2024
@r0mant
Copy link
Collaborator

r0mant commented Mar 28, 2024

/excludeflake *

@kimlisa kimlisa enabled auto-merge March 28, 2024 16:00
@kimlisa kimlisa added this pull request to the merge queue Mar 28, 2024
Merged via the queue into branch/v15 with commit 0b1b579 Mar 28, 2024
38 checks passed
@kimlisa kimlisa deleted the bot/backport-35799-branch/v15 branch March 28, 2024 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants