Skip to content

fix: Take TTL into account when renewing sessions#49732

Merged
codingllama merged 2 commits intomasterfrom
codingllama/session-renew-time
Dec 4, 2024
Merged

fix: Take TTL into account when renewing sessions#49732
codingllama merged 2 commits intomasterfrom
codingllama/session-renew-time

Conversation

@codingllama
Copy link
Copy Markdown
Contributor

Take the session TTL into account before triggering a session renewal. This avoids a tight renewal loop for sessions with 30s <= TTL <= 3m.

The "ttl/10" fraction and 30s floor values are chosen arbitrarily. A too low max_session_ttl (30s or less) will still tightly loop renewals - this PR doesn't attempt to avoid that.

#49629

Changelog: Avoid tight web session renewals for sessions with short TTL (between 3m and 30s)

@aws-amplify-us-west-2
Copy link
Copy Markdown

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-49732.d3pp5qlev8mo18.amplifyapp.com

Comment thread web/packages/teleport/src/services/websession/websession.ts Outdated
@codingllama
Copy link
Copy Markdown
Contributor Author

PTAL?

@codingllama codingllama added this pull request to the merge queue Dec 4, 2024
Merged via the queue into master with commit ec870e1 Dec 4, 2024
@codingllama codingllama deleted the codingllama/session-renew-time branch December 4, 2024 15:41
@public-teleport-github-review-bot
Copy link
Copy Markdown

@codingllama See the table below for backport results.

Branch Result
branch/v15 Create PR
branch/v16 Create PR
branch/v17 Create PR

github-actions Bot pushed a commit that referenced this pull request Jan 29, 2025
codingllama added a commit that referenced this pull request Jan 29, 2025
carloscastrojumo pushed a commit to carloscastrojumo/teleport that referenced this pull request Feb 19, 2025
* fix: Take TTL into account when renewing sessions

* Update comments
carloscastrojumo pushed a commit to carloscastrojumo/teleport that referenced this pull request Feb 19, 2025
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.

3 participants