security-dashboards-plugin
security-dashboards-plugin copied to clipboard
[FEATURE] Inactivity timer
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.
[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 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.
[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.
[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.