Dotvault for FastAPI

Dotvault for FastAPI services.

FastAPI projects usually read configuration through pydantic-settings, which loads .env and validates it into a typed settings object. The validation is the good part. The bad part is that the file it reads is still a plain text list you edit by hand. Dotvault makes that half visual, with history and diffs.

What you get

  • Detects FastAPI from requirements.txt or pyproject.toml.
  • Recognises DATABASE_URL, SECRET_KEY, ALLOWED_ORIGINS and REDIS_URL.
  • Knows the Uvicorn runtime set: HOST, PORT and LOG_LEVEL.
  • Diff staging against production to catch the variable you forgot to promote.

Known environment variables

Dotvault recognises these variables when you open a FastAPI project and surfaces helpful descriptions and warnings in the editor. FastAPI is detected via fastapi in requirements.txt or pyproject.toml.

  • DATABASE_URL

    Database connection URL

  • SECRET_KEY

    Application secret key

  • DEBUG

    Debug mode toggle

  • HOST

    Server bind host

  • PORT

    Server listen port

  • LOG_LEVEL

    Uvicorn log level

  • ALLOWED_ORIGINS

    Comma-separated CORS allowed origins

  • REDIS_URL

    Redis connection URL

  • ENVIRONMENT

    Application environment (development/production)

Official FastAPI docs: fastapi.tiangolo.com