akeyless-community / terraform-provider-akeyless

Mozilla Public License 2.0
12 stars 10 forks source link

Github Dynamic Secret Providing extra information #44

Closed pputman-clabs closed 1 year ago

pputman-clabs commented 2 years ago

using both data sources "akeyless_secret" and "akeyless_dynamic_secret"

I'm getting this for the value: { "akeyless_secret": { "sensitive": true, "type": "string", "value": "{\"id\":\"tmp.p-17wspyncl1f5.fFoyV\",\"token\":\"ghs_fzPdMDSIoNtJB5wU6A6OJRBDCUcpHj1EUrWB\",\"ttl_in_minutes\":\"60\"}" },

(these credentials have been revoked), but is this intended to return a string wth the id and ttl as well? shouldn't these be separate values in the datasource rather than a json string? jsondecode(data.akeyless_secret.gh_read_only.value)["token"] works, so not a huge deal, just reporting in case this isn't intended.