mirror of
https://github.com/hashicorp/vault-action.git
synced 2025-11-09 16:16:55 +00:00
fix(secrets): allow dynamic secrets to be read
This would allow reading of `data.*` thus accessing all dynamic secret properties Resolves #396
This commit is contained in:
parent
8fa61e9099
commit
235324c876
1 changed files with 2 additions and 2 deletions
|
|
@ -46,7 +46,7 @@ async function getSecrets(secretRequests, client) {
|
|||
throw error
|
||||
}
|
||||
}
|
||||
if (!selector.match(/.*[\.].*/)) {
|
||||
if (!selector.match(/.*[\.\*].*/)) {
|
||||
selector = '"' + selector + '"'
|
||||
}
|
||||
selector = "data." + selector
|
||||
|
|
@ -89,4 +89,4 @@ function selectData(data, selector) {
|
|||
module.exports = {
|
||||
getSecrets,
|
||||
selectData
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue