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:
Subcommand | Description |
---|---|
ls | Lists all secrets in the project. |
rm NAME | Deletes a secret. |
set NAME VALUE | Creates or updates a secret. |
tb secret ls¶
Lists secrets.
Option | Description |
---|---|
--match TEXT | Retrieves any resource matching the pattern. |