Deployment secrets can be used to inject sensitive configuration into your application environment.
How secrets work
Paperpsace secrets can be created and managed in the console. Secrets can contain sensitive information like access keys, tokens, etc. To reference these Paperspace secrets in your deployment spec, use the following syntax
How environment variables work
Create environment variables that can be accessed through your running deployment containers.
Users can pass environment variables into their deployment that can accessed by the container services running on the deployment replicas.
env: # container environment variables
- name: some-env
- name: secret-env
value: secret:mySecretEnv # stored as a project or team secret. Naming is arbitrary.
The value "some-value" and the Paperspace secret value stored as
mySecretEnv will be accessible in your container application code under the name