-
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-5753] Deduplicate identities in cauthdsl
Backport from v1.1 for v1.0.2. The cauthdsl policy evaluation by spec deduplicates the identities prior to evaluating the policy. However, the deduplication portion of the spec was never implemented. Some hacky deduplication was added in the VSCC path for some reason, but this is the right place to fix it. Although this CR does mean that it is possible the results of policy evaluation between versions will be different, the actual exposure to non-determinism is quite low, as the only typical place where multiple signatures are allowed is in endorsement which is already covered by the VSCC hack. There is some minor exposure because the config processing allows multiple signatures, however, none of the default policies repeat the same principal, so unless the config has been customized with odd policies, this should also be a non-issue. Change-Id: Id2026475767549b4eaa4bcd1c5cc39f70bcf5b6b Signed-off-by: Jason Yellick <jyellick@us.ibm.com>
- Loading branch information
Jason Yellick
committed
Aug 28, 2017
1 parent
ae4e37d
commit 3852561
Showing
3 changed files
with
63 additions
and
38 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