Credentials Vault¶
Store and manage sensitive credentials (API keys, service account passwords, shared secrets) with encryption at rest and access control.
Storing credentials¶
- Navigate to Security → Credentials.
- Click Add Credential.
- Provide: name, description, category, and the secret value.
- The secret is encrypted using Fernet symmetric encryption (from the
cryptographylibrary) before storage. - Optionally set a rotation date to track when the credential should be changed.
Access control¶
- Viewing decrypted secrets requires explicit permission (
can_readon the credentials module). - The credential list shows metadata (name, category, rotation date) without revealing secrets.
- Clicking Reveal decrypts and displays the secret temporarily.
- All reveal actions are logged in the audit trail.
Credential rotation tracking¶
- Set a rotation date when creating or updating a credential.
- The dashboard and reports show credentials approaching or past their rotation date.
- After rotating a credential in the external system, update the stored value and reset the rotation date.
Warning
The encryption key is derived from your SECRET_KEY. If you change SECRET_KEY, all stored credentials become unreadable. Always back up your SECRET_KEY securely.