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.
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:i. Secret Name: The name of the Secret.ii. Secret Value: The value of the Secret.iii. 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.
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 directlyYou 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:
Copy
{{ RUNPOD_SECRET_hello_world }}
Where hello_world is the value of your Secret Name.Select your Secret from the Web interfaceAlternatively, you can select your Secret from the Web interface when creating or modifying a Pod template.