oracle / oci-go-sdk

Go SDK for Oracle Cloud Infrastructure
https://cloud.oracle.com/cloud-infrastructure
Other
178 stars 82 forks source link

Option to query vault secrets by name #399

Closed leangaurav closed 1 year ago

leangaurav commented 1 year ago

I see this option available in java sdk https://blogs.oracle.com/cloudsecurity/post/manage-secrets-by-name-in-oci

And also part of CLI, so should be available in python sdk also. Please add this in go sdk also.

KartikShrikantHegde commented 1 year ago

Hi @leangaurav ,

The examples are available in both Python and Go SDK. Please see the links below.

Python SDK -> https://docs.oracle.com/en-us/iaas/api/#/en/secretretrieval/20190301/SecretBundle/GetSecretBundleByName:~:text=Python-,SDK,-Go%20SDK

Go SDK -> https://docs.oracle.com/en-us/iaas/api/#/en/secretretrieval/20190301/SecretBundle/GetSecretBundleByName:~:text=Go-,SDK,-TypeScript%20SDK

Hope this helps.

code-dudes commented 1 year ago

Hi @KartikShrikantHegde

Thanks a lot for pointing to the right docs. Reaching this doc seems to be tough. I was trying to look into the go vault sdk source code for any option to get secrets by name. But it seems to be in a different package.

This should work. Thanks again.