tensorone logo

Clusters

Secrets

You can add Secrets to your Cluster and templates. Secrets are encrypted strings of text that are used to store sensitive information, such as passwords, API keys, and other sensitive data.


Create a Secret

You can create a Secret using the Tensor One API.

  1. Login into the Tensor One Web interface and select Secrets.
  2. Choose Create Secret and provide the following:
    1. Secret Name: The name of the Secret.
    2. Secret Value: The value of the Secret.
    3. Description: (optional) A description of the Secret.
  3. Select Create Secret.

NOTE

Once a Secret is created, its value cannot be viewed. If you need to change the Secret, you must create a new one or modify the Secret

Modify a Secret

You can modify an existing Secret using the Tensor One Web interface.

  1. Login into the Tensor One Web interface and select Secrets
  2. Select the name of the Secret you want to modify.
  3. Select the configuration icon and choose Edit Secret Value.
    • Enter your new Secret Value.
  4. Select Save Changes.

View Secret details

You can view the details of an existing Secret using the Tensor One Web interface. You can't view the Secret Value.

  1. Login into the Tensor One Web interface and select Secrets
  2. Select the name of the Secret you want to view.
  3. Select the configuration icon and choose View Secret.

Use a Secret in a Cluster

With your Secrets setup, you can now reference them in your Clusters.

You can reference your Secret directly or select it from the Web interface when creating or modifying a Cluster template.

Reference your Secret directly

You can reference your Secret directly in the Environment Variables section of your Cluster template. To reference your Secret, reference it's key appended to the TENSORONE_SECRET_ prefix. For example:

{{ TENSORONE_SECRET_hello_world }}

Where hello_world is the value of your Secret Name.

Select your Secret from the Web interface

Alternatively, you can select your Secret from the Web interface when creating or modifying a Cluster template.

Delete a Secret

You can delete an existing Secret using the Tensor One Web interface.

  1. Login into the Tensor One Web interface and select Secrets.
  2. Select the name of the Secret you want to delete.
  3. Select the configuration icon and choose Delete Secret.
  4. Enter the name of the Secret to confirm deletion.
  5. Select Confirm Delete.
Previous
Manage Cluster Templates