extract secret content vault
Closed this issue · 5 comments
Guys
i have a big problem , because i want to extract the secret content (i have the secret in the vault oci) ... i am trying to use this api and this example https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/49.0.0/vault/GetSecret.go.html but that example only get the secret characteristics ... not the secret content
Hi - this looks like a question for the KMS team - we've reached out to them to take a look
Is this operation maybe what you're looking for? https://docs.oracle.com/en-us/iaas/api/#/en/secretretrieval/20190301/SecretBundle/GetSecretBundle
As far as i can tell the API is split into a two APIs: Vault Secret Management
and Vault Secret Retrieval
. This SDK splits it into two packages vault
(for management) and secrets
(for retrieval). Take a look here, using secrets.GetSecretBundle()
should work for your use-case.
Interesting, I came across the same confusion using the Python SDK, took me a good while to figure it out.