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

[FEATURE] Inactivity timer #1821

Open
HuanLiangAFS opened this issue Mar 12, 2024 · 4 comments
Open

[FEATURE] Inactivity timer #1821

HuanLiangAFS opened this issue Mar 12, 2024 · 4 comments
Labels
enhancement New feature or request triaged

Comments

@HuanLiangAFS
Copy link

HuanLiangAFS commented Mar 12, 2024

Is your feature request related to a problem? Please describe.

Opensearch-dashboard features a refresh option that refreshes dashboard by a user-defined time interval. Using this feature can cause the timeout session configured in opensearch-dashboards.yml to never timeout. Haven't found anything that addresses this so far.

Describe the solution you'd like

Session expiration should work the same whether dashboard refresh is on or off. If a user leaves his/her computer for a long period of time with refresh on, we expect the user to be automatically logged off.

Describe alternatives you've considered

No alternative besides not using refresh. Maybe using sockets to update dashboard items would solve the problem or have a separate api when auto-refreshing and excluding those from session timeout timer.

@cwperks
Copy link
Member

cwperks commented Mar 18, 2024

[Triage] @HuanLiangAFS There is a configuration setting called opensearch_security.session.keepalive: false to disable keepalive (session extension on active usage). Would this solve your issue?

@cwperks cwperks removed the untriaged label Mar 18, 2024
@HuanLiangAFS
Copy link
Author

@cwperks Unfortunately, not all the way. Setting opensearch_security.session.keepalive: false will never update the session timer. We would still like to update the timer if the user for example goes to a different opensearch page or interacts with something on the dashboard. The only issue is we don't want the automatic dashboard refresh to count as an interaction.

@stephen-crawford
Copy link
Contributor

[Triage] Thanks for filing this issue @HuanLiangAFS. This sounds like a request for an activity timer feature or something similar. This is something that we can look into adding or you are welcome to open a PR for this feature.

@peternied peternied changed the title [FEATURE] Opensearch-dashboard refresh to not affect session timeout [FEATURE] Add an inactivity timer Apr 1, 2024
@peternied peternied changed the title [FEATURE] Add an inactivity timer [FEATURE] Inactivity timer Apr 1, 2024
@HuanLiangAFS
Copy link
Author

[Triage] Thanks for filing this issue @HuanLiangAFS. This sounds like a request for an activity timer feature or something similar. This is something that we can look into adding or you are welcome to open a PR for this feature.

Just a clarification, there currently is an existing activity timer, we would like one that excludes activity from opensearch-dashboard's auto-refresh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triaged
Projects
None yet
Development

No branches or pull requests

3 participants