Ask Your Question
0

How can secrets be imported in large quantities into Google Secret Manager?

asked 2023-06-22 02:00:28 +0000

david gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-06-22 02:03:02 +0000

ladyg gravatar image

One way to import secrets in large quantities into Google Secret Manager is to use the Secret Manager REST API with a programming language like Python. Here are the general steps:

  1. Prepare the secrets in a CSV or JSON file format.
  2. Use a programming language like Python to read the file and call the Secret Manager API to create secrets in bulk.
  3. Use the Insert API to upload the secrets in chunks to avoid timeout or quota issues.
  4. Use the Secret Manager client libraries for your language to interact with the secrets after they have been uploaded.

It is important to ensure that the secrets are encrypted before uploading them to Secret Manager, and that you have appropriate access controls in place to protect the secrets once they are stored.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-22 02:00:28 +0000

Seen: 14 times

Last updated: Jun 22 '23