-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Grace period for user profile activation (#89566)
The user profile document is updated on each activate call even when there is no actual content change because it always updates the last_synchronized timestamp. This behaviour is intentional to track the user's last login time (since Kibana calls to the activate API on user login). Client must explicitly handle retries for version conflicts. This is generally desirable. However, on each login there are often multiple web components trying to call this API concurrently. This results into more frequent version conflicts. Since these updates occur in a short period of time, updating last_synchronized for each of them does not really contribute a lot for tracking user login. This PR introduces a grace period for the update behaviour (30 seconds non-configurable) so that the update (on activate) is only performed when either of the following is true: * There are actual content changes * Or it has been more than 30 seconds since last update
- Loading branch information
Showing
5 changed files
with
452 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 89566 | ||
summary: Grace period for user profile activation | ||
area: Security | ||
type: enhancement | ||
issues: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.