Feature: Allow retrieval of a JSON from secretKey value #122
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#115
This issue describes how if a key with the value of a JSON is specified, it will not be successfully returned because it is not a string. However, if no
secretKey
is specified, the entire JSON response is returned, with no option for selecting a specific inner JSON. This means that the standarddata: {}, metadata: {}
response of Vault is at the top level of the JSON.Problem Use-case
For a sample use-case, this means that a JSON service account secret cannot be successfully mounted into a Kubernetes pod using the vault-csi-provider, without the additional properties of the fully returned response.
Solution
Allow the retrieval of a JSON from the
secretKey
value.Updates
secretKey
within the secret data is not a string,