Please don't open a public issue. Use GitHub's private vulnerability reporting (the Report a vulnerability button on the Security tab) with steps to reproduce. You should get a response within a week.
- Credentials are read only from environment variables or a git-ignored
.envfile. The config loader refuses any setting that looks like a credential. - Schwab OAuth tokens are written to
~/.optiondesk/schwab_tokens.jsonwith owner-only permissions (0600), outside the repository. - Tokens, client secrets and token-endpoint response bodies are never logged.
- CI runs gitleaks on every push and pull request to catch committed secrets.
- Keep the dashboard on
127.0.0.1(the default). If it must be reachable from elsewhere, setOPTIONDESK_API_KEYand put it behind a TLS reverse proxy. - Live trading requires both
mode = "live"in the config andOPTIONDESK_LIVE_TRADING=yes-i-understandin the environment. - If a Schwab secret or token leaks, regenerate the app secret on developer.schwab.com and delete the token file.