Google Apps Script Add-On Source Code/Security

2019-05-10 09:23发布

问题:

I'm building a Google Apps Script Add-On and wanted to know whether anyone can access the underlying source code when I publish it to the Marketplace? I want to store a password/private key in the code and wanted to make sure no one who installs the app can access it.

Using a Google Apps Script Library allows a user to use their own script to step into the source code, so that's an example of a public library whose source code is visible to the end user.

Failing that, is there a better solution for storing a password/private key?

Thank you.

回答1:

From the comment by St3ph

You can check this page https://developers.google.com/apps-script/guides/properties first tab explain what kind of data you can store in properties. For your case scriptproperties is the best one. The all users mention in the table are users who can access the code, users who access addon don't have access to the code.