-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Provide sensible defaults for xpack.security.session.{lifespan|idleTimeout}
#68885
Comments
DecisionWe agreed on the following: Kibana version: 8.0.0+ Defaults:
Prerequisites:
|
Thanks for raising this! I agree that we should be providing sensible defaults to be secure out-of-the-box. My initial reaction is to set You brought this up in the context of #68117. While sensible defaults here will help with session cleanup, it won't eliminate the technical challenge you're facing there, right? We will still allow users to unset either of these values, or to set them arbitrarily high to the point that they're effectively disabled. |
Correct, it will just reduce the impact this new change will have by default + make the decision/consent to keep session info indefinitely more explicit. |
I agree we should set some sensible defaults. As to what the values should be: NIST SP 800-63 guidelines suggest a 30-day re-authentication requirement for "AAL1" (the lowest assurance level). For "AAL2", they suggest a 12-hour re-authentication requirement and a 30-minute inactivity timeout. (Reference) Not saying that we need to adhere to NIST, but it's always helpful to keep industry standards in mind. The guidelines seem to suggest that the inactivity timeout ( It's also worth noting that, currently, Kibana supports a maximum session lifespan value of approximately 24 days. We could increase that on the client side by using an abstraction layer around the |
Thanks for the reference link, it's a good one. Tried to find something similar in ENISA specs, but without luck.
I agree, it's always better to have a well-known source of recommendations we can reference to.
That's a very good point!
Yeah, it shouldn't be too difficult to fix that. I'm hesitant to stick to Any objections if we go with these values? |
This seems reasonable to me. If possible, we should strive to resolve #53478 by |
Good 👍
Definitely! I fixed it for SAML and OIDC locally already (in the scope of #68117), but will likely extract this to a dedicated PR or a separate commit at least. |
I agree! |
Great 👍 I'll wait till next Wednesday (17/06/2020) to make sure everyone else can express their opinion or objections, and then |
Thanks a lot everyone for the feedback! Recorded final decision in #68885 (comment). |
xpack.security.session.{lifespan|idleTimeout}
xpack.security.session.{lifespan|idleTimeout}
Currently we don't set any values for
xpack.security.session.{lifespan|idleTimeout}
by default and hence users sessions stay active until the browser is closed.It's widely accepted that infinite sessions (browsers may stay open for months) are suboptiomal and with introducing of server-side sessions in #68117 such sessions may introduce technical challenges since there won't be any criterion we can rely on to automatically invalidate such sessions as a part of the cleanup routine. Such sessions will be removed from the Elasticsearch index only if user explicitly logs out unless we provide an admin UI to do that through Kibana (although possible, but unlikely in the nearest future).
Elasticsearch API keys, by default, never expire. But these serve a different purpose and cannot be used as a reference here.
Default expiration time for Elasticsearch tokens is 20 minutes and maximum lifetime is 1 hour.
We don't need to be that aggressive, but we must suggest reasonable non-infinite defaults. Ideally for both
idleTimeout
andlifespan
, but I don't have a strong opinion on that or the values we should pick. The more or less relaxed version I can think of is:It'd be a breaking change, so the earliest version we can do that in is 8.0.0.
What do you think @elastic/kibana-security?
Blocked by: #53478, #22374The text was updated successfully, but these errors were encountered: