Skip to main content
Use this page when you need to pick the right storage layer for sensitive or non-sensitive configuration.

Choose the layer

tc secrets

tc secrets stores values in the literal secrets space by default and supports logical scopes with --scope.
You can also target another owned space with --space.

tc vault

tc vault is the lower-level encrypted KV layer. It requires a private key.

tc vars

tc vars stores plaintext configuration in the variables/ prefix and also requires a private key.

Private keys

Use TC_PRIVATE_KEY or --private-key for vault and vars. secrets can use the active authenticated profile, but it also accepts a private key override.
The CLI source treats tc secrets network init as the way to create or reuse the default secrets encryption network, and tc secrets doctor as the quickest access check.