forked from gocd/gocd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate secret lookup response for unwanted secrets. (gocd#6099)
- Error out with `SecretResolutionFailureException` if plugin sends additional secret params in lookup secret response. > Response with addtional secret params ``` requestBody = ["key1", "key2"] responseBody = [ {key: "key1", value="value-1"}, {key: "key2", value="value-2"}, {key: "key3", value="value-3"} ] This will throw `SecretResolutionFailureException` with message - Expected plugin to resolve secret(s) `key1, key2` but plugin sent addition secret param(s) `key3`. ``` - Error out with `SecretResolutionFailureException` if plugin fails to resolve one or more secret params as part of lookup secret response and sends partially resolved secret pamars in response. > Response with partially resolved secret params ``` requestBody = ["key1", "key2", "key3"] responseBody = [ {key: "key1", value="value-1"} ] This will throw `SecretResolutionFailureException` with message - Expected plugin to resolve secret(s) `key1, key2, key3` but plugin failed resolve secret param(s) `key2, key3`. Please make sure that secret with same name exist in your secret management tool. ```
- Loading branch information
Showing
4 changed files
with
105 additions
and
26 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