5
0
Fork 0
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:
Iulian Bacalu 2022-11-10 14:46:46 +01:00 committed by GitHub
parent 8fa61e9099
commit 235324c876
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}
}