Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the best way to protect the private key in a container bound script #142

Open
andyburnett opened this issue Sep 13, 2022 · 0 comments
Labels

Comments

@andyburnett
Copy link

I have created a script that accesses Firestore (using this library), and populates a Google Doc with some of the values from the Firestore. The access key and user name are stored in the Script Properties. I want to make the container document a template, so that my colleagues can create new documents, which are populated from Firestore.

However, creating duplicates of documents, via the 'New Template' menu command, doesn't copy the script properties, and the bound script therefore fails.

My thought was to create a script library, which contains the keys, and to include the library in the bound script, but there may be much better approaches. How have other people solved this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant