Confirmation
Expected Behavior
Secret fields in repr output should be fully redacted.
Actual Behavior
DatabaseConfig repr exposes first/last characters of password and full short passwords.
Steps to Reproduce the Problem
- Create DatabaseConfig(password="SuperSecret123") and print/repr it.
- Observe partial leak (e.g., Su...23).
- Repeat with short password and observe full leak.
Code Snippets or Logs
File: nautilus_trader/common/config.py
Method: DatabaseConfig.repr
Specifications
- OS platform: macOS (darwin 24.6.0)
- Python version: 3.12
- nautilus_trader version: source checkout (develop)
Confirmation
Expected Behavior
Secret fields in repr output should be fully redacted.
Actual Behavior
DatabaseConfig repr exposes first/last characters of password and full short passwords.
Steps to Reproduce the Problem
Code Snippets or Logs
File: nautilus_trader/common/config.py
Method: DatabaseConfig.repr
Specifications