-
Notifications
You must be signed in to change notification settings - Fork 443
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored workload API token management for better security and impl…
…emented generic API token dispenser (#3154) * Rework the api_token endpoint to issue generic API tokens * Pass pipeline and schedule id * Fix warning message * Implement proper authorization checks for workload API tokens * Verify if schedule is active for schedule scoped tokens * Remove all restrictions concerning token types * Transfer the api key and authorized device scopes to generated workload API tokens * Actually throw the errors for concluded pipeline runs/steps * Don't pass the API key in the pipeline environment anymore * Add in-memory cache to store token validation related objects * Fix linter issues and applied code review suggestions * Fix docstrings --------- Co-authored-by: Michael Schuster <[email protected]>
- Loading branch information
1 parent
496a0d5
commit 0cf59cb
Showing
15 changed files
with
740 additions
and
183 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
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.