securitygoogle-apps-scriptauthorizationsecret-keykey-management

What is the appropriate way to manage API secrets within a Google Apps script?


If I write a google apps script, and within the script I need to invoke third party APIs or make database calls, what is the appropriate way of managing secret API keys and passwords?

Is there any risk in placing the secrets directly within the script if I publish the script as an API but don't share access to the Google Drive location that contains the Google Apps script


Solution

  • There is no right or wrong answer. There are numerous factors to consider: