Skip to content

Security

Sergey Gerasimov edited this page Oct 23, 2026 · 3 revisions

Security

Credentials

  • .env is gitignored.
  • .git-token is gitignored and must never be committed.
  • Keep both files at mode 600 on shared machines.
  • The repository contains no API key or GitHub token.

API keys

  • Keys are read from the environment and are never rendered in the UI or written to logs.
  • Docker Compose passes the key from the host environment or .env.
  • docker inspect can expose environment variables; use Docker secrets or a runtime secret manager in production.
  • Rotate a key immediately if it is exposed.

LLM output

  • Model output is untrusted Markdown.
  • Raw HTML from the model is not rendered.
  • JSON extraction is tolerant but validated and bounded.
  • Invalid output falls back to deterministic local content.

Code scanning

  • CodeQL runs on push, pull request, and a weekly schedule.
  • Results are uploaded to GitHub Code Scanning.
  • The first analysis reported zero alerts.
  • CI also builds the Docker image and checks container health.

Reporting

Open a private security advisory through the repository Security tab. Do not include live credentials in an issue.

Educational scope

DerivLab cannot place orders and does not connect to a broker. Synthetic option chains are not executable quotes. Nothing in the repository is investment advice.

Dependency alerts

  • Dependabot alerts are resolved before a release ships.
  • 1.2.0 upgrades Streamlit 1.54.0, PyArrow 23.0.1, and pytest 9.0.3. The application supports Python 3.10–3.13; Docker and CI use Python 3.11 as the recommended baseline.
  • CI installs the same pinned manifests used by the runtime image.

Clone this wiki locally