This tutorial describes how to name a secret in Google Secret Manager.
- The secret name must be in the following format:
<tool>_<component>_<entity>
. For example:security-backend_publisher_github-kyma-bot-token
. Wheresecurity-backend
is the tool, component ispublisher
andgithub-kyma-bot-token
is the entity. The component part is optional and can be skipped if the tool does not contain multiple components. From the name, it must be clear what the secret contains and what identity it represents. The example contains a GitHub token for the Kyma bot service account, which is used as an identity of Publisher component of the Security Backend. The same secret must not have two entries in the Secret manager with different names. For example, theprow_default_sap-slack-bot-token
andworkloads_default_sap-slack-bot-token
must be only one entry in Secret Manager with the nameprow_notifier_slack-bot-token
. - Apply the
owner
label to the secret in Secret Manager to help identify the secret owner. For example:owner: neighbors
. - Apply the
type
label to the secret in Secret Manager to help identify the secret type. For example:type: service-account-token
. - Apply the
tool
label to the secret in Secret Manager to help identify the tool where secret is used. For example:tool: security-backend
. - Apply the
component
label to the secret in Secret Manager to help identify the component of the tool where secret is used. For example:component: publisher
. - Apply the
entity
label to the secret in Secret Manager to help identify the entity of the secret. For example:entity: github-kyma-bot-token
.