Secrets
You can add Secrets to your Pods 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 RunPod Web interface or the RunPod API.
- Login into the RunPod Web interface and select Secrets.
- Choose Create Secret and provide the following:
- Secret Name: The name of the Secret.
- Secret Value: The value of the Secret.
- Description: (optional) A description of the Secret.
- Select Create Secret.
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 Value.
Modify a Secret
You can modify an existing Secret using the RunPod Web interface.
- Login into the RunPod Web interface and select Secrets.
- Select the name of the Secret you want to modify.
- Select the configuration icon and choose Edit Secret Value.
- Enter your new Secret Value.
- Select Save Changes.
View Secret details
You can view the details of an existing Secret using the RunPod Web interface. You can't view the Secret Value.
- Login into the RunPod Web interface and select Secrets.
- Select the name of the Secret you want to view.
- Select the configuration icon and choose View Secret.
Use a Secret in a Pod
With your Secrets setup, you can now reference them in your Pods.
You can reference your Secret directly or select it from the Web interface when creating or modifying a Pod template.
Reference your Secret directly
You can reference your Secret directly in the Environment Variables section of your Pod template.
To reference your Secret, reference it's key appended to the RUNPOD_SECRET_
prefix.
For example:
{{ RUNPOD_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 Pod template.
Delete a Secret
You can delete an existing Secret using the RunPod Web interface.
- Login into the RunPod Web interface and select Secrets.
- Select the name of the Secret you want to delete.
- Select the configuration icon and choose Delete Secret.
- Enter the name of the Secret to confirm deletion.
- Select Confirm Delete.