Keep secrets out of your code

API keys and passwords do not belong in your code. Secret Manager stores them encrypted, with versions, and only the people and services you allow can read them.

Video, 1:00. Operations and security.

Steps

  1. Overview (0:00)
  2. Find it in All products (0:13)
  3. Name and value (0:27)
  4. Stored (0:37)
  5. Version 1 (0:46)
  6. Try it yourself (0:55)

Transcript

API keys and passwords do not belong in your code. Secret Manager stores them encrypted, with versions, and only the people and services you allow can read them.

Open All products, at the bottom of the left panel. It lists every Sunsword service.

Choose Security, then Secrets in the menu on the left.

Create a secret. Name it payment-gateway-key and paste the value. It is masked as you type, and encrypted at rest.

The secret is created, with Sunsword-managed encryption and a resource ID your apps can use.

Every change is a new version. Version 1 is enabled, and you can reveal it, disable it or destroy it.