-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up bearer token resolution logic
Decouple taskprov from the `BearerTokenProvider` by getting rid of the `is_taskprov_*token()` calls and forcing the `get_*token()` calls to resolve the taskprov tokens. Accordingly, pass the `DapTaskConfig` so that the implementer knows if the task was configured via taskprov. This requires resolving the `DapTaskConfig` before authorizing the request, so re-order the logic in `DapLeader` and `DapHelper` accordingly. While at it, pick up an efficiency improvement for DaphneWorker: if taskprov is enabled for the task, then we use the token from the global taskprov config and avoid a KV lookup.
- Loading branch information
Showing
8 changed files
with
175 additions
and
167 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
Oops, something went wrong.