-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/proxy: make authorization concurrent
Now that KRP can take multiple config files, it is possible that it will need to make multiple outbout SubjectAccessReview requests to the Kubernetes API. In order to keep authorization fast, this commit modifies the proxy so that all authorizations are concurrent. As soon as one authorization fails, the context is cancelled and all other in-flight calls are stopped. Signed-off-by: Lucas Servén Marín <[email protected]>
- Loading branch information
Showing
1 changed file
with
33 additions
and
14 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