Clusters
Secrets
Secrets are encrypted strings used to store sensitive data such as API keys, passwords, and tokens.
Creating a Secret
- Log in to the Tensor One Website and go to Secrets.
- Select Create Secret and provide:
- Secret Name
- Secret Value
- Description (optional)
- Click Create Secret.
Note: Once created, the Secret value cannot be viewed. To update it, you must create a new Secret or modify the existing one.
Modifying a Secret
- Navigate to Secrets in the Web interface.
- Select the desired Secret.
- Click the configuration icon → Edit Secret Value.
- Enter the new value and click Save Changes.
Viewing Secret Details
- Go to Secrets in the Web interface.
- Select the Secret.
- Click the configuration icon → View Secret.
Note: You cannot view the Secret's value after creation.
Using a Secret in a Cluster
You can use Secrets in your Cluster templates via two methods:
1. Reference Directly in Environment Variables
Use the Secret key prefixed by TENSORONE_SECRET_
. Example:
{{ TENSORONE_SECRET_hello_world }}
Where hello_world
is your Secret's name.
2. Select from the Web Interface
During template creation or modification, choose your Secret directly in the environment variable configuration section.
Deleting a Secret
- Log in to the Web interface and go to Secrets.
- Select the Secret you want to delete.
- Click the configuration icon → Delete Secret.
- Confirm by entering the Secret's name and clicking Confirm Delete.