tb secret

Manage secrets in datafiles, like connection credentials. Secrets consists of a name and a value.

You can add a secret with any value like this:

tb --cloud secret set POTATO 12345

You can then use the secret from within a datafile. For example:

TYPE kafka
KAFKA_KEY {{ tb_secret("POTATO", "") }}

Subcommands

The following subcommands are available:

SubcommandDescription
lsLists all secrets in the project.
rm NAMEDeletes a secret.
set NAME VALUECreates or updates a secret.

tb secret ls

Lists secrets.

OptionDescription
--match TEXTRetrieves any resource matching the pattern.
Updated