-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-16574] Cache results of msp.Validate function
As part of the policy rework, we need to cache the result of the call to msp.Validate() over an identity so that identity validation may be performed in parallel prior to the policy evaluation. This way, the policy evaluation step may be performed sequentially without any significant performance hit: indeed policy evaluation calls msp.SatisfiesPrincipal which internally calls Validate again. Caching will ensure that the latter call simply returns the validation status that was previoulsy determined. This change is safe since MSPs are immutable and identities belong to a specific MSP instance. Change-Id: Ifce11a0fd25cf25ff52982b3480a8a5589d0a679 Signed-off-by: Alessandro Sorniotti <ale.linux@sopit.net>
- Loading branch information
Showing
4 changed files
with
66 additions
and
12 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
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