{% extends "base.html" %} {% block title %}Secrets - PyRunner{% endblock %} {% block content %}
Encrypted credentials injected into scripts as environment variables
Set the ENCRYPTION_KEY environment variable to enable secrets management. Generate a key with:
python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
| Key | Value | Description | Updated | Actions |
|---|---|---|---|---|
| {{ secret.key }} | {{ secret.get_masked_value }} | {{ secret.description|default:"-" }} | {{ secret.updated_at|timesince }} ago |
All secrets are automatically injected as environment variables when your scripts run.
import os
api_key = os.environ['YOUR_SECRET_KEY']
Add your first secret to store API keys and credentials securely.
{% if encryption_configured %} Add Secret {% endif %}