Google Apps Scripts accessing Secret Manager

Viewed 1232

I'm building a data studio connector (apps scripts) that needs access mysql.

I have all my credentials storing in GCP Secret Manager and would like my apps scripts to get the credentials from Secret Manager.

I checked https://developers.google.com/apps-script documentation but couldn't find the relevant class to access Secret Manager.

What is the best way for Apps Scripts to get credentials being stored in Secret Manager?

1 Answers

Recapping for better visibility:
When you need to store secrets (passwords, certificates, private keys, etc.) in Google Cloud, you can use Secret Manager.
To have your apps retrieve them automatically and securely, use Secret Manager API. They can be accessed using REST or gRPC API, with Google Cloud libraries or your own.

Related