feat: add credential encryption key config and improve service token CLI display

- Add CREDENTIAL_ENCRYPTION_KEY environment variable with Fernet key generation guide
- Improve service token issue command to display raw token once with warning
- Refactor token list display function for better UX (new print_service_token_list)
- Keep backward compatibility with print_service_token_table alias
This commit is contained in:
2026-05-02 12:25:25 +00:00
parent c31ca50bdd
commit 8370d998d2
3 changed files with 38 additions and 23 deletions
+4
View File
@@ -14,6 +14,10 @@ PORTFOLIOHUB_SESSION_TOKEN_TTL_HOURS=12
PORTFOLIOHUB_CLIENT_TOKEN_DEFAULT_TTL_DAYS=365
PORTFOLIOHUB_BOT_TOKEN_DEFAULT_TTL_DAYS=365
# Credential encryption key (Fernet, required when DB_ENABLED=true)
# Generate: python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
CREDENTIAL_ENCRYPTION_KEY=
# TimescaleDB / PostgreSQL connection settings
TIMESCALEDB_HOST=localhost
TIMESCALEDB_PORT=5432