-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add ability to create a credential array
Users can now specify a credential pool by adding "_ARRAY" to the environment variable name, and providing a comma-separated list of credentials as the value, which will get turned into an array internally. For example, to provide multiple GitHub tokens, you would do: GITHUB_TOKEN_ARRAY=token1, token2, token3, ... This will then create an array, and anywhere that GITHUB_TOKEN is referenced (e.g., in accept.json) it will instead pick a token from that list (picking the first then second then third then back to the beginning, etc). It will also create an array of any other variables that reference it, like BROKER_CLIENT_VALIDATION_AUTHORIZATION_HEADER - it will create a BROKER_CLIENT_VALIDATION_AUTHORIZATION_HEADER_ARRAY value, which is used by the systemcheck endpoint. This includes a breaking change to the /systemcheck endpoint as it now returns a JSON array rather than an object - this is to accommodate checking multiple credentials at once.
- Loading branch information
Showing
10 changed files
with
500 additions
and
94 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ indent_style = space | |
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
indent_size = 2 |
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.